• Stars
    star
    795
  • Rank 57,274 (Top 2 %)
  • Language
    Python
  • License
    Creative Commons ...
  • Created over 5 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Requests 3.0, for Humans and Machines, alike. πŸ€–

Requests III: HTTP for Humans and Machines, alike.

image image image image image

Requests III is an HTTP library for Python, built for Humans and Machines, alike. This repository is a work in progress, and the expected release timeline is "before PyCon 2020".

image

Behold, the power of Requests III:

>>> from requests import HTTPSession

# Make a connection pool.
>>> http = HTTPSession()

# Make a request.
>>> r = http.request('get', 'https://httpbin.org/ip')

# View response data.
>>> r.json()
{'ip': '172.69.48.124'}

image

Requests III allows you to send organic, grass-fed HTTP/1.1 & HTTP/2 (wip) requests, without the need for manual thought-labor. There's no need to add query strings to your URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling are 100% automatic, as well.

Besides, all the cool kids are doing it. Requests is one of the most downloaded Python packages of all time, pulling in over ~1.6 million installations per day!

Feature Support

Requests III is ready for today's web.

  • Support for H11 & H2 protocols.
  • Type-annotations for all public-facing APIs.
  • Better defaults; required timeouts.
  • async/await keyword & asyncio support.
  • Compability with Python 3.6+.

While retaining all the features of Requests Classic:

  • International Domains and URLs
  • Keep-Alive & Connection Pooling
  • Sessions with Cookie Persistence
  • Browser-style SSL Verification
  • Basic/Digest Authentication
  • Elegant Key/Value Cookies
  • Automatic Decompression
  • Automatic Content Decoding
  • Unicode Response Bodies
  • Multipart File Uploads
  • HTTP(S) Proxy Support
  • Connection Timeouts
  • Streaming Downloads
  • .netrc Support
  • Chunked Requests

Satisfaction guaranteed.

Documentation

Fantastic documentation is available at http://3.python-requests.org/, for a limited time only.

How to Contribute

  1. Become more familiar with the project by reading our Contributor's Guide and our development philosophy.
  2. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.
  3. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
  4. Write a test which shows that the bug was fixed or that the feature works as expected.
  5. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.

More Repositories

1

procs

Python, Processes, and Prana.
Python
226
star
2

args

Argument Parsing for Humansβ„’
Python
204
star
3

howtopython.org

A (book, website) that decribes how to Python, from scratch.
Python
158
star
4

white

The Black code formatter, but brighter (PEP8–inspired).
Python
121
star
5

open-icons

A collection of open and free icons for your next web app.
98
star
6

terrapyn

A Python module for slinging infrastructure (with terraform).
Python
80
star
7

wordpress-theme-skeleton

The starting place for every top-knotch WordPress theme
PHP
74
star
8

insert

A (potentially) great code editor for iOS, targeting the iPad. Likely written in Swift.
Swift
74
star
9

awesome-guides

A curated (collaborative) list of Awesome Guides.
Python
74
star
10

kr-sphinx-themes

Sphinx theme I use for most projects. Derivative of Mitsuhiko's Flask theme.
Python
70
star
11

envy

[WIP] Python Projects Environment Tool.
Python
54
star
12

its.py

Python runtime environment flags.
Python
52
star
13

dove

