urlfetch 0.3.1
pip install urlfetch==0.3.1
Newer version available (2.0.1)
Released:
An easy to use HTTP client
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Elyes Du
- Tags httpclient, urlfetch
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Description
An easy to use HTTP client.
Installation
$ pip install urlfetch -U
Hello World
from urlfetch import get response = get('http://python.org/') print response.body
Upload file
from urlfetch import post response = post( 'http://127.0.0.1:8888/upload', headers = { 'Referer': 'http://127.0.0.1/', }, files = { 'fieldname1': open('/path/to/file', 'rb'), #'fieldname2': 'file content', # file must have a filename 'fieldname3': ('filename', open('/path/to/file2', 'rb')), 'fieldname4': ('filename', 'file content'), }, data = { 'foo': 'bar' }, ) print response.status, response.body
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: Elyes Du
- Tags httpclient, urlfetch
Classifiers
- Development Status
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file urlfetch-0.3.1.zip
.
File metadata
- Download URL: urlfetch-0.3.1.zip
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b48b0eaf1508a9c31c9c09c68a9d6937a0e0f2bc91b8ac48f70aa6e0bf78d05a |
|
MD5 | c0979908fbb7f093a5c10048b8686886 |
|
BLAKE2b-256 | ab8c17ed93c7f94a544eb5a52423ae4e31b25d27725eca32e434a3ca7f3eefed |
File details
Details for the file urlfetch-0.3.1.tar.gz
.
File metadata
- Download URL: urlfetch-0.3.1.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408040b5bef0dd73c8b310bf26bb5cf1bdc2b77825e03fd9d6ba6f5196c94ffb |
|
MD5 | e44c6aa4db23438ae9d1d4727c7c0973 |
|
BLAKE2b-256 | e83b3c1e36990012b12aee2fa778405b8941209d46695b1ea30d7a0f12054bc3 |
File details
Details for the file urlfetch-0.3.1.tar.bz2
.
File metadata
- Download URL: urlfetch-0.3.1.tar.bz2
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf23cb67118ef2ea2153e7d8bc2d3c5e6c6b10c20a05e0304aad52f4577fc056 |
|
MD5 | c7239f8f96998aa5bae537983987d01e |
|
BLAKE2b-256 | 50b297637956e2b1645d1de076d31a374b82f701a28d088d6f562fcb7f4b8161 |