Skip to main content

Travis Badge Code Climate PyPi Versions

Quickly and easily access any RESTful or RESTful-like API.

If you are looking for the SendGrid API client library, please see this repo.

Announcements

All updates to this project is documented in our CHANGELOG.

Installation

pip install python_http_client

or

easy_install python_http_client

Quick Start

Here is a quick example:

GET /your/api/{param}/call

import python_http_client
global_headers = {"Authorization": "Basic XXXXXXX"}
client = Client(host='base_url', request_headers=global_headers)
client.your.api._(param).call.get()
print response.status_code
print response.headers
print response.body

POST /your/api/{param}/call with headers, query parameters and a request body with versioning.

import python_http_client
global_headers = {"Authorization": "Basic XXXXXXX"}
client = Client(host='base_url', request_headers=global_headers)
query_params={"hello":0, "world":1}
request_headers={"X-Test": "test"}
data={"some": 1, "awesome", 2, "data", 3}
response = client.your.api._(param).call.post(request_body=data,
                                              query_params=query_params,
                                              request_headers=request_headers)
print response.status_code
print response.headers
print response.body

Usage

Roadmap

If you are intersted in the future direction of this project, please take a look at our milestones. We would love to hear your feedback.

How to Contribute

We encourage contribution to our projects, please see our CONTRIBUTING guide for details.

Quick links:

Thanks

We were inspired by the work done on birdy and universalclient.

About

python-http-client is guided and supported by the SendGrid Developer Experience Team.

python-http-client is maintained and funded by SendGrid, Inc. The names and logos for python-http-client are trademarks of SendGrid, Inc.

SendGrid Logo

Metadata

Release files for python-http-client 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-http-client 2.1.0
File Size Uploaded Provenance Actions
python_http_client-2.1.0.tar.gz 4.8 kB Without provenance Details for python_http_client-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-http-client 2.1.0
File Interpreter ABI Platform Actions
python_http_client-2.1.0-py2-none-any.whl Python 2 none any Details for python_http_client-2.1.0-py2-none-any.whl

Total release size: 11.8 kB

Release files / python_http_client-2.1.0.tar.gz

Download URL python_http_client-2.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8f8548f4fcd666e0aa162b5aa18d41824ef52260a962325d41af98002219f23e
BLAKE2b-256 checksum
How to use checksums
cd8b9ba8081a8251262611468889fc7dd4af16901f9af0527cbb7e19c70f9a6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_http_client-2.1.0-py2-none-any.whl

Download URL python_http_client-2.1.0-py2-none-any.whl
Size 7.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d879e0ac1ab0f73473329af3ffe89c0e7389a810ab30d91d0edeaf90f7848e0f
BLAKE2b-256 checksum
How to use checksums
5d52270069ce06123cd010d9897b2550d4fc5692d183d2c2d3e31cd59cbb17d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-http-client 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page