Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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'}
>>>
```