Skip to content

a-feld/pywreck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pywreck

ci coverage docs black

A small, not so great async Python HTTP client.

API documentation is available here!

This HTTP client does not implement any error / exception handling. If the server the client is talking to deviates from the HTTP spec, this code will behave in unexpected ways. Network errors? Those are unhandled too!

Install

pip install pywreck

Usage

response = await pywreck.get("www.example.com", "/")
print(response.status, response.headers, response.data)

Why?

Eh, why not? Sometimes you just need a small async HTTP client with no dependencies -- no batteries included.