Python HTTP Client for All.
Project description
HttpMax
HttpMax is a simple, asynchronous, fast and beautiful HTTP library.
import HttpMax
import asyncio
async def main():
r = await HttpMax.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
r.status_code
>>>200
r.headers['content-type']
>>>'application/json; charset=utf8'
r.encoding
>>>'utf-8'
r.text
>>>'{"authenticated": true, ...'
r.json()
>>> {'authenticated': True, ...}
asyncio.run(main())
HttpMax allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your PUT
& POST
data — but nowadays, just use the json
method!
Project details
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 Distribution
HttpMax-1.1.tar.gz
(55.9 kB
view details)
File details
Details for the file HttpMax-1.1.tar.gz
.
File metadata
- Download URL: HttpMax-1.1.tar.gz
- Upload date:
- Size: 55.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d55f0e8d3b089e39ac3c3adb8469e8925611009b1158a6256c9ef3088e812ce |
|
MD5 | 0d5fcacf236c52b07e4e054e336db716 |
|
BLAKE2b-256 | 07677638c65c65d1573cd8fe4fc394414ee08e1b230c80e31be74a7ba448717d |