Skip to main content
Warning Some features may not work without JavaScript. Please try enabling it if you encounter problems.

Python interface for c-ares

Project description

https://badge.fury.io/py/pycares.png https://secure.travis-ci.org/saghul/pycares.png?branch=master https://ci.appveyor.com/api/projects/status/vx1wbkfq3l7nm1m8?svg=true

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

http://readthedocs.org/docs/pycares/

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)

Author

Saúl Ibarra Corretgé <saghul@gmail.com>

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycares-2.3.0.tar.gz (224.9 kB view details)

Uploaded Source

Built Distributions

pycares-2.3.0-cp36-cp36m-win_amd64.whl (63.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

pycares-2.3.0-cp36-cp36m-win32.whl (51.5 kB view details)

Uploaded CPython 3.6m Windows x86

pycares-2.3.0-cp36-cp36m-manylinux1_x86_64.whl (200.2 kB view details)

Uploaded CPython 3.6m

pycares-2.3.0-cp36-cp36m-manylinux1_i686.whl (186.2 kB view details)

Uploaded CPython 3.6m

pycares-2.3.0-cp35-cp35m-win_amd64.whl (63.8 kB view details)

Uploaded CPython 3.5m Windows x86-64

pycares-2.3.0-cp35-cp35m-win32.whl (51.5 kB view details)

Uploaded CPython 3.5m Windows x86

pycares-2.3.0-cp35-cp35m-manylinux1_x86_64.whl (200.2 kB view details)

Uploaded CPython 3.5m

pycares-2.3.0-cp35-cp35m-manylinux1_i686.whl (186.2 kB view details)

Uploaded CPython 3.5m

pycares-2.3.0-cp34-cp34m-win_amd64.whl (58.3 kB view details)

Uploaded CPython 3.4m Windows x86-64

pycares-2.3.0-cp34-cp34m-win32.whl (50.2 kB view details)

Uploaded CPython 3.4m Windows x86

pycares-2.3.0-cp34-cp34m-manylinux1_x86_64.whl (200.0 kB view details)

Uploaded CPython 3.4m

pycares-2.3.0-cp34-cp34m-manylinux1_i686.whl (186.0 kB view details)

Uploaded CPython 3.4m

pycares-2.3.0-cp33-cp33m-win_amd64.whl (58.3 kB view details)

Uploaded CPython 3.3m Windows x86-64

pycares-2.3.0-cp33-cp33m-win32.whl (50.2 kB view details)

Uploaded CPython 3.3m Windows x86

pycares-2.3.0-cp33-cp33m-manylinux1_x86_64.whl (197.0 kB view details)

Uploaded CPython 3.3m

pycares-2.3.0-cp33-cp33m-manylinux1_i686.whl (182.8 kB view details)

Uploaded CPython 3.3m

pycares-2.3.0-cp27-cp27mu-manylinux1_x86_64.whl (196.6 kB view details)

Uploaded CPython 2.7mu

pycares-2.3.0-cp27-cp27mu-manylinux1_i686.whl (182.4 kB view details)

Uploaded CPython 2.7mu

pycares-2.3.0-cp27-cp27m-win_amd64.whl (58.6 kB view details)

Uploaded CPython 2.7m Windows x86-64

pycares-2.3.0-cp27-cp27m-win32.whl (49.5 kB view details)

Uploaded CPython 2.7m Windows x86

File details

Details for the file pycares-2.3.0.tar.gz.

File metadata

  • Download URL: pycares-2.3.0.tar.gz
  • Upload date:
  • Size: 224.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycares-2.3.0.tar.gz
Algorithm Hash digest
SHA256 36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40
MD5 74893b2b380fbb45329a406ae4b1ae89
BLAKE2b-256 895c3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 170d62bd300999227e64da4fa85459728cc96e62e44780bbc86a915fdae01f78
MD5 2f6182bbb12668420adde724ffe52c20
BLAKE2b-256 5d846d0f2ad5433094bb6851ec70be6f146edf44b7ef28dc8fb46b2fa5ed7463

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 f32b7c63094749fbc0c1106c9a785666ec8afd49ecfe7002a30bb7c42e62b47c
MD5 a835dd7c01a3c7462b0d8940d6dc8dd6
BLAKE2b-256 0318d30bbf7c9abd4b2ddd014c5ea9de3c69adbda2f25a34c8580366c5523cb3

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0e81c971236bb0767354f1456e67ab6ae305f248565ce77cd413a311f9572bf5
MD5 6fe611743805247da3ff5d3def7993d7
BLAKE2b-256 e177911ea81174e050ec854f19eeed9ddc40f9e6d3fd1e45d79ac2d5c26c15c1

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp36-cp36m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 371ce688776da984c4105c8ca760cc60944b9b49ccf8335c71dc7669335e6173
MD5 1bc5a334f45f5cc88eb57f5ee818aa89
BLAKE2b-256 184bcc33126b898caceee427ac95e85602c4f01886615e9a1c5fe3896eb0d436

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 9d56a54c93e64b30c0d31f394d9890f175edec029cd846221728f99263cdee82
MD5 a916ff69e91819e9b0a48c4c06bce226
BLAKE2b-256 9fa9cd10bbfc113e4af9dad1d75238b9f603137dd81892e96d046aa91cc2374a

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 3a2234516f7db495083d8bba0ccdaabae587e62cfcd1b8154d5d0b09d3a48dfc
MD5 90b54fe0f982926a942afaf9cd44cb69
BLAKE2b-256 b342f25e24d262a52bd004ae5c23405e0a1fd23ad27a60c4371d613689985298

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 943e2dc67ff45ab4c81d628c959837d01561d7e185080ab7a276b8ca67573fb5
MD5 d19a15832a77c6b64abf091e23186af4
BLAKE2b-256 3957bdd32e3cd7b8b48146b9b08f18e671c99fe9b4089f43ee1ca1be447a3490

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp35-cp35m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 f50be4dd53f009cfb4b98c3c6b240e18ff9b17e3f1c320bd594bb83eddabfcb2
MD5 775a3784846e9d8dfc2a037f15de2909
BLAKE2b-256 c1d3e82caddfd4e83ecfcfddc32b6110a09ace35dcbb5697dbabda9cab3e09d6

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 bbfd9aba1e172cd2ab7b7142d49b28cf44d6451c4a66a870aff1dc3cb84849c7
MD5 09b93269c0eee8907a64a282ea298ebe
BLAKE2b-256 0c664aace469f16bb076ad2b32ffe648bd94f697ede8eb295e76a405b08baf1c

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 722f5d2c5f78d47b13b0112f6daff43ce4e08e8152319524d14f1f917cc5125e
MD5 d9743a344c52aea06bca64583e5479a6
BLAKE2b-256 91eb9a30fa3e2786e2c67c8bf19e6b631719e09dbdc7f8b1b7c5feaa23c796f5

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7b18fab0ed534a898552df91bc804bd62bb3a2646c11e054baca14d23663e1d6
MD5 dec18d68653bf939a84031449f0be906
BLAKE2b-256 24b638091fb17f9d0e4e6416ee09707fd3d6d16f77c515173c1f4c99fe14a354

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp34-cp34m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 11c0ff3ccdb5a838cbd59a4e59df35d31355a80a61393bca786ca3b44569ba10
MD5 d04bea48fd7a58a9dd78b56b5b2b62d8
BLAKE2b-256 23615db68f2970ed89cbc8d45256ea4f3e2a08f3cc79bcf59ef5302c8851bcec

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp33-cp33m-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 e2446577eeea79d2179c9469d9d4ce3ab8a07d7985465c3cb91e7d74abc329b6
MD5 0a6cbec241e941f09c0e27693e54c54c
BLAKE2b-256 a8eb49e0398f943ff923ce3b4686b0ae7f30eafea327ebecd96f25b023f7ce3c

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp33-cp33m-win32.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 40134cee03c8bbfbc644d4c0bc81796e12dd012a5257fb146c5a5417812ee5f7
MD5 57fefbc40eb9ccf797e1b6f862afd416
BLAKE2b-256 6abea1be4b433bedb3c96e5057a747967b87ed8d025d6ed3e8ad25b3bb183279

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp33-cp33m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e72fa163f37ae3b09f143cc6690a36f012d13e905d142e1beed4ec0e593ff657
MD5 b0cdb7077113d109039153143209bb3b
BLAKE2b-256 98d8a9332b93e8bd05b46abb680175104c184c9914096bcaf877fc38b7caded8

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp33-cp33m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp33-cp33m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 8ea263de8bf1a30b0d87150b4aa0e3203cf93bc1723ea3e7408a7d25e1299217
MD5 0fd1a2e2bffc2192eccf338bec7df91c
BLAKE2b-256 a065fbbee6273e9e55f01ebd30ff6bbc6778d73ab52f41d12616babc59f1cae8

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8a39d03bd99ea191f86b990ef67ecce878d6bf6518c5cde9173fb34fb36beb5e
MD5 260a1b25707c90201d4d1ee4ac94ea75
BLAKE2b-256 a01b8300d8700157ae78f79b7cdfa3932e217180eb53d362e0eb639dc8b424f6

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp27-cp27mu-manylinux1_i686.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3f288586592c697109b2b06e3988b7e17d9765887b5fc367010ee8500cbddc86
MD5 904eba66bcabfdb4a1b18bfd5855674e
BLAKE2b-256 c4177907fbe8b175227328777c88c1e97c5f894e8cecb66d4f249f44aa61ab04

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 b95b339c11d824f0bb789d31b91c8534916fcbdce248cccce216fa2630bb8a90
MD5 67a16f4867ac12b3c6f2badc4a59512b
BLAKE2b-256 686df80115e1b639f28b6e5228d6152ea346d9f88d0b753bb90a9a07cf47e7fb

See more details on using hashes here.

File details

Details for the file pycares-2.3.0-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for pycares-2.3.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 d8637bcc2f901aa61ec1d754abc862f9f145cb0346a0249360df4c159377018e
MD5 8bd59e40274c520407d9aaa9281e0214
BLAKE2b-256 5ba80e6c8c294a24bc959d9a1fc8ac5b4e454f132a9222026cbfc889e8bc6a7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page