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:

./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)

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.0.0.tar.gz (225.7 kB view details)

Uploaded Source

Built Distributions

pycares-2.0.0-cp35-cp35m-win_amd64.whl (60.9 kB view details)

Uploaded CPython 3.5m Windows x86-64

pycares-2.0.0-cp35-cp35m-win32.whl (48.7 kB view details)

Uploaded CPython 3.5m Windows x86

pycares-2.0.0-cp34-cp34m-win_amd64.whl (55.0 kB view details)

Uploaded CPython 3.4m Windows x86-64

pycares-2.0.0-cp34-cp34m-win32.whl (47.2 kB view details)

Uploaded CPython 3.4m Windows x86

pycares-2.0.0-cp33-none-win_amd64.whl (55.0 kB view details)

Uploaded CPython 3.3 Windows x86-64

pycares-2.0.0-cp33-none-win32.whl (47.2 kB view details)

Uploaded CPython 3.3 Windows x86

pycares-2.0.0-cp27-cp27m-win_amd64.whl (55.2 kB view details)

Uploaded CPython 2.7m Windows x86-64

pycares-2.0.0-cp27-cp27m-win32.whl (46.6 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

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

File hashes

Hashes for pycares-2.0.0.tar.gz
Algorithm Hash digest
SHA256 b132a0b4846dc89b813ec331e2d1b3d29e11697978b2e602269aeb202e6e1f66
MD5 612cc7efc59042ce3aefbcb0ade76e1c
BLAKE2b-256 e177c37849bef3c30cb4e5bcabe3857a83e598c6965a240beecab9dea03daa99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.0.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 9f98fceec2dac41f3aebce2174e1de6cef5b84f24656b65b746cb439427bda43
MD5 2d8d8e090947d271ea5555e2c17e6f96
BLAKE2b-256 5812283ca38c33a876d3e6b7866d329d221596c80019a47f88baa67989385123

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.0.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 b85a4f64f3913b15fb9472fbd532cdc37987b0c2d45e09c9ea673688b0b7492b
MD5 b6538c5444bd743a49b03dbc7b489ff4
BLAKE2b-256 514051678021798df6545f53887563a3771618e76222c2220e1504cb952bc397

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.0.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 45674ef05f458b99ef097394baa4b67aa1a8c21364ea2fec51bc2280ac1ce6d6
MD5 bd699204b0dc34515d46b4040d5d65a2
BLAKE2b-256 1769dac753d7b96a127f44da060afad10a62c87771b5405d48eae9ecf4123482

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.0.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 3ad9514c1faa5cfa31fecfa58760443e2b411e0c5a85b44c1f10a733389b596b
MD5 9f074ab078fe32d2ed629de5d4b62a8d
BLAKE2b-256 2bd6cdf3283e05f73e5d51736aa0fcecd0e075e08f4ea5bb099fe343c4b15cfa

See more details on using hashes here.

File details

Details for the file pycares-2.0.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-2.0.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 3accf855c5c78a58d4c2d4ccb1d896457b06809bd2e726c8df0ec4ae0486721e
MD5 6e4d791c04fe7c82185d8711979256bb
BLAKE2b-256 c8734dcf6407b24582ad9d38bfd3722caeea8db2d0cc218cd0cec256215985cd

See more details on using hashes here.

File details

Details for the file pycares-2.0.0-cp33-none-win32.whl.

File metadata

File hashes

Hashes for pycares-2.0.0-cp33-none-win32.whl
Algorithm Hash digest
SHA256 0d649f0f9feca5bd478cdba16db13d322f1b3bce9e2871ef1c685e6f2420ca42
MD5 14abef21118d834e57c4f704082c18b5
BLAKE2b-256 9d245f37309e8c5dc5353f10861fb2dbf8b0642670a7ba19bb5130548b677333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.0.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 e8ec6fa40a50843791008cc349c44e7acabd5713f3bff384a3530688153cb2ad
MD5 105d35b8829ad0a9c7ad996c199ed1e3
BLAKE2b-256 1d71a6ec99a5ba5ef84d2c9ecbedc14980dd4f0aef66146d32a8103f03335088

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.0.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 4882d3ab806fb31d7e8c28ec16d76307a120d2b8717dd7d62cd4dfd9a58486a7
MD5 ccf10e9bab94ed3f641c13f40429d653
BLAKE2b-256 9c2906f4475c6a914d2eeb4f092058e88e97320d7b588a6a4e030f845916f68a

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