Python interface for c-ares
Project description
pycares is a Python module which provides an interface to c-ares. c-ares is a C library that performs DNS requests and name resolutions asynchronously.
Documentation
Bundled c-ares
pycares currently bundles c-ares and as of pycares 1.0.0 this is a strong requirement. Upstream c-ares is not willing to apply a patch adding TTL support <http://c-ares.haxx.se/mail/c-ares-archive-2013-07/0005.shtml>_. I did apply the patch to the bundled c-ares, but unfortunately it breaks the ABI, so attempting to use a system provided c-ares is not possible.
Building
Linux:
./build_inplace
Mac OSX:
(XCode needs to be installed) export ARCHFLAGS="-arch x86_64" ./build_inplace
Microsoft Windows (with Visual Studio 2008, 2010 or the Windows SDK):
./build_inplace
Microsoft Windows (with MinGW, not recommended):
(MinGW and MSYS need to be installed) ./build_inplace --compiler=mingw32
Running the test suite
There are several ways of running the test ruite:
Run the test with the current Python interpreter:
From the toplevel directory, run: python tests.py
Use Tox to run the test suite in several virtualenvs with several interpreters
From the toplevel directory, run: tox -e py27,py33,py34 this will run the test suite on Python 2.7, 3.3 and 3.4 (you’ll need to have them installed beforehand)
License
Unless stated otherwise on-file pycares uses the MIT license, check LICENSE file.
Python versions
Python >= 2.7 and >= 3.3 are supported. Other older versions might work too, but they are not actively tested.
Contributing
If you’d like to contribute, fork the project, make a patch and send a pull request. Have a look at the surrounding code and please, make yours look alike :-)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pycares-1.0.0-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc892112cb4b04fc23114215baa7fbfa9bd063acca6128e139092af8bcb313ba |
|
MD5 | b17333eefed306bc74340a8b525c528d |
|
BLAKE2b-256 | 8e3cff635a5359c7a0c1defc6e661d29434d23a7959ff46fba8af18a351891e8 |
Hashes for pycares-1.0.0-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ef984da4263191c2609ad7dc4ff0047a44e9a496909199d09b3e88d8de7445 |
|
MD5 | 2d8c305f19e99bd9e4a4dba648c0f117 |
|
BLAKE2b-256 | 49e1388da8a6a214f04290353f246a4967634c481e200d602bf6d789f2ac3e8d |
Hashes for pycares-1.0.0-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cd9edbb2456e7c3a4cc3aef97db97f82ac6f08960500dadffcfe29957e6bea2 |
|
MD5 | c8bbb8dc0cd646a193a8737e23be90bb |
|
BLAKE2b-256 | 25a707514bbe6f7a4302fa21aa60d87c9e7e22f7b6d68b89b95738281666e048 |
Hashes for pycares-1.0.0-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be2b3cd9f28b882fd00cc0bcc6f2581b08b449294b8bbac323d929281d38f7c |
|
MD5 | b2a345cfcd631ea746cfedf18f570d80 |
|
BLAKE2b-256 | d1db2c607eae9558df7a2f4c4e7aae6224b3e2571acaf4178fefba9f15c60c95 |
Hashes for pycares-1.0.0-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6624d0b6f77456e9b515e5139ae37d4683a21988cac1852dfdcda3a59731d984 |
|
MD5 | 2b4bca2aabcc5aea9ec4260db79a90bc |
|
BLAKE2b-256 | ddecab09ce5074ac16bda9bbf559f832c7d55e6315eb33910d2c7ceb6b684ee3 |
Hashes for pycares-1.0.0-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c31d34f002a505dcc2260edf5c47980df257a43a816768928d3f1bd31b17411 |
|
MD5 | fbbfb0b6864a6aed13d0e03ad7c51579 |
|
BLAKE2b-256 | 956ae4f6c2bf4bc4261562e3dc4a933629e654b877e5bba187555b2e46fe5287 |