Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4636 commits
Select commit Hold shift + click to select a range
36cc7bb
Update README.md
kennethreitz Sep 18, 2019
11982c1
Update README.md
kennethreitz Sep 18, 2019
bb2ae00
Update README.md
kennethreitz Sep 18, 2019
59dac47
Update README.md
kennethreitz Sep 18, 2019
6b89c87
Update README.md
kennethreitz Sep 18, 2019
9b51d7c
Update README.md
kennethreitz Sep 18, 2019
4b9e5d0
Update README.md
kennethreitz Sep 18, 2019
c198cc0
Update README.md
kennethreitz Sep 18, 2019
0859c01
flourish
kennethreitz Sep 18, 2019
b44d6fd
Update README.md
kennethreitz Sep 18, 2019
2416c2d
Update README.md
kennethreitz Sep 18, 2019
a7e2da8
flourish
kennethreitz Sep 18, 2019
42926b5
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
3f21a2d
shoes and cars
kennethreitz Sep 18, 2019
26b104e
Update README.md
kennethreitz Sep 18, 2019
6fbbbc8
Update README.md
kennethreitz Sep 18, 2019
9697837
flower of life
kennethreitz Sep 18, 2019
6d37433
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
720f1ce
Update README.md
kennethreitz Sep 18, 2019
e820ac7
Update README.md
kennethreitz Sep 18, 2019
8072d4f
Update README.md
kennethreitz Sep 18, 2019
8635425
Update README.md
kennethreitz Sep 18, 2019
c5d9e12
resize
kennethreitz Sep 18, 2019
7ce4691
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
c2479ae
logo
kennethreitz Sep 18, 2019
e40a3d6
Update README.md
kennethreitz Sep 18, 2019
2abe574
Update README.md
kennethreitz Sep 18, 2019
7620422
Update README.md
kennethreitz Sep 18, 2019
9ba6c5e
Update README.md
kennethreitz Sep 18, 2019
be7cbe1
Update README.md
kennethreitz Sep 18, 2019
bc8fa9c
Update README.md
kennethreitz Sep 18, 2019
426a1c0
Update README.md
kennethreitz Sep 18, 2019
bdc92c7
Update README.md
kennethreitz Sep 18, 2019
60cffb0
Update README.md
kennethreitz Sep 18, 2019
33e402b
Update README.md
kennethreitz Sep 18, 2019
31a6e69
Update README.md
kennethreitz Sep 18, 2019
2d3b68c
Update README.md
kennethreitz Sep 18, 2019
4a87d1e
Update README.md
kennethreitz Sep 18, 2019
570dc15
Update README.md
kennethreitz Sep 18, 2019
846c37c
Update README.md
kennethreitz Sep 18, 2019
f3b6244
Update README.md
kennethreitz Sep 18, 2019
e35ace7
Update README.md
kennethreitz Sep 18, 2019
a08c421
Update README.md
kennethreitz Sep 18, 2019
355e288
Update README.md
kennethreitz Sep 18, 2019
d6db390
Update README.md
kennethreitz Sep 18, 2019
e63d846
Update README.md
kennethreitz Sep 18, 2019
65a73bd
Update README.md
kennethreitz Sep 18, 2019
30c128a
Update README.md
kennethreitz Sep 18, 2019
8e19074
Update README.md
kennethreitz Sep 18, 2019
8074cc8
Update README.md
kennethreitz Sep 18, 2019
8d09a80
Update README.md
kennethreitz Sep 18, 2019
e1eb569
Update README.md
kennethreitz Sep 18, 2019
b08073a
Update README.md
kennethreitz Sep 18, 2019
fcde691
Update README.md
kennethreitz Sep 18, 2019
0f9bcfb
Update README.md
kennethreitz Sep 18, 2019
2e99281
Update README.md
kennethreitz Sep 18, 2019
73a6594
Update README.md
kennethreitz Sep 18, 2019
33f41b8
Update README.md
kennethreitz Sep 18, 2019
b639f17
Update README.md
kennethreitz Sep 18, 2019
0916044
Update README.md
kennethreitz Sep 18, 2019
70cc902
Update README.md
kennethreitz Sep 18, 2019
24e46d0
Update README.md
kennethreitz Sep 18, 2019
042ccfc
license
kennethreitz Sep 18, 2019
26466b5
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
cbccc5f
Update README.md
kennethreitz Sep 18, 2019
775813a
Update README.md
kennethreitz Sep 18, 2019
80c7cbd
Update README.md
kennethreitz Sep 18, 2019
1d41e8d
Update README.md
kennethreitz Sep 18, 2019
c6ab21c
Update README.md
kennethreitz Sep 18, 2019
316f748
Update README.md
kennethreitz Sep 18, 2019
2256fd2
Update README.md
kennethreitz Sep 18, 2019
80562c9
Update README.md
kennethreitz Sep 18, 2019
caf91bd
Update README.md
kennethreitz Sep 18, 2019
186dcee
Update README.md
kennethreitz Sep 18, 2019
a5bcc9c
pngsquash
kennethreitz Sep 18, 2019
6831d2d
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
30a1608
Update README.md
kennethreitz Sep 18, 2019
e11caeb
Update README.md
kennethreitz Sep 18, 2019
abe22b1
Update README.md
kennethreitz Sep 18, 2019
be2fe0c
Update README.md
kennethreitz Sep 18, 2019
ac9f0d7
Update README.md
kennethreitz Sep 18, 2019
a29be8f
Update LICENSE
kennethreitz Sep 18, 2019
0f1251b
Update README.md
kennethreitz Sep 18, 2019
536b583
Update README.md
kennethreitz Sep 18, 2019
af85e68
Update README.md
kennethreitz Sep 18, 2019
cf77263
Update README.md
kennethreitz Sep 18, 2019
a7944ba
Update README.md
kennethreitz Sep 18, 2019
75f062d
Update README.md
kennethreitz Sep 18, 2019
179f943
Update README.md
kennethreitz Sep 18, 2019
99197c2
Update README.md
kennethreitz Sep 18, 2019
d66ffdb
Update README.md
kennethreitz Sep 18, 2019
3ed0f8f
Update README.md
kennethreitz Sep 18, 2019
446911b
Update README.md
kennethreitz Sep 18, 2019
458496d
Update README.md
kennethreitz Sep 18, 2019
de1c200
Update README.md
kennethreitz Sep 18, 2019
9f35ebd
Update README.md
kennethreitz Sep 18, 2019
0f71067
Update README.md
kennethreitz Sep 18, 2019
49acab8
Update FUNDING.yml
kennethreitz Sep 18, 2019
c21c039
Update FUNDING.yml
kennethreitz Sep 18, 2019
dc1526f
Update README.md
kennethreitz Sep 18, 2019
f348d51
Update README.md
kennethreitz Sep 18, 2019
b15bccf
Update README.md
kennethreitz Sep 18, 2019
cfdd00f
Update README.md
kennethreitz Sep 18, 2019
eb2c148
Update README.md
kennethreitz Sep 18, 2019
72176ab
Update README.md
kennethreitz Sep 18, 2019
f823825
Update README.md
kennethreitz Sep 18, 2019
a9860c4
Update README.md
kennethreitz Sep 18, 2019
c196511
Update README.md
kennethreitz Sep 18, 2019
14c3234
deepmind
kennethreitz Sep 18, 2019
0682650
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
a3735e2
Update README.md
kennethreitz Sep 18, 2019
a025522
flourish
kennethreitz Sep 18, 2019
ac851d8
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
92b88fc
Update README.md
kennethreitz Sep 18, 2019
1a7d140
cleanups
kennethreitz Sep 18, 2019
23fe729
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
9369b5a
kr
kennethreitz Sep 18, 2019
87f9a58
Update README.md
kennethreitz Sep 18, 2019
4cd6538
Update README.md
kennethreitz Sep 18, 2019
5099688
Update README.md
kennethreitz Sep 18, 2019
fbc5ed5
psf
kennethreitz Sep 18, 2019
38d9a4f
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
2cb3abe
Update README.md
kennethreitz Sep 18, 2019
5cb55a8
squash!
kennethreitz Sep 18, 2019
12640ec
Merge branch 'master' of github.com:psf/requests
kennethreitz Sep 18, 2019
9d4fd3c
Update README.md
kennethreitz Sep 18, 2019
2962c23
Fix misspelling
peterschutt Sep 18, 2019
1462917
Update README.md
kennethreitz Sep 18, 2019
09fd857
Revert "Add trusted domains"
nateprewitt Sep 19, 2019
afb508f
removing duplicate entry
nateprewitt Sep 19, 2019
e08981e
updating project url
nateprewitt Sep 19, 2019
a5f4f3c
resolve more-itertools py2.7 issues
nateprewitt Sep 19, 2019
189fea7
Merge pull request #5197 from 5uper5hoot/patch-1
nateprewitt Sep 19, 2019
0357b07
Merge pull request #5195 from lzutao/patch-1
nateprewitt Sep 19, 2019
1d3787a
AUTHORS.rst
kennethreitz Sep 23, 2019
729fd3c
Revert "deepmind"
kennethreitz Sep 23, 2019
e8a9bd7
The Principle of Polarity
kennethreitz Sep 23, 2019
c4c6086
Update README.md
kennethreitz Sep 23, 2019
1311c96
Update README.md
kennethreitz Sep 23, 2019
5f824fb
Update README.md
kennethreitz Sep 23, 2019
8345819
Update README.md
kennethreitz Sep 23, 2019
0d180a5
Merge pull request #5208 from psf/partII
kennethreitz Sep 23, 2019
0178903
Xenial is now the default
hugovk Sep 23, 2019
6e05165
Test on Python 3.8 beta
hugovk Sep 23, 2019
74b72ce
documentation link fixed
Leetcore Sep 29, 2019
fab1fd1
Merge pull request #5216 from Leetcore/patch-1
ewdurbin Sep 30, 2019
2ff8106
Test on Python 3.8 final
hugovk Oct 22, 2019
56fd46f
Merge pull request #5243 from hugovk/test-3.8-final
nateprewitt Oct 25, 2019
4cd95aa
update translation links from http -> https (#5237)
chmreid Oct 25, 2019
d2590ee
Change documentation website to requests.readthedocs.io (#5236)
ssbarnea Oct 25, 2019
4a540ff
Fix link to requests-threads on community/recommended
MasterOdin Oct 30, 2019
eedd674
Merge pull request #5250 from MasterOdin/patch-1
nateprewitt Nov 23, 2019
f462eec
Update supported Python versions
hugovk Jan 6, 2020
ad18d14
Merge pull request #5306 from hugovk/update-python-versions-in-faq
nateprewitt Jan 9, 2020
782e94d
Update example code in README.md (#5292)
jkooker Jan 9, 2020
a9ee0ee
Add Python 2 support entry in FAQ (#5303)
brainwane Jan 9, 2020
d2f65af
Move community files under .github/ (#5206)
hugovk Jan 19, 2020
9b95b4e
Add PyPy3 to Travis test suite (#5193)
johnthagen Jan 21, 2020
7138d8b
Change link for pip installation instructions
nawatts Jan 25, 2020
7b565d8
Merge pull request #5325 from nawatts/install-pip-link
nateprewitt Jan 25, 2020
d5c4cac
Fix intersphinx_mapping config for Python standard library
nawatts Jan 25, 2020
a990653
Merge pull request #5326 from nawatts/intersphinx-mapping-config
nateprewitt Feb 1, 2020
b1631b0
Update link to pipenv in README.
stock1218 Feb 17, 2020
ae0a497
Update link to pipenv in installation guide.
stock1218 Feb 17, 2020
23f6faa
Merge pull request #5346 from stock1218/master
nateprewitt Feb 18, 2020
e113020
Fix the syntax highlighting in the example (#5276)
ZhukovAlexander Feb 18, 2020
c46f55b
Limit dependencies to major instead of minor (#5342)
cjw296 Feb 18, 2020
80011a7
Remove an obsolete attribute from __attrs__
nedbat Jun 4, 2019
b15056d
Revert "#4965 fix: Accessing response.content twice removes forgets r…
nateprewitt Feb 18, 2020
24bcb9e
Revert "Use urllib for chunked requests"
nateprewitt Feb 18, 2020
fd13816
Revert "Fix for response with UTF-8 BOM #4976"
nateprewitt Feb 18, 2020
b7c6aba
v2.23.0
nateprewitt Feb 19, 2020
ca6f9af
Normalize exception docstrings (#5338)
rednafi Feb 23, 2020
0a760ff
updating pipfile.lock for bleach security issue (#5364)
nateprewitt Feb 27, 2020
65989dd
changing of the guard
nateprewitt Feb 27, 2020
4fc7f4a
Update disclosure contact info (#5369)
nateprewitt Feb 27, 2020
2758124
Also update GitHub's Security Disclosure document (#5370)
sethmlarson Feb 28, 2020
bebf525
Remove explicit unicode literal in README.md and doc (#5336)
aless10 Mar 25, 2020
c577eb8
fix README typo
dtrodrigues Mar 28, 2020
9ea8510
fixing rst markup
nateprewitt Apr 3, 2020
bfb93d4
update bleach security vulnerability
nateprewitt Apr 3, 2020
db47b9b
Don't use pyOpenSSL unless no SNI is detected
sethmlarson Apr 30, 2020
251f73f
Add changelog entry for pyOpenSSL change
sethmlarson May 1, 2020
427e8eb
Fix test_conflicting_post_params to work on pytest 5 (#5305)
hroncok May 9, 2020
9ed5db8
fix raise_for_status docstring (#5293)
graingert May 9, 2020
fa2dbe9
Remove what appears to be an un-needed call to self.resolve_redirects…
dbaxa Jun 15, 2020
2b3436e
Merge pull request #5492 from dbaxa/avoid-calling-resolve_redirects-w…
nateprewitt Jun 15, 2020
8ac5929
Fix typo in README (#5468)
kkirsche Jun 15, 2020
737dd0c
Update number of dependents on requests (#5495)
bharatr21 Jun 15, 2020
71a05cf
Avoid an unnecessary computation of the length of data for non-stream…
dbaxa Jun 16, 2020
7c71982
Merge pull request #5496 from dbaxa/optimise-prepare-body
nateprewitt Jun 17, 2020
daa2b29
updating usage information
nateprewitt Jun 16, 2020
0797c61
v2.24.0
nateprewitt Jun 16, 2020
1ca1c52
Google App Engine (#5475)
KartikChugh Jun 17, 2020
9cae7be
Clarify that PreparedRequests should not be manually created
ollien Jun 19, 2020
8149e9f
Merge pull request #5505 from ollien/prepared-requests-docs-correction
nateprewitt Jun 19, 2020
1b41763
cleanup advanced docs header
nateprewitt Jun 26, 2020
2d39c0d
Docs: list CURL_CA_BUNDLE as supported (#5509)
bbodenmiller Jul 24, 2020
02eb5a2
Document the dangers of using verify=False
elithrar Aug 17, 2020
533c384
Make README markdown compatible
sethmlarson Aug 2, 2020
0830062
Remove images, analytics, 'keep up to date'
sethmlarson Aug 2, 2020
551a0bf
Recommend Pip, remove todo/philo docs, pare down support avenues
sethmlarson Aug 2, 2020
43ed689
Trim release section, add back Twitter support
sethmlarson Aug 2, 2020
0b01355
Pin more helpful links to sidebar
sethmlarson Aug 2, 2020
48237af
updating doc links and formatting
nateprewitt Aug 18, 2020
2a7832b
Update index.rst
girisagar46 Aug 26, 2020
22b5a39
Apply the Apache-2.0 license correctly
ajorg-aws Aug 27, 2020
1f7c888
Merge pull request #5570 from ajorg-aws/master
nateprewitt Aug 27, 2020
967a05b
Update renamed GitHub handle
Visgean Sep 11, 2020
c3280d7
Update advanced.rst
icfly2 Sep 23, 2020
333fa8d
Remove reading HISTORY.md in setup.py
Ae-Mc Sep 29, 2020
ae61445
Add official Python 3.8 support on Appveyor
abdullahselek Sep 30, 2020
799a97d
Merge pull request #5608 from abdullahselek/master
sigmavirus24 Sep 30, 2020
941ac53
Create codeql-analysis.yml
sigmavirus24 Oct 1, 2020
d09c0e0
Update codeql-analysis.yml
sigmavirus24 Oct 2, 2020
4f6c018
Merge pull request #5611 from psf/add-codescanning
sigmavirus24 Oct 2, 2020
4840d4a
small typo corrected.
smstong Oct 5, 2020
1431502
Merge pull request #5614 from smstong/master
sigmavirus24 Oct 5, 2020
ba54371
Respect the NETRC environment variable
mpichette-apple Oct 19, 2020
2f70990
Merge pull request #5643 from tarmath/netrc
nateprewitt Nov 1, 2020
9cd2d33
Move CI to Github Actions
nateprewitt Nov 10, 2020
320a10d
Remove Pipfile/Pipfile.lock
nateprewitt Nov 11, 2020
03957eb
v2.25.0
nateprewitt Nov 10, 2020
78fdf4d
Remove reference to development philosophy
nateprewitt Nov 16, 2020
28cc1d2
Merge pull request #5659 from nateprewitt/contrib_cleanup
sigmavirus24 Nov 16, 2020
962c898
Merge pull request #5594 from icfly2/patch-1
nateprewitt Nov 17, 2020
0514dea
Pin GHA to Ubuntu 18.04
hugovk Nov 18, 2020
9ce669e
Merge pull request #5663 from hugovk/patch-1
nateprewitt Nov 18, 2020
4b66260
New helper method `set_http_proxy` in `Session` to set proxies in a m…
Nov 27, 2020
2fddbe3
Updated proxies documentation
Nov 27, 2020
d1ca591
Revert "New helper method `set_http_proxy` in `Session` to set proxie…
Nov 27, 2020
f02a80c
Updated proxies documentation
Nov 27, 2020
d0359c9
Fix broken link
sivaraam Nov 28, 2020
5855dd7
updated `get_encoding_from_headers` to return utf-8 if the content ty…
jjmaldonis Nov 29, 2020
589c454
Merge pull request #5673 from jjmaldonis/master
sigmavirus24 Nov 29, 2020
5035827
Merge pull request #5670 from smarie/pr_proxy_conf_helper_and_doc
sigmavirus24 Dec 4, 2020
60ea7f0
#5677: Rebuild proxies on Session#send
mateusduboli Dec 8, 2020
d3e0f73
Update sponsorship link
ewdurbin Dec 9, 2020
516f84f
Upgrade to chardet 4.x
dan-blanchard Dec 11, 2020
b223291
Merge pull request #5688 from dan-blanchard/patch-1
nateprewitt Dec 14, 2020
6de4f10
Change docs title to requests.sessions
shouro Dec 14, 2020
c2b307d
v2.25.1
nateprewitt Dec 16, 2020
f6072f1
Format c_rehash
bbodenmiller Jan 20, 2021
083aa67
Merge pull request #5723 from bbodenmiller/patch-2
sigmavirus24 Jan 20, 2021
74b7280
Fix typo request -> requests
xiaojueguan Jan 22, 2021
8c211a9
Merge pull request #5681 from mateusduboli/5677
sigmavirus24 Jan 24, 2021
ef6ceff
Provide directions for cloning repository despite malformed commits
pdmccormick Feb 17, 2021
bdc00eb
Merge pull request #5755 from pdmccormick/master
sigmavirus24 Feb 17, 2021
913880c
Fix typo
andrewmwhite Feb 24, 2021
53d1df8
Updated comments
LUHUIBIN Mar 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = requests/packages/*
3 changes: 3 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Be cordial or be on your way.

https://www.kennethreitz.org/essays/be-cordial-or-be-on-your-way
54 changes: 54 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Contribution Guidelines

Before opening any issues or proposing any pull requests, please read
our [Contributor's Guide](https://requests.readthedocs.io/en/latest/dev/contributing/).

To get the greatest chance of helpful responses, please also observe the
following additional notes.

## Questions

The GitHub issue tracker is for *bug reports* and *feature requests*. Please do
not use it to ask questions about how to use Requests. These questions should
instead be directed to [Stack Overflow](https://stackoverflow.com/). Make sure
that your question is tagged with the `python-requests` tag when asking it on
Stack Overflow, to ensure that it is answered promptly and accurately.

## Good Bug Reports

Please be aware of the following things when filing bug reports:

1. Avoid raising duplicate issues. *Please* use the GitHub issue search feature
to check whether your bug report or feature request has been mentioned in
the past. Duplicate bug reports and feature requests are a huge maintenance
burden on the limited resources of the project. If it is clear from your
report that you would have struggled to find the original, that's ok, but
if searching for a selection of words in your issue title would have found
the duplicate then the issue will likely be closed extremely abruptly.
2. When filing bug reports about exceptions or tracebacks, please include the
*complete* traceback. Partial tracebacks, or just the exception text, are
not helpful. Issues that do not contain complete tracebacks may be closed
without warning.
3. Make sure you provide a suitable amount of information to work with. This
means you should provide:

- Guidance on **how to reproduce the issue**. Ideally, this should be a
*small* code sample that can be run immediately by the maintainers.
Failing that, let us know what you're doing, how often it happens, what
environment you're using, etc. Be thorough: it prevents us needing to ask
further questions.
- Tell us **what you expected to happen**. When we run your example code,
what are we expecting to happen? What does "success" look like for your
code?
- Tell us **what actually happens**. It's not helpful for you to say "it
doesn't work" or "it fails". Tell us *how* it fails: do you get an
exception? A hang? A non-200 status code? How was the actual result
different from your expected result?
- Tell us **what version of Requests you're using**, and
**how you installed it**. Different versions of Requests behave
differently and have different bugs, and some distributors of Requests
ship patches on top of the code we supply.

If you do not provide all of these things, it will take us much longer to
fix your problem. If we ask you to clarify these and you never respond, we
will close your issue without fixing it.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://www.python.org/psf/sponsorship/']
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Summary.

## Expected Result

What you expected.

## Actual Result

What happened instead.

## Reproduction Steps

```python
import requests

```

## System Information

$ python -m requests.help

```
<paste here>
```

This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve

---

Summary.

## Expected Result

What you expected.

## Actual Result

What happened instead.

## Reproduction Steps

```python
import requests

```

## System Information

$ python -m requests.help

```
<paste here>
```

This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/Custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Request for Help
about: Guidance on using Requests.

---

Please refer to our [Stack Overflow tag](https://stackoverflow.com/questions/tagged/python-requests) for guidance.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project

---

Requests is not accepting feature requests at this time.
93 changes: 93 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Vulnerability Disclosure

If you think you have found a potential security vulnerability in
requests, please email [Nate](mailto:nate.prewitt@gmail.com)
and [Seth](mailto:sethmichaellarson@gmail.com) directly.
**Do not file a public issue.**

Our PGP Key fingerprints are:

- 8722 7E29 AD9C FF5C FAC3 EA6A 44D3 FF97 B80D C864 ([@nateprewitt](https://keybase.io/nateprewitt))

- EDD5 6765 A9D8 4653 CBC8 A134 51B0 6736 1740 F5FC ([@sethmlarson](https://keybase.io/sethmlarson))

You can also contact us on [Keybase](https://keybase.io) with the
profiles above if desired.

If English is not your first language, please try to describe the
problem and its impact to the best of your ability. For greater detail,
please use your native language and we will try our best to translate it
using online services.

Please also include the code you used to find the problem and the
shortest amount of code necessary to reproduce it.

Please do not disclose this to anyone else. We will retrieve a CVE
identifier if necessary and give you full credit under whatever name or
alias you provide. We will only request an identifier when we have a fix
and can publish it in a release.

We will respect your privacy and will only publicize your involvement if
you grant us permission.

## Process

This following information discusses the process the requests project
follows in response to vulnerability disclosures. If you are disclosing
a vulnerability, this section of the documentation lets you know how we
will respond to your disclosure.

### Timeline

When you report an issue, one of the project members will respond to you
within two days *at the outside*. In most cases responses will be
faster, usually within 12 hours. This initial response will at the very
least confirm receipt of the report.

If we were able to rapidly reproduce the issue, the initial response
will also contain confirmation of the issue. If we are not, we will
often ask for more information about the reproduction scenario.

Our goal is to have a fix for any vulnerability released within two
weeks of the initial disclosure. This may potentially involve shipping
an interim release that simply disables function while a more mature fix
can be prepared, but will in the vast majority of cases mean shipping a
complete release as soon as possible.

Throughout the fix process we will keep you up to speed with how the fix
is progressing. Once the fix is prepared, we will notify you that we
believe we have a fix. Often we will ask you to confirm the fix resolves
the problem in your environment, especially if we are not confident of
our reproduction scenario.

At this point, we will prepare for the release. We will obtain a CVE
number if one is required, providing you with full credit for the
discovery. We will also decide on a planned release date, and let you
know when it is. This release date will *always* be on a weekday.

At this point we will reach out to our major downstream packagers to
notify them of an impending security-related patch so they can make
arrangements. In addition, these packagers will be provided with the
intended patch ahead of time, to ensure that they are able to promptly
release their downstream packages. Currently the list of people we
actively contact *ahead of a public release* is:

- Jeremy Cline, Red Hat (@jeremycline)
- Daniele Tricoli, Debian (@eriol)

We will notify these individuals at least a week ahead of our planned
release date to ensure that they have sufficient time to prepare. If you
believe you should be on this list, please let one of the maintainers
know at one of the email addresses at the top of this article.

On release day, we will push the patch to our public repository, along
with an updated changelog that describes the issue and credits you. We
will then issue a PyPI release containing the patch.

At this point, we will publicise the release. This will involve mails to
mailing lists, Tweets, and all other communication mechanisms available
to the core team.

We will also explicitly mention which commits contain the fix to make it
easier for other distributors and users to easily patch their own
versions of requests if upgrading is not an option.
66 changes: 66 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 23 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false


steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "python"
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
31 changes: 31 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
os: [ubuntu-18.04, macOS-latest, windows-latest]
include:
# pypy3 on Mac OS currently fails trying to compile
# brotlipy. Moving pypy3 to only test linux.
- python-version: pypy3
os: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make
- name: Run tests
run: |
make ci
30 changes: 26 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
.coverage
MANIFEST
coverage.xml
nosetests.xml
junit-report.xml
pylint.txt
*.pyc
docs/_build
toy.py
.gitignore
junit-report.xml
.cache/
cover/
build/
docs/_build
requests.egg-info/
*.pyc
*.swp
*.egg
env/
.venv/
.eggs/
.tox/
.pytest_cache/
.vscode/
.eggs/

.workon

t.py

t2.py
dist

/.mypy_cache/
Loading