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. 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, 2015 or the Windows SDK):
./build_inplace
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/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,py35 this will run the test suite on Python 2.7, 3.3, 3.4 and 3.5 (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. Both CPython and PyPy (tested with version 5) are supported.
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
File details
Details for the file pycares-2.1.0.tar.gz
.
File metadata
- Download URL: pycares-2.1.0.tar.gz
- Upload date:
- Size: 226.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449ad785ecb594ae063c0c86537ef97513385117a2eb172f747ad2a29221e898 |
|
MD5 | 359e26f769961131be6ed2effd6ba474 |
|
BLAKE2b-256 | b0180ef4bbfe426c1ce44161de78c77b110fb3e3454e89c0f1c547a713d20efa |
File details
Details for the file pycares-2.1.0-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: pycares-2.1.0-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 61.3 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 094197bb86c2aad07818b9e286638e39cc0aca2562fd07adb24e5839964630cf |
|
MD5 | f9179840b01ea4a6079924f9ce4c6571 |
|
BLAKE2b-256 | dae3dbf4ffdba234962cecd05026885c1b0f76f93aad5a8a6b76caf2464c31b8 |
File details
Details for the file pycares-2.1.0-cp35-cp35m-win32.whl
.
File metadata
- Download URL: pycares-2.1.0-cp35-cp35m-win32.whl
- Upload date:
- Size: 49.1 kB
- Tags: CPython 3.5m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca4491189fdd76ed43b38f2d856acb314d100f4cdb94c18f6c7f45539c28a779 |
|
MD5 | d4c70f69de7f01ff4a4189c4f1451ee2 |
|
BLAKE2b-256 | a3a2b609ae1f586c51a3bc6a11bf6c48032482c67e5854f6f25809f3174565a9 |
File details
Details for the file pycares-2.1.0-cp34-cp34m-win_amd64.whl
.
File metadata
- Download URL: pycares-2.1.0-cp34-cp34m-win_amd64.whl
- Upload date:
- Size: 55.3 kB
- Tags: CPython 3.4m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e86b366d5abb5123bc2ef69df321587ced30bf7402bb8a27a6217215116963d6 |
|
MD5 | a7339523cf5ed0da9bceb3510d35db02 |
|
BLAKE2b-256 | fd3e9af35d422d29ab855ccbe43180ea584a6376a7b9408b0cdab976d6e59955 |
File details
Details for the file pycares-2.1.0-cp34-cp34m-win32.whl
.
File metadata
- Download URL: pycares-2.1.0-cp34-cp34m-win32.whl
- Upload date:
- Size: 47.6 kB
- Tags: CPython 3.4m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 707dfef63979047b019686d5adc147188f2ac797988a17c4aead0cadd0489f57 |
|
MD5 | b5150d31b9736be886f9dd078e3cc2ab |
|
BLAKE2b-256 | 23fd38b6da8677e003050a38894b8133ce2d663566b242c4baef2de4dcfaa1bd |
File details
Details for the file pycares-2.1.0-cp33-none-win_amd64.whl
.
File metadata
- Download URL: pycares-2.1.0-cp33-none-win_amd64.whl
- Upload date:
- Size: 55.3 kB
- Tags: CPython 3.3, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691dad02b1c1d37539723fdef155b11a423ffbeef3ef2394bec9309d82bb23fe |
|
MD5 | 4720a29b6b3abf2c3a36b18fd7521c1f |
|
BLAKE2b-256 | 2c5bff843f5f57364e94505e25e15a2104f119d43190485dc6ba33a2e71c6fbb |
File details
Details for the file pycares-2.1.0-cp33-none-win32.whl
.
File metadata
- Download URL: pycares-2.1.0-cp33-none-win32.whl
- Upload date:
- Size: 47.6 kB
- Tags: CPython 3.3, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04d0721b3fd62b191298352ccfbdd0c8836b3c84c48af9d77ae7d5aa23cc4e96 |
|
MD5 | 3994ed68c9dde81c381f12968162607f |
|
BLAKE2b-256 | ee0c319a299ab7d24a8963857e744dabb6f42cd48542edc545630d3eb7e5bf98 |
File details
Details for the file pycares-2.1.0-cp27-cp27m-win_amd64.whl
.
File metadata
- Download URL: pycares-2.1.0-cp27-cp27m-win_amd64.whl
- Upload date:
- Size: 55.5 kB
- Tags: CPython 2.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174996ccc610c1028e505d87ff5c8001b9b6e451e7054b89951795e7cc6462fa |
|
MD5 | 5b5158f37afaf1e660bc732fb5c8a61d |
|
BLAKE2b-256 | fb5075f5c6038d82795c530534c1503818d60b7dfea67239649a0f34249119b0 |
File details
Details for the file pycares-2.1.0-cp27-cp27m-win32.whl
.
File metadata
- Download URL: pycares-2.1.0-cp27-cp27m-win32.whl
- Upload date:
- Size: 47.0 kB
- Tags: CPython 2.7m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5318f04ba4039810fd958f6e4baf86a5e4cb761a8d65323cfcdd9924328b6bd8 |
|
MD5 | 946dd6f88fb28e60c6ef7b670a172c54 |
|
BLAKE2b-256 | 1403a4e392bf627167decb6ae6906a324cd5c19fb95b7b2e96c0cbb89d7b437c |