API reference to WebKit WebView implementation in GTK (Python) [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm working on a Python Gtk3 app on Ubuntu, which primarily uses WebView from WebKit. I couldn't find all the methods available to WebView object in python, currently I only know its open() method, so, where can I get detailed reference to all its methods, including some documentation on handling cookies and user password saving, etc?
I went through http://webkitgtk.org/ but I couldn't find Python related API, or (I might have missed it out).

Because of GOBject Introspection, you should have access to every public class/method/function available in the WebKit. Hence, the original API documentation should help.
To know every method available, you can even use the classic help from Python. For instance:
$ python
>>> from gi.repository import WebKit2
>>> help(WebKit2.WebView)
Now, you can match the method names against the documentation for other languages (likely Objective-C).

In addition the API reference on webkitgtk.org is pretty good too, even though it is not Python specific. But if you're used to read GTK documentations it's pretty easy to use it for Python applications.

Related

Is there a description of all available wxPython Widgets? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm using wxPython, (with python 2.7) and am curious as to anyone have provided a sort of guide or an overview over available widgets? When I say a widget I imply a graphical entity drawn on the screen.
I have seen the documentation of the API, and by assuming that all "widgets" are sublasses to wx.Window, a better overview can be found in "tree-view in the aforementioned documentation.
However, if I did not know beforehand (from a tutorial) what a "notebook" was (in the wx sense), it would have been hard to be inspired to use this widget, using only the API reference.
The freely available book "wxPython in action" shows some examples here and there, but does not either contain an overview.
Does a better, more graphical, overview or presentation exist? Not necessarily of all possible widgets, but at least the most popular?
The Phoenix documentation has screenshots of a lot of the widgets:
docs.wxpython.org/gallery.html
You should also download the wxPython demo. It shows nearly all the widgets and how to use them. It can be found at http://www.wxpython.org

Looking for example or documentation for wikidump python lib [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I stumbled upon the wikidump python library, which I think suits me just fine.
I could get by by looking at the source code, but I'm new at python and I don't want to write BS code as the project I need it for is kind of important to me.
I got the 'wiki-SPECIFICDATE-pages-articles.xml.bz2' file and I would need to use that as my source for single article fetching. Can anyone give me some pointers as to properly achieve this or, even better, point at some documentation? I couldn't find any!
(p.s. if you got any better and properly doc'd lib, please tell me)
Not sure if I understand the question, but if you have the Wikipedia dump and you need to parse the wikicode, I would suggest mwparserfromhell lib.
Another powerful framework is Pywikibot, that is the historic framework for bot users on Wikipedia (thus, it has many scripts dedicated to writing pages, instead of reading and parsing articles). It has a lot of documentation (though, sometimes obsolete) and it uses MediaWiki API.
You can use them both, of course: PWB for fetching articles and mwparserfromhell for parsing.

Good documentation/tutorial for python webkit [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have found links with basic examples of webkit. but could not find any proper webkit class structure documentation on google.
could anyone suggest good links or documentation for webkit?
Thanks!
It appears that there are multiple Python bindings for WebKit.
For the Qt/KDE bindings, there is a fairly detailed tutorial: http://techbase.kde.org/Development/Languages/Python/PyKDE_WebKit_Tutorial.
For the GTK bindings, Ars Technica has an example: http://arstechnica.com/open-source/guides/2009/07/how-to-build-a-desktop-wysiwyg-editor-with-webkit-and-html-5.ars.
The PyWebkitGTK api should be mostly the same as the standard GTK api. You can view some documentation built into the webkit, for example:
import webkit
print webkit.WebView.__doc__
will show signals and properties you can use. You can also use "dir(webkit.WebView)" to show all the methods of the class. You'll see they are very similar to the GTK C documentation, with some differences, for example, void webkit_web_view_select_all(WebkitWebView) is WebView.select_all in Python.
PySide,a Python binding for Qt.The PySide.QtWebKit module has class structured documentation.

What is a good configuration file library for c thats not xml (preferably has python bindings)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for a good config file library for c that is not xml. Optimally I would really like one that also has python bindings. The best option I have come up with is to use a JSON library in both c and python. What would you recommend, or what method of reading/writing configuration settings do you prefer?
YaML :)
If you're not married to Python, try Lua. It was originally designed for configuration.
You could use a pure python solution like ConfigObj and then simply use the CPython API to query for settings. This assumes that your application embeds Python. If it doesn't, and if you are shipping Python anyway, it might make sense to just embed it. Your C .exe won't get that much bigger if it's a dynamic link, and you will have all the flexibility of Python at your disposal.
Despite being hated by techies and disowned by Microsoft, INI files are actually quite popular with users, as they are easy to understand and edit. They are also very simple to write parsers for, should your libraries not already support them.

Gmpy documentation anywhere? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I installed gmpy-1.11rc1.win32-py2.6.exe, but can't figure out how to use it, I can see some exported functions like mpz, mpq, mpf, etc., but how do I call a function like mpz_probab_prime_p() in GNU MP C library?
I looked at gmpy on Google Code, but still can't figure out. I couldn't find gmpy's documentation anywhere either. Thanks.
You can find the docs here.
For now the txt file jbochi mentions is all there is -- and unfortunately it's not structured in the terms the OP requires, i.e., showing what underlying GMP functions are used in each gmpy-exposed function or method. If you're a GMP expert you can search the gmpy code here -- specifically in this file, which implements MPZ functionality, you'll see the call you seek at line 1538 (within the is_prime function/method).
I did recently acquire site gmpy.org with the idea of developing better online docs, but haven't gotten started yet (of course I could equally well use the wiki pages at gmpy's google code hosting site) -- as always in open source, volunteers are welcome!-)
GMPY2 documentation is now on ReadTheDocs. There are installation instructions and an API reference.
This may be useful as well:
>>> import(gmpy)
>>> help(gmpy)

Categories