Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivel/requisitor
Simple Python HTTP library utilizing only Python stdlib
https://github.com/sivel/requisitor
Last synced: 3 months ago
JSON representation
Simple Python HTTP library utilizing only Python stdlib
- Host: GitHub
- URL: https://github.com/sivel/requisitor
- Owner: sivel
- License: mit
- Created: 2020-04-16T16:43:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T18:53:16.000Z (over 2 years ago)
- Last Synced: 2024-10-04T12:00:33.228Z (3 months ago)
- Language: Python
- Size: 69.3 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# requisitor
![](https://github.com/sivel/requisitor/workflows/CI/badge.svg?branch=master)
Simple HTTP library utilizing only Python stdlib
## Examples
```pycon
>>> r = requisitor.get('http://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
>>> r.headers['content-type']
'application/json'
>>> r.text
'{\n "authenticated": true, \n "user": "user"\n}\n'
>>> r.json()
{'authenticated': True, 'user': 'user'}
>>>
```