LΓ–VE for Python (that's the goal!)
51
star
14

feedharvest

[In Progress] Open source, API-driven Google Reader alternative.
44
star
15

ovaltine

A secret content decoder ring for Python (extracted from Requests).
Python
38
star
16

index.py

Oldschool Web Development for Humansβ„’
Python
35
star
17

richtext.org

a place to share thingsβ„’
Python
34
star
18

stathat.py

StatHat API Wrapper.
Python
34
star
19

.com

The Official Websiteβ„’
Python
28
star
20

flask-rest

Simple Flask extension for providing RESTful APIs.
Python
22
star
21

resources

[WIP] Non-HTTP RESTful APIs for Python Applications.
Python
22
star
22

python-versions

A set of scripts that creates stable builds of Python. Used for Heroku.
Shell
21
star
23

pythonforhumans.org

[Work in Progress] Python for Humans.
20
star
24

wordpress-skeleton

WordPress skeleton I use for every project (w/ best plugins)
PHP
19
star
25

krTheme.tmTheme

The Tasteful krTheme for TextMate
18
star
26

redi

Native Python datatype persistence in Redis.
Python
17
star
27

packages

Experimental distributed Python packaging.
16
star
28

python-localtunnel

[In Progress] Python port of progrium/localtunnel.
Python
15
star
29

notebooks

Jupyter Notebooks.
Jupyter Notebook
15
star
30

dynamo

Simple DynamoDB API for Python
Python
14
star
31

redmine-gitcamp-theme

Basecamp theme for Remine +GitHub Wiki Styles
CSS
13
star
32

bruce-operator

The BRUCE operator.
Python
13
star
33

ijson

[Mirror] By Ivan Sagalaev. A Python wrapper to YAJL providing standard iterator interface to streaming JSON parsing
Python
13
star
34

kcode.tmbundle

Rapid Code Enhancement Bundle for TextMate
Python
12
star
35

instareader.py

Instapaper is hungry for Google Reader Stars. Let's feed it.
Python
12
star
36

unzipit

I'll never remember the tar command flags.
Python
12
star
37

conductofcode

[Work in Progress] The 12factor of Open Source.
Python
12
star
38

sshout

Temporary, public SSH server with temporary credentials. Powered by localtunnel.
11
star
39

argue

Pythonic command line argument parsing.
Python
11
star
40

oreos

Python Cookies for Humans.
Python
11
star
41

dotfiles

3rd Refresh of the dotfiles. I had these scattered in different repos. Now they're in the same place.
Vim Script
11
star
42

plac

[mirror] Parsing the Command Line the Easy Way. By Michele Simionato.
Python
10
star
43

DummyImage.tmBundle

DummyImage Bundle for TextMate
10
star
44

pyinstaller

[Mirror] PyInstaller w/ changes to make it not suck as much
Python
10
star
45

changelogdash

Super simple dashboard for the GitHub Reflog, er, The Changelog.
Python
10
star
46

dirsnap

Takes a snapshot of a directory, uploads to a public URL.
9
star
47

textmate-krtheme

[Unmaintained] A beautiful yet functional dark TextMate theme.
9
star
48

anyjson

[mirror] of Rune Halvorsen's AnyJSON Python module.
Python
9
star
49

python-convore

[in Progress] Python wrapper for the Convore API.
Python
8
star
50

wp-krtheme

WordPress theme behind KennethReitz.com
PHP
8
star
51

tablib-service

Tablib as a web service.
8
star
52

envy-versions

Python version web service.
8
star
53

adventure

FORK of Brandon Craig Rhodes' Epic Adventure Game for Python.
Python
8
star
54

fabric-zsh-completion

[In progress] Fabric tab-completion for Zsh.
Shell
8
star
55

winchestar-v2

Forbidden RSS Feed for my local newspaper.
Python
7
star
56

travis-light

Travis, without the frills (work in progress).
7
star
57

chaos-slugs

Random slug name generator service.
Python
6
star
58

wp-s3

The guy who made tantan-s3 disappeared, so I'll be taking it from here. Eventually.
PHP
6
star
59

wp-mustache

Defunkt's Mustache templating engine for WordPress
PHP
6
star
60

emojify

Emoji web service.
6
star
61

redis-docs

[In Progress] The Redis Docs in ReStructured Text + Sphinx
Python
6
star
62

python-project

Example Python Project Structure
6
star
63

listserved-service

Web service powering listserved, the mailing list manager.
Python
6
star
64

vibrant-fin-textmate-theme

I decided to improve upon the lovely Vibrant Ink TextMate theme. Better highlights and comments!
5
star
65

python-build-old

[In Progress] Python Environment Tools
Python
5
star
66

kennethreitz-theme

PHP
5
star
67

hit

Hub for Heroku.
Ruby
5
star
68

atom

The API powering KennethReitz.org.
Python
5
star
69

wp-clippy-syntax

WP-Syntax plugin for WordPress w/ Clippy Added!
PHP
5
star
70

callingme-service

The web service powering callingme.org.
Python
5
star
71

python-compat

Write code that runs on both Python 2.x and 3.x.
Python
5
star
72

webhook-reel

Jenkins doesn't let you trigger builds via webhook POSTs (like GitHub's). Now, it does.
5
star
73

wp-async-google-analytics

Asynchronous Google Analytics Plugin for Wordpress.
PHP
5
star
74

python_project

The proper way to a organize Python project
Python
5
star
75

things.py

[In Development] Python wrapper for interacting with OS X's Things.app.
Python
5
star
76

macspoof

A Simple Mac Address Changer, written in Python
Python
5
star
77

curated-nodes

evolving public reflection of self (in progress)
Python
5
star
78

php-swfuploader-notify

PHP Implementation of SWFuploader with email Notifications. Fancy.
4
star
79

reflog

The GitHub Reflogβ„’
Python
4
star
80

zum-wp-theme

PHP
4
star
81

wolfram

[Slow work In Progress] Python wrapper for the Wolfram Alpha API, v2
4
star
82

panda

Pan-Dimensional Articles (for Python)
4
star
83

buildpack-fiesta

CLI for buildpack-party. Abuses gist.
Shell
4
star
84

vaincheese

A web service that reports PyPi download stats.
Python
4
star
85

osxpython.org

(Work in Progress) A best-practices site for Python developers using OS X.
JavaScript
4
star
86

charmd

Pow for Python
4
star
87

wp-coreylib

Coreylib Plugin for Wordpress.
PHP
4
star
88

kr-site-buildpack

Personal buildpack for kennethreitz.com
Python
4
star
89

heroku-buildpack-archiveteam

Heroku + warc-get + rsync
Shell
4
star
90

wp-draft-notify

WordPress plugin that sends admins an email when posts are ready for review.
4
star
91

usajobs-scraper

USAJobs.gov Data Scraper -> mysql. Very messy. Needs a redo.
Python
4
star
92

backitup

Python
4
star
93

abode

Don't use. Epio-inspired Heroku client, written in Python.
Python
4
star
94

gitmine

Redmine + Gitosis
Shell
4
star
95

musicsaver

Python
4
star
96

loremipsum-2-textmate-bundle

Lorem Ipsum in TextMate rocks. But now it rocks harder, stronger, and faster.
4
star
97

mdWiki

pmWiki + Skin + MarkDown. Ready to rock.
PHP
4
star
98

redirector

LIttle Werkzeug app for redirecting to a configured URL.
Python
3
star
99

kPHP.tmbundle

Extensions to TextMate's slightly lacking PHP Bundle.
3
star
100

wp-google-openid

Add your Google Profile OpenID as a provider to your WordPress Site.
3
star