Skip to main content

Simple async HTTP/1.1 client

Project description

A small, not so great async Python HTTP client.

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!

Usage

import asyncio
import pywreck

async def main():
    response = await pywreck.get("www.example.com", "/")
    print(response)

asyncio.run(main())

Why?

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywreck-0.1.0.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

pywreck-0.1.0-py2.py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page