[getdns-api] Updated Python bindings released

Melinda Shore melinda.shore at nomountain.net
Fri Apr 10 23:11:27 CEST 2015


I've just released v0.3.1 of the Python bindings, and it's a
major update with some API changes and support for asynchronous
queries, as well as a number of changes and bugfixes to the
bindings internals.

Changes in version 0.3.1 (10 April 2015)

* implemented asynchronous queries, bound to Context()
  objects, and introduced Context.run() method.  See
  getdns.readthedocs.org

* queries now return a Result() object, with attributes.
  See getdns.readthedocs.org

* removed leading GETDNS_ in all constants
  (i.e. getdns.GETDNS_RRTYPE_AAAA is now getdns.RRTYPE_AAAA)

* added getdns.get_errorstr_by_id() method, making it easier
  to provide user-friendly error messages

* prettied up printing of canonical names in Result object

* str and repr printing has been added to both Context and
  Result objects

* dead code removed

* replaced instances of getdns_strerror() with
  getdns_get_errorstr_by_id()

* fixed incorrect error return from Result construction

* moved __version__ attribute from Context to top-level
  getdns module

* made exception handling within the module more consistent

* added documentation describing getdns.error

* broke out query types

Updated documentation has been pushed to readthedocs.org.

Melinda

-- 
Melinda Shore
No Mountain Software
melinda.shore at nomountain.net

"Software longa, hardware brevis."
_______________________________________________
getdns-api mailing list
getdns-api at vpnc.org



More information about the spec mailing list