Generic interface to access HTTP clients
anyhttp provides a generic layer to use existing http clients.
The primary purpose is to be used by packages which need http, do not need or want to depend on one of the existing clients, and/or want to re-used by applications which already have a dependency on a http clients.
Normal usage of anyhttp involves simply using either:
anyhttp will look for a capable http clients in sys.modules. The sequence will look like:
import httplib2 # must be first
anyhttp:http = Wrapper(httplib2)
anyhttp includes tests that verify the supported clients can perform certain http operations, and that test suite allows basic HTTP conformance testing of HTTP features.
It is easy to add a new client to the test suite. The list of supported clients is in the main anyhttp module, and the test suite automatically applies the tests to new clients added.
The automatic support of additional clients is achieved using python package testscenarios with an unmerged patch. This can be installed from https://code.launchpad.net/~jayvdb/testscenarios/0.4-with_scenarios
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size anyhttp-0.1-py3-none-any.whl (7.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size anyhttp-0.1.tar.gz (25.0 kB)||File type Source||Python version None||Upload date||Hashes View|