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:

./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.1.1.tar.gz (226.8 kB view details)

Uploaded Source

Built Distributions

pycares-2.1.1-cp35-cp35m-win_amd64.whl (61.2 kB view details)

Uploaded CPython 3.5m Windows x86-64

pycares-2.1.1-cp35-cp35m-win32.whl (49.1 kB view details)

Uploaded CPython 3.5m Windows x86

pycares-2.1.1-cp34-cp34m-win_amd64.whl (55.3 kB view details)

Uploaded CPython 3.4m Windows x86-64

pycares-2.1.1-cp34-cp34m-win32.whl (47.6 kB view details)

Uploaded CPython 3.4m Windows x86

pycares-2.1.1-cp33-cp33m-win_amd64.whl (55.3 kB view details)

Uploaded CPython 3.3m Windows x86-64

pycares-2.1.1-cp33-cp33m-win32.whl (47.6 kB view details)

Uploaded CPython 3.3m Windows x86

pycares-2.1.1-cp27-cp27m-win_amd64.whl (55.4 kB view details)

Uploaded CPython 2.7m Windows x86-64

pycares-2.1.1-cp27-cp27m-win32.whl (47.0 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

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

File hashes

Hashes for pycares-2.1.1.tar.gz
Algorithm Hash digest
SHA256 17f06ecc2f7f5950922891dfe179a14382e34d620919c17f18957c6cd319ef43
MD5 d45bf7cb38b0b3fcaa09b437613493b5
BLAKE2b-256 df6844eb34ac59512d7f1901df228433c5e2341a21406348d8bed4b0fbc7cfbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 1273e13d97000991f5f9fa920a51708bef170f95ac765e035e3af38e44615dc2
MD5 cbd7261f67b225639144caf7b0165491
BLAKE2b-256 dec67fd4e1b4d0e8d83236246cef1f5653c86868a0ec91c04132658e9316eef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 c79a9feb9283d8aa19a6221a31cd7f9785ba8120fa235c0b2def10d7e65b2c91
MD5 ec6d0ffec03aabc2e94de0a96acea378
BLAKE2b-256 2654b0335d90686347adc8573b333b313ed5f7a2d574532ff6f734a575a39c86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 9e6a3411a862ddaf0828b218e8324d046bec884486d2bd06103fc730c614acb7
MD5 135897c5ddf71b133df6bdf7e5d178ab
BLAKE2b-256 b952b4efafc9e502f1a6a48d5b9019d3122c4af32ea8074458cb75aed3de53db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 2b52bc3f8301dbed1065eda462c018b79e227e256d3861b02d47c0713f6457ca
MD5 8d9dac04d24491026d2c4ed802abe13c
BLAKE2b-256 5ed0523c620827f995377086fb5a42746082794a2d15c1303d00b621c8c56e0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 8f3e1c3fc8d380c1f07e298eaa0ce281b5d99afd3b4e164648154a4de743e921
MD5 7ba8b56d193f28b9d1302fc8cf586c2e
BLAKE2b-256 0d27ac81c294a5f1d9acfe4c4fb83e1d85f1f5e593d43f1fafa59db3808e1d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 3969267ca2e4fab64767c6fef26ac21d18c4c6e417a283ff32616b03792b815c
MD5 8303055d6d21f8b57f7bbce166087882
BLAKE2b-256 eec4a4b01401114dd2ae95c8fdd80c9234e7c1608ecae2a5326cf181bfa75f29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 c7009acfb7df19e3e60014319d9391e197a74b17da6deb93b2f3ec1194c5b2a4
MD5 fc744d06a41f3cc2e26b00a5c170b7bd
BLAKE2b-256 ddb1fc4e420d61633bc1a5ed5ba0df3865873eb18423a91087ae7239688a7698

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycares-2.1.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 c57eacf0af3885a470a898501767bf91cc4c9283c3cf2f9c5e5347eeac8619e3
MD5 72b8d86572432b210281eab8e9988a83
BLAKE2b-256 54f83629f27d01ce6d7af56388ba1465ac4b1b5feaff534ff1f940cd5f4b381d

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