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

Uploaded Source

Built Distributions

pycares-2.0.1-cp35-cp35m-win_amd64.whl (73.6 kB view details)

Uploaded CPython 3.5m Windows x86-64

pycares-2.0.1-cp35-cp35m-win32.whl (48.9 kB view details)

Uploaded CPython 3.5m Windows x86

pycares-2.0.1-cp34-cp34m-win_amd64.whl (55.2 kB view details)

Uploaded CPython 3.4m Windows x86-64

pycares-2.0.1-cp34-cp34m-win32.whl (47.5 kB view details)

Uploaded CPython 3.4m Windows x86

pycares-2.0.1-cp33-none-win_amd64.whl (55.2 kB view details)

Uploaded CPython 3.3 Windows x86-64

pycares-2.0.1-cp33-none-win32.whl (47.4 kB view details)

Uploaded CPython 3.3 Windows x86

pycares-2.0.1-cp27-cp27m-win_amd64.whl (67.7 kB view details)

Uploaded CPython 2.7m Windows x86-64

pycares-2.0.1-cp27-cp27m-win32.whl (46.8 kB view details)

Uploaded CPython 2.7m Windows x86

File details

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

File metadata

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

File hashes

Hashes for pycares-2.0.1.tar.gz
Algorithm Hash digest
SHA256 3a684c09b753e143d86190b57d71bd82d24492062d11d6ab6acc21349d2da34d
MD5 b26355a37bb65794356584fbf1ea619d
BLAKE2b-256 a27aff1701b55ef96615fb018bff935a014d76d7daa43d32a1b00bdcef028f97

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3f14675dfa49b0ea5edee347800c7ba53a9141f1193674446781cdb6d9b90625
MD5 bdcee9258056755314d52d6c3e35db32
BLAKE2b-256 637961c794f170ae52252161882f1c46bdd72083c141d8eada4fb44d12a169cb

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 161e00ae9576b19c386f4974608bcf3d872d562355072c94563399fab947aa0a
MD5 cfbcc1440c73696d7d922b869ccbb1c4
BLAKE2b-256 2f6b621b43ee86d0c760a5ac82ddd49375908743cb0f0816342aa716747c6a45

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 c2c1f4207ff91551fd11393580c64b5a49cc8aae4f2162fac781b0bfb61fae33
MD5 3ef5967528cd35abe3dfeae868540747
BLAKE2b-256 d7ffe8c3f5c25b7523281d60badb1d546ee164741155f8a324e3cbd0d2e0b085

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 a2cea5da2cfe1e43908e0d831a3473a9844fdbec6e1917674988cc9c8363ef13
MD5 02f011173170f77df7e4864622d3945f
BLAKE2b-256 3115d0bffffa9792a6b9199a23acf1b8a4e1ab879b07350f0576fb6e5db58f72

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 a83f2874fa40dc22385567995313710ddd0493795ab866df90c46e3adef05c66
MD5 0cb91b4782be5c704ccab39b015c77db
BLAKE2b-256 0fccf63c2634bc4b6a0fd3d64b3ff4685d8e21b757e3e4e4f717b33be4891c6b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp33-none-win32.whl
Algorithm Hash digest
SHA256 4b377be7a442dfdbb14f648f00247433a32e81f62754ec9373c847553dbd8a75
MD5 b10811c80926cfc8e2be19858c8d8fba
BLAKE2b-256 414f623c2358d4f5da23b824af86604794ff8c1eb456c1c25ae275d7989f03e5

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 7fd5a12911e8ee2c1c6454975be6e1a0d90a2933da1b05d50addc4aa2ccc6155
MD5 45e6c9bde51d88b5db051e232e873b7a
BLAKE2b-256 5b14ff3d05bbcbe351c555902db069095eb564ae69c59bfd6b6e498c1de3b674

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-2.0.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 313ff236f12918ca4a6c46a1d66713f7dc725244c7b11a926eb45d7175a16025
MD5 1c3bf8fb41126eb5e576ac57a707900b
BLAKE2b-256 289e7fb11ab484ea07958691d3f2f3fef82b643c2c5d5e23aaffa4a878382f3e

See more details on using hashes here.

Provenance

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