Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Pythonic way of HTTP request

Project Description
##PyHTTP

Very Minimal HTTP wrapper for Python.

[![Build Status](https://travis-ci.org/plasmashadow/pyhttp.svg?branch=master)](https://travis-ci.org/plasmashadow/pyhttp)
[![PyPI version](https://badge.fury.io/py/pyrequest.svg)](http://badge.fury.io/py/pyrequest)
[![PyPI](https://img.shields.io/pypi/dm/pyrequest.svg)](https://pypi.python.org/pypi/pyrequest)
[![Code Health](https://landscape.io/github/plasmashadow/pyhttp/master/landscape.svg?style=flat)](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
Release History

Release History

This version
History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyrequest-0.5.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Jun 3, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting