A different approach to pywebkit....

195 views
Skip to first unread message

John Rusnak

unread,
Nov 28, 2012, 11:22:24 AM11/28/12
to pyweb...@googlegroups.com
To anyone interested....

I have enjoyed using pywebkitgtk recently, bu have finally butted up against its limitations.  I am embarking on a new way to approach this type of bindings using ctypes and no native code in the pywebkitgtk deliverable (making it easier on Windows for install).  The idea, and one that is wroking out quite well, is to take the very parsable I/F specs for GTk, Gdk, webkitgtk, etc.  and autogenerate class bindings/wrappers in Python that call the native methods via ctypes.  I have been able to integrate a number of classes into a working example quite quickly and have implemented a javascript to Python binding that allows Python classes (inheriting from the Javascript class) to be shared with javascript code (and to allow javascript code to create objects rooted in Python).  This part really is quite exciting.  

If anyone is interested in this approach, I have started a project on GitHub and pushed some prelim "stuff" out to PyPi.  This is purely a contrubute what you want/can OSS project.

-John

burrito...@gmail.com

unread,
Jan 5, 2014, 8:32:22 AM1/5/14
to pyweb...@googlegroups.com
Should probably provide some links relevant to this project, for people who are still interested.

Here's John's Github repo:

https://github.com/nak/pywebkit3

Here's the PyPi entry (currently contains no setup.py and is out of sync with the repo above):
https://pypi.python.org/pypi/PyGGI/0.8.12

To install from PyPi, download the egg from PyPi, and grab the setup.py from the Github repo and change the version number in that setup.py file to 0.8.12 (currently is 0.8.11). Place that setup.py folder in the same folder which you extract the .egg file to. Said directory should now look like this:

(dir) EGG-INFO

(dir) pyggi

(dir) pywebkit3

(.py) setup.py

Then, running "sudo setup.py easy_install ./" appears to work fine on an Ubuntu-based distro. I could be wrong. I don't know much about Python or PyPi yet. But the above process worked for me.
Reply all
Reply to author
Forward
0 new messages