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 <http://c-ares.haxx.se/mail/c-ares-archive-2013-07/0005.shtml>_. 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 or the Windows SDK):

./build_inplace

Microsoft Windows (with MinGW, not recommended):

(MinGW and MSYS need to be installed)
./build_inplace --compiler=mingw32

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.py

  • Use Tox to run the test suite in several virtualenvs with several interpreters

    From the toplevel directory, run: tox -e py27,py33,py34 this will run the test suite on Python 2.7, 3.3 and 3.4 (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.

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

Uploaded Source

Built Distributions

pycares-1.0.0-cp34-none-win_amd64.whl (49.7 kB view details)

Uploaded CPython 3.4 Windows x86-64

pycares-1.0.0-cp34-none-win32.whl (44.5 kB view details)

Uploaded CPython 3.4 Windows x86

pycares-1.0.0-cp33-none-win_amd64.whl (49.7 kB view details)

Uploaded CPython 3.3 Windows x86-64

pycares-1.0.0-cp33-none-win32.whl (44.5 kB view details)

Uploaded CPython 3.3 Windows x86

pycares-1.0.0-cp27-none-win_amd64.whl (49.9 kB view details)

Uploaded CPython 2.7 Windows x86-64

pycares-1.0.0-cp27-none-win32.whl (44.7 kB view details)

Uploaded CPython 2.7 Windows x86

File details

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

File metadata

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

File hashes

Hashes for pycares-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a18341ea030e2cc0743acdf4aa72302bdf6b820938b36ce4bd76e43faa2276a3
MD5 1ba92060c8b6fb6495e07186a6ccfdad
BLAKE2b-256 46277ee723ed870b8aed8e0dbb72ecd210879753fd166984933d7d4c9c39c305

See more details on using hashes here.

Provenance

File details

Details for the file pycares-1.0.0-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-1.0.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 fc892112cb4b04fc23114215baa7fbfa9bd063acca6128e139092af8bcb313ba
MD5 b17333eefed306bc74340a8b525c528d
BLAKE2b-256 8e3cff635a5359c7a0c1defc6e661d29434d23a7959ff46fba8af18a351891e8

See more details on using hashes here.

Provenance

File details

Details for the file pycares-1.0.0-cp34-none-win32.whl.

File metadata

File hashes

Hashes for pycares-1.0.0-cp34-none-win32.whl
Algorithm Hash digest
SHA256 66ef984da4263191c2609ad7dc4ff0047a44e9a496909199d09b3e88d8de7445
MD5 2d8c305f19e99bd9e4a4dba648c0f117
BLAKE2b-256 49e1388da8a6a214f04290353f246a4967634c481e200d602bf6d789f2ac3e8d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-1.0.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 9cd9edbb2456e7c3a4cc3aef97db97f82ac6f08960500dadffcfe29957e6bea2
MD5 c8bbb8dc0cd646a193a8737e23be90bb
BLAKE2b-256 25a707514bbe6f7a4302fa21aa60d87c9e7e22f7b6d68b89b95738281666e048

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pycares-1.0.0-cp33-none-win32.whl
Algorithm Hash digest
SHA256 9be2b3cd9f28b882fd00cc0bcc6f2581b08b449294b8bbac323d929281d38f7c
MD5 b2a345cfcd631ea746cfedf18f570d80
BLAKE2b-256 d1db2c607eae9558df7a2f4c4e7aae6224b3e2571acaf4178fefba9f15c60c95

See more details on using hashes here.

Provenance

File details

Details for the file pycares-1.0.0-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for pycares-1.0.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 6624d0b6f77456e9b515e5139ae37d4683a21988cac1852dfdcda3a59731d984
MD5 2b4bca2aabcc5aea9ec4260db79a90bc
BLAKE2b-256 ddecab09ce5074ac16bda9bbf559f832c7d55e6315eb33910d2c7ceb6b684ee3

See more details on using hashes here.

Provenance

File details

Details for the file pycares-1.0.0-cp27-none-win32.whl.

File metadata

File hashes

Hashes for pycares-1.0.0-cp27-none-win32.whl
Algorithm Hash digest
SHA256 8c31d34f002a505dcc2260edf5c47980df257a43a816768928d3f1bd31b17411
MD5 fbbfb0b6864a6aed13d0e03ad7c51579
BLAKE2b-256 956ae4f6c2bf4bc4261562e3dc4a933629e654b877e5bba187555b2e46fe5287

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