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:
python setup.py install
Mac OSX:
(XCode needs to be installed) export ARCHFLAGS="-arch x86_64" python setup.py install
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 :-)
Release files for pycares 2.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycares-2.3.0.tar.gz | 224.9 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pycares-2.3.0-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| pycares-2.3.0-cp36-cp36m-win32.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-32 | Details |
| pycares-2.3.0-cp36-cp36m-manylinux1_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| pycares-2.3.0-cp36-cp36m-manylinux1_i686.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-32 | Details |
| pycares-2.3.0-cp35-cp35m-win_amd64.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-64 | Details |
| pycares-2.3.0-cp35-cp35m-win32.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-32 | Details |
| pycares-2.3.0-cp35-cp35m-manylinux1_x86_64.whl | CPython 3.5 | CPython 3.5 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| pycares-2.3.0-cp35-cp35m-manylinux1_i686.whl | CPython 3.5 | CPython 3.5 pymalloc | Linux glibc 2.5+ x86-32 | Details |
| pycares-2.3.0-cp34-cp34m-win_amd64.whl | CPython 3.4 | CPython 3.4 pymalloc | Windows x86-64 | Details |
| pycares-2.3.0-cp34-cp34m-win32.whl | CPython 3.4 | CPython 3.4 pymalloc | Windows x86-32 | Details |
| pycares-2.3.0-cp34-cp34m-manylinux1_x86_64.whl | CPython 3.4 | CPython 3.4 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| pycares-2.3.0-cp34-cp34m-manylinux1_i686.whl | CPython 3.4 | CPython 3.4 pymalloc | Linux glibc 2.5+ x86-32 | Details |
| pycares-2.3.0-cp33-cp33m-win_amd64.whl | CPython 3.3 | CPython 3.3 pymalloc | Windows x86-64 | Details |
| pycares-2.3.0-cp33-cp33m-win32.whl | CPython 3.3 | CPython 3.3 pymalloc | Windows x86-32 | Details |
| pycares-2.3.0-cp33-cp33m-manylinux1_x86_64.whl | CPython 3.3 | CPython 3.3 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| pycares-2.3.0-cp33-cp33m-manylinux1_i686.whl | CPython 3.3 | CPython 3.3 pymalloc | Linux glibc 2.5+ x86-32 | Details |
| pycares-2.3.0-cp27-cp27mu-manylinux1_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc wide-unicode | Linux glibc 2.5+ x86-64 | Details |
| pycares-2.3.0-cp27-cp27mu-manylinux1_i686.whl | CPython 2.7 | CPython 2.7 pymalloc wide-unicode | Linux glibc 2.5+ x86-32 | Details |
| pycares-2.3.0-cp27-cp27m-win_amd64.whl | CPython 2.7 | CPython 2.7 pymalloc | Windows x86-64 | Details |
| pycares-2.3.0-cp27-cp27m-win32.whl | CPython 2.7 | CPython 2.7 pymalloc | Windows x86-32 | Details |
Total release size: 2.7 MB
Release files / pycares-2.3.0.tar.gz
| Download URL | pycares-2.3.0.tar.gz |
|---|---|
| Size | 224.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40
|
|
BLAKE2b-256 checksum How to use checksums |
895c3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp36-cp36m-win_amd64.whl
| Download URL | pycares-2.3.0-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 63.8 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
170d62bd300999227e64da4fa85459728cc96e62e44780bbc86a915fdae01f78
|
|
BLAKE2b-256 checksum How to use checksums |
5d846d0f2ad5433094bb6851ec70be6f146edf44b7ef28dc8fb46b2fa5ed7463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp36-cp36m-win32.whl
| Download URL | pycares-2.3.0-cp36-cp36m-win32.whl |
|---|---|
| Size | 51.5 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
f32b7c63094749fbc0c1106c9a785666ec8afd49ecfe7002a30bb7c42e62b47c
|
|
BLAKE2b-256 checksum How to use checksums |
0318d30bbf7c9abd4b2ddd014c5ea9de3c69adbda2f25a34c8580366c5523cb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | pycares-2.3.0-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 200.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
0e81c971236bb0767354f1456e67ab6ae305f248565ce77cd413a311f9572bf5
|
|
BLAKE2b-256 checksum How to use checksums |
e177911ea81174e050ec854f19eeed9ddc40f9e6d3fd1e45d79ac2d5c26c15c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp36-cp36m-manylinux1_i686.whl
| Download URL | pycares-2.3.0-cp36-cp36m-manylinux1_i686.whl |
|---|---|
| Size | 186.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
371ce688776da984c4105c8ca760cc60944b9b49ccf8335c71dc7669335e6173
|
|
BLAKE2b-256 checksum How to use checksums |
184bcc33126b898caceee427ac95e85602c4f01886615e9a1c5fe3896eb0d436
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp35-cp35m-win_amd64.whl
| Download URL | pycares-2.3.0-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 63.8 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9d56a54c93e64b30c0d31f394d9890f175edec029cd846221728f99263cdee82
|
|
BLAKE2b-256 checksum How to use checksums |
9fa9cd10bbfc113e4af9dad1d75238b9f603137dd81892e96d046aa91cc2374a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp35-cp35m-win32.whl
| Download URL | pycares-2.3.0-cp35-cp35m-win32.whl |
|---|---|
| Size | 51.5 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
3a2234516f7db495083d8bba0ccdaabae587e62cfcd1b8154d5d0b09d3a48dfc
|
|
BLAKE2b-256 checksum How to use checksums |
b342f25e24d262a52bd004ae5c23405e0a1fd23ad27a60c4371d613689985298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp35-cp35m-manylinux1_x86_64.whl
| Download URL | pycares-2.3.0-cp35-cp35m-manylinux1_x86_64.whl |
|---|---|
| Size | 200.2 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
943e2dc67ff45ab4c81d628c959837d01561d7e185080ab7a276b8ca67573fb5
|
|
BLAKE2b-256 checksum How to use checksums |
3957bdd32e3cd7b8b48146b9b08f18e671c99fe9b4089f43ee1ca1be447a3490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp35-cp35m-manylinux1_i686.whl
| Download URL | pycares-2.3.0-cp35-cp35m-manylinux1_i686.whl |
|---|---|
| Size | 186.2 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
f50be4dd53f009cfb4b98c3c6b240e18ff9b17e3f1c320bd594bb83eddabfcb2
|
|
BLAKE2b-256 checksum How to use checksums |
c1d3e82caddfd4e83ecfcfddc32b6110a09ace35dcbb5697dbabda9cab3e09d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp34-cp34m-win_amd64.whl
| Download URL | pycares-2.3.0-cp34-cp34m-win_amd64.whl |
|---|---|
| Size | 58.3 kB |
| Tags | CPython 3.4 CPython 3.4 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bbfd9aba1e172cd2ab7b7142d49b28cf44d6451c4a66a870aff1dc3cb84849c7
|
|
BLAKE2b-256 checksum How to use checksums |
0c664aace469f16bb076ad2b32ffe648bd94f697ede8eb295e76a405b08baf1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp34-cp34m-win32.whl
| Download URL | pycares-2.3.0-cp34-cp34m-win32.whl |
|---|---|
| Size | 50.2 kB |
| Tags | CPython 3.4 CPython 3.4 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
722f5d2c5f78d47b13b0112f6daff43ce4e08e8152319524d14f1f917cc5125e
|
|
BLAKE2b-256 checksum How to use checksums |
91eb9a30fa3e2786e2c67c8bf19e6b631719e09dbdc7f8b1b7c5feaa23c796f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp34-cp34m-manylinux1_x86_64.whl
| Download URL | pycares-2.3.0-cp34-cp34m-manylinux1_x86_64.whl |
|---|---|
| Size | 200.0 kB |
| Tags | CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
7b18fab0ed534a898552df91bc804bd62bb3a2646c11e054baca14d23663e1d6
|
|
BLAKE2b-256 checksum How to use checksums |
24b638091fb17f9d0e4e6416ee09707fd3d6d16f77c515173c1f4c99fe14a354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp34-cp34m-manylinux1_i686.whl
| Download URL | pycares-2.3.0-cp34-cp34m-manylinux1_i686.whl |
|---|---|
| Size | 186.0 kB |
| Tags | CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
11c0ff3ccdb5a838cbd59a4e59df35d31355a80a61393bca786ca3b44569ba10
|
|
BLAKE2b-256 checksum How to use checksums |
23615db68f2970ed89cbc8d45256ea4f3e2a08f3cc79bcf59ef5302c8851bcec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp33-cp33m-win_amd64.whl
| Download URL | pycares-2.3.0-cp33-cp33m-win_amd64.whl |
|---|---|
| Size | 58.3 kB |
| Tags | CPython 3.3 CPython 3.3 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e2446577eeea79d2179c9469d9d4ce3ab8a07d7985465c3cb91e7d74abc329b6
|
|
BLAKE2b-256 checksum How to use checksums |
a8eb49e0398f943ff923ce3b4686b0ae7f30eafea327ebecd96f25b023f7ce3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp33-cp33m-win32.whl
| Download URL | pycares-2.3.0-cp33-cp33m-win32.whl |
|---|---|
| Size | 50.2 kB |
| Tags | CPython 3.3 CPython 3.3 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
40134cee03c8bbfbc644d4c0bc81796e12dd012a5257fb146c5a5417812ee5f7
|
|
BLAKE2b-256 checksum How to use checksums |
6abea1be4b433bedb3c96e5057a747967b87ed8d025d6ed3e8ad25b3bb183279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp33-cp33m-manylinux1_x86_64.whl
| Download URL | pycares-2.3.0-cp33-cp33m-manylinux1_x86_64.whl |
|---|---|
| Size | 197.0 kB |
| Tags | CPython 3.3 CPython 3.3 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
e72fa163f37ae3b09f143cc6690a36f012d13e905d142e1beed4ec0e593ff657
|
|
BLAKE2b-256 checksum How to use checksums |
98d8a9332b93e8bd05b46abb680175104c184c9914096bcaf877fc38b7caded8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp33-cp33m-manylinux1_i686.whl
| Download URL | pycares-2.3.0-cp33-cp33m-manylinux1_i686.whl |
|---|---|
| Size | 182.8 kB |
| Tags | CPython 3.3 CPython 3.3 pymalloc Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
8ea263de8bf1a30b0d87150b4aa0e3203cf93bc1723ea3e7408a7d25e1299217
|
|
BLAKE2b-256 checksum How to use checksums |
a065fbbee6273e9e55f01ebd30ff6bbc6778d73ab52f41d12616babc59f1cae8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp27-cp27mu-manylinux1_x86_64.whl
| Download URL | pycares-2.3.0-cp27-cp27mu-manylinux1_x86_64.whl |
|---|---|
| Size | 196.6 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
8a39d03bd99ea191f86b990ef67ecce878d6bf6518c5cde9173fb34fb36beb5e
|
|
BLAKE2b-256 checksum How to use checksums |
a01b8300d8700157ae78f79b7cdfa3932e217180eb53d362e0eb639dc8b424f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp27-cp27mu-manylinux1_i686.whl
| Download URL | pycares-2.3.0-cp27-cp27mu-manylinux1_i686.whl |
|---|---|
| Size | 182.4 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
3f288586592c697109b2b06e3988b7e17d9765887b5fc367010ee8500cbddc86
|
|
BLAKE2b-256 checksum How to use checksums |
c4177907fbe8b175227328777c88c1e97c5f894e8cecb66d4f249f44aa61ab04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp27-cp27m-win_amd64.whl
| Download URL | pycares-2.3.0-cp27-cp27m-win_amd64.whl |
|---|---|
| Size | 58.6 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b95b339c11d824f0bb789d31b91c8534916fcbdce248cccce216fa2630bb8a90
|
|
BLAKE2b-256 checksum How to use checksums |
686df80115e1b639f28b6e5228d6152ea346d9f88d0b753bb90a9a07cf47e7fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycares-2.3.0-cp27-cp27m-win32.whl
| Download URL | pycares-2.3.0-cp27-cp27m-win32.whl |
|---|---|
| Size | 49.5 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
d8637bcc2f901aa61ec1d754abc862f9f145cb0346a0249360df4c159377018e
|
|
BLAKE2b-256 checksum How to use checksums |
5ba80e6c8c294a24bc959d9a1fc8ac5b4e454f132a9222026cbfc889e8bc6a7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |