Skip to content

saghul/getdns-python-bindings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getdns-python-bindings

Python bindings for getdns

External dependencies

Built and tested against Python 2.7. You will need to install the Python headers and libraries - this is usually a package called "python-dev"

Currently building against the getdns "develop" branch (to be released as 0.1.1). getdns external dependencies include:

Building

To build,

python setup.py build 

During the development process and before the module is installed, I find it convenient to have a symlink in the current directory pointing to the library in the build directory:

getdns.so -> build/lib.linux-i686-2.7/getdns.so

This is only useful if you're working on the actual bindings code; people who are using the bindings should go ahead and install.

To install,

python setup.py install

Documentation

Documentation is formatted using the sphinx documentation system. The html-formatted output is under the pygetdns source tree in doc/_build/html.

Known issues

There are several issues in this alpha release which we expect to be resolved prior to the TNW hack battle. These include:

  • the asynchronous code is not actually asynchronous; it invokes the callback but the calling function blocks until the callback returns
  • getdns exception error strings are not "bubbling up" to the user from deeply nested functions. You may see an exception thrown with a warning that the error string is not set as a result

Examples

There are several sample scripts in the examples directory, showing how to issue different kinds of queries, how to verify the answer status and DNSSEC status, and so on.

About

Python bindings for getdns

Resources

License

Stars

Watchers

Forks

Packages

No packages published