Skip to main content

Travis Badge Code Climate

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

Prerequisites

  • Python version 2.6, 2.7, 3.4 or 3.5

Install Package

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

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.2.1
File Size Uploaded Provenance Actions
python_http_client-2.2.1.tar.gz 4.9 kB Without provenance Details for python_http_client-2.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / python_http_client-2.2.1.tar.gz

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

Release files / python_http_client-2.2.1-py2.py3-none-any.whl

Download URL python_http_client-2.2.1-py2.py3-none-any.whl
Size 7.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2e86716cdc68c28bf25fd64786246cb2d91a6803dd3a4e1028204f1e63ee90bc
BLAKE2b-256 checksum
How to use checksums
97c545b826bad60521001ff7fe3f8af0436f9b62b078724f3673fbe7b5735704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-http-client 2.2.1

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