Skip to main content

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

Uploaded Source

Built Distributions

pycares-2.2.0-cp36-cp36m-win_amd64.whl (61.6 kB view details)

Uploaded CPython 3.6m Windows x86-64

pycares-2.2.0-cp36-cp36m-win32.whl (49.3 kB view details)

Uploaded CPython 3.6m Windows x86

pycares-2.2.0-cp36-cp36m-manylinux1_x86_64.whl (194.9 kB view details)

Uploaded CPython 3.6m

pycares-2.2.0-cp36-cp36m-manylinux1_i686.whl (180.7 kB view details)

Uploaded CPython 3.6m

pycares-2.2.0-cp35-cp35m-win_amd64.whl (61.6 kB view details)

Uploaded CPython 3.5m Windows x86-64

pycares-2.2.0-cp35-cp35m-win32.whl (49.3 kB view details)

Uploaded CPython 3.5m Windows x86

pycares-2.2.0-cp35-cp35m-manylinux1_x86_64.whl (194.9 kB view details)

Uploaded CPython 3.5m

pycares-2.2.0-cp35-cp35m-manylinux1_i686.whl (180.6 kB view details)

Uploaded CPython 3.5m

pycares-2.2.0-cp34-cp34m-win_amd64.whl (55.7 kB view details)

Uploaded CPython 3.4m Windows x86-64

pycares-2.2.0-cp34-cp34m-win32.whl (47.8 kB view details)

Uploaded CPython 3.4m Windows x86

pycares-2.2.0-cp34-cp34m-manylinux1_x86_64.whl (194.6 kB view details)

Uploaded CPython 3.4m

pycares-2.2.0-cp34-cp34m-manylinux1_i686.whl (180.5 kB view details)

Uploaded CPython 3.4m

pycares-2.2.0-cp33-cp33m-win_amd64.whl (55.6 kB view details)

Uploaded CPython 3.3m Windows x86-64

pycares-2.2.0-cp33-cp33m-win32.whl (47.8 kB view details)

Uploaded CPython 3.3m Windows x86

pycares-2.2.0-cp33-cp33m-manylinux1_x86_64.whl (191.2 kB view details)

Uploaded CPython 3.3m

pycares-2.2.0-cp33-cp33m-manylinux1_i686.whl (177.4 kB view details)

Uploaded CPython 3.3m

pycares-2.2.0-cp27-cp27mu-manylinux1_x86_64.whl (190.9 kB view details)

Uploaded CPython 2.7mu

pycares-2.2.0-cp27-cp27mu-manylinux1_i686.whl (177.2 kB view details)

Uploaded CPython 2.7mu

pycares-2.2.0-cp27-cp27m-win_amd64.whl (55.8 kB view details)

Uploaded CPython 2.7m Windows x86-64

pycares-2.2.0-cp27-cp27m-win32.whl (47.2 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

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

File hashes

Hashes for pycares-2.2.0.tar.gz
Algorithm Hash digest
SHA256 d0e53e2aa46867e2493d3858a70ffdec92699c03990aadc7223cf13384f61791
MD5 7df1d9aba74b76e9996a32acbe521578
BLAKE2b-256 b3ba6d59e91566902471d00e3efd477e37d8f4507e3c443a3c354c7622b8c09d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 882658ec0123d718b8067c22b71dd494b9a2a17d9188639cf5f2fd4086f5bc9b
MD5 cfedbe70d0872099980f76bbc12a6f00
BLAKE2b-256 f058678ee8a65e6a8f1d51e137eac1382d7b819bb241a50c62e76f01ac435261

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 36225d2a43437678d5a5cb2717b4f9b66f23725bcbf9733eb795b56e42d1f93a
MD5 05c357913925cb2676fe1f9a9ebf0ba5
BLAKE2b-256 cbe247fadf6d685111e754ac38726273987266c9072097c2ccd3f554964537e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 86310a86d54baa4519abcf1949b3b3fd20749044201dd37943e010af8ca0c146
MD5 0d3f7e05499094eacdae8720cc4ec139
BLAKE2b-256 467d47952febb0bd9781efefa353df3481f35111ffc8c848af4df0cd607eeb4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 86df94e1a2e3520b1b4c45c2b19b42ee7eed02c10aeef4c9f2302a9633ef1e9d
MD5 206645f0ae3dab0b1a1eb624b1807c65
BLAKE2b-256 6a444083cc311cc12102bee19d5ee123133a097062936fa50a76072ee219a7dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 e3bff998b7ca97882a89abd9eae559593dd657608b04d170920408b5843bd308
MD5 e9efa6c0bb4e80381fae7e878c80912a
BLAKE2b-256 f41444720423a25ba1b1cf028dbb1b2fa7fab2cd491944c7129bda8f11de9d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 97a719c1113920639b8810fa1b12eaf7bf0a9f274edc26929634427fa6e54bf9
MD5 181ed04734302d8b4fb73f4add26dbaa
BLAKE2b-256 73b5775268704c2c29ee0334f9bce105a0f9007134aa115a7679e10250e64df2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7f9add1b65b0fa5c730e356fb08949a289709b786d68c43bea871a2c73df5740
MD5 272a2fb4571c7b3f983b9caba20dcf8c
BLAKE2b-256 ecedf581968006c0bebca737cc403f174b57ce1f5b0e99992de1968fc7eaca0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 9f4ed4f3dedbe475e74b16ba5f8f55a7f74e19e295d4471f89b85d704299c971
MD5 2fb534bbac5c5cdbfd1c7c7fc793889b
BLAKE2b-256 6268794ef7fe55f47ffb32041c3a1ce57bb6ea2646d81b7a7dcf3d599b30a728

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 4aff2f27520779d893b8ef4227fd9ff7414d75541ac409bcd910d58644d8c90a
MD5 c4af26d4a345015ec911b1e351c1509f
BLAKE2b-256 3c1b18b8e0146482d3ddcb8998f64176e4cff11bd9b98697143bf262776bd198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 12259b04c94fbe7cbaf633373ce6ae200295e04b02c53e216997b1f3426b4100
MD5 7f011bcc82e85d2b807ac8700e7380ea
BLAKE2b-256 6d3a2ff48525d75d7972c2423e6b41b703202c5a6b32bdb6fa7c033c8c1a4724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 71d305e7a363ea5b6b240130e2fe3c7731c7ce67393de56c0c541769fca8655d
MD5 50de40de38dd22f1a045b30012199a08
BLAKE2b-256 1b6968c9637024bdad1c55f08953b0f9e6abeee47167a3d7300ca4f9329cad3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 79f1bbf32a1d22bf16fa96b0f74f9e3edfc0691c54df307eb3b85e80cb853151
MD5 e85e9bbc1d4ae6f40001b82070968ba8
BLAKE2b-256 9fb8e1acf4f4c94204fb55fbfc0f6178d4cd11fa4c5b36fbf6a622a53989ebdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 3a8f2ff1290b61d177a25a3889797b65ae0d748620be813bc188c2a41970bec2
MD5 962540bc438b8b958c2cfb42219e92ba
BLAKE2b-256 95ab3afd067547de87471f8faf4e7c127fb5cdba52da6201d3ec95fcb8476adb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 bbcefa30c773eff7bdc5c85c729cde3c93e63bc58678b290809d9a131d566bbc
MD5 79440590b4a66a8f002c01cddbddc0e8
BLAKE2b-256 741199d4242a440478f918155509038b629fddba873d95553b491e36a330cfb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8086cc069f4022093ca948c682c46a1a83a96232d5045967b04337a2b1f2012a
MD5 c767db2040c7007706e1903a01896935
BLAKE2b-256 71ccb0f6a4d4df0501e2c5d46db7f54d409cf407f9d37f6393aa162edf65f821

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp33-cp33m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 31a73b96de69677e85a38212038ff6562914f2a326e52a36bcd3ba104cbd1c6d
MD5 a05d8d597e9d25b52cfe728924453b52
BLAKE2b-256 69dd7c18b1019a33023ccfe584c92e93b51f0b97549f0a206e2c17da8181c42c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 08ab377be187d7aea8a4ed0f8cd7e21d8aa465ab4a780d79d599182c49244ee4
MD5 20d2a5c66b889c9ff72c034f58bacc49
BLAKE2b-256 85ae06649ced74d148ba19caf0e438c4fb22e14a0106411973f95b99497d9462

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 2fdf3801b262f028c3ca6cb9a1067d53ddf1408f0c449af92a59608cf34410d9
MD5 c60ed2b6a1771c7db2c0d3c3c0e25728
BLAKE2b-256 c4502c447fb28b692b8737952314273753900546fd2376b75b6c0e529d216147

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 0c5ef68e66efded617035a5fed65ffa492d3e4b86161131061874e5f0006c1e1
MD5 4aab891c4094bfbfb27c22b989f30f79
BLAKE2b-256 4c0d2d41f33a22797dca0328161eec6b09b8f0913ebbbaa19d8ca7d0f6797366

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.2.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 298a981f80bb2e2bf77be7ad5185fe0cd0b30312142b2c4c8781d7c65074e3f4
MD5 ebc27a1f41dfc3df512e99b2f22f45f3
BLAKE2b-256 c100d87a654cae2c3e2a41b2b735574bc7d77bfa8f5d8b6fb5375aa9c2224790

See more details on using hashes here.

Supported by

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