Skip to content

Commit 116fc5c

Browse files
committed
merge cleanup
2 parents 1267ce4 + bbdc002 commit 116fc5c

23 files changed

+939
-318
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ getdns.so
55
*.save
66
doc/_build/
77
doc/_build/*
8+
TAGS

README.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Python bindings for getdns
66
External dependencies
77
=====================
88

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

13-
Currently building against the getdns 0.1.3 release.
13+
Currently building against the getdns 0.3.1 release.
1414
getdns external dependencies include:
1515

1616
* [libldns from NLnet Labs](https://www.nlnetlabs.nl/projects/ldns/) version 1.6.11 or later (ldns requires ope
@@ -49,6 +49,18 @@ people who are using the bindings should go ahead and install.
4949
python setup.py install
5050
````
5151
52+
We recently added Python 3 support. To build, just invoke
53+
the Python 3 interpreter rather the Python 2 interpreter (on
54+
most systems this will be "python3").
55+
56+
```
57+
python3 setup.py build
58+
```
59+
You will need the
60+
Python 3 development environment ("python3-dev" or
61+
"python3-devel", most often).
62+
63+
5264
Documentation
5365
=============
5466
@@ -60,18 +72,24 @@ source tree in doc/_build/html. It is also available online at [readthedocs.org
6072
Changes from the earlier release
6173
================================
6274
63-
We've introduced a Context object with attributes and methods, with
64-
queries being Context methods. Attributes can be assigned and read
65-
directly without using the getdns setters and getters. For example,
75+
In addition to adding Python 3 support, we've changed the callback
76+
argument to the asynchronous methods to accept a callable by name,
77+
rather than as a literal string.
6678
67-
```python
68-
import getdns.context
69-
my_context = getdns.Context()
70-
my_context.timeout = 1000
71-
print my_context.timeout
72-
```
79+
We're also now supporting a new transport_list attribute, an
80+
ordered (by preference) list of transport options, including
81+
TCP, UDP, TLS, and STARTTLS.
82+
83+
There are also a number of bugfixes, including cleaning up
84+
after unbound zombies (this has been fixed in unbound as well
85+
but the code is not yet included in a distribution) and
86+
correct handling of strings encoded as getdns bindatas.
87+
88+
Examples have been updated to work with both Python 2.x and
89+
Python 3.
7390
74-
Please see the documentation for details on attributes and methods.
91+
Please see the documentation for details on new attributes
92+
extensions, and methods.
7593
7694
Examples
7795
========

0 commit comments

Comments
 (0)