Very Minimal HTTP wrapper for Python.
[](https://travis-ci.org/plasmashadow/pyhttp)
[](http://badge.fury.io/py/pyrequest)
[](https://pypi.python.org/pypi/pyrequest)
[](https://landscape.io/github/plasmashadow/pyhttp/master)
##installation
```
pip install pyrequest
```
##Usage
```python
from pyhttp import Request
r = Request("google.com").get()
print r.status
//POST request
r = Request('http://jsonplaceholder.typicode.com/posts')
response = r.post({'title': 'hello'})
print response.content
print response.status
print response.json
//setting headers
r = Request('http://jsonplaceholder.typicode.com/posts')
r.headers = {'content-type': 'application/json')
response = r.post({'title': 'hello'})
print response.content
print response.status
print response.json
//PUT request
r = Request('http://jsonplaceholder.typicode.com/posts/1')
response = r.put({'title': 'hello'})
print response.content
print response.status
print response.json
//DELETE request
r = Request('http://jsonplaceholder.typicode.com/posts/1')
r.delete()
```
##License
MIT
Metadata
Release files for pyrequest 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrequest-0.5.tar.gz | 2.7 kB | Without provenance | Details for pyrequest-0.5.tar.gz |
Release files / pyrequest-0.5.tar.gz
| Download URL | pyrequest-0.5.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a818e92fa6f85f8b81966f083091a947438916ecc2e37dc2acff19db49699117
|
|
BLAKE2b-256 checksum How to use checksums |
6f945d2dabd104000530fddc8de92cf731a9706642d3879e28c09c27ae2b8758
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyrequest 0.5
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.