BSD Ports

www/py-h11 0.16.0 OpenBSD

pure-Python, bring-your-own-I/O implementation of HTTP/1.1

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
www, lang/python

Description

This is a little HTTP/1.1 library written from scratch in Python, heavily inspired by hyper-h2.

It's a "bring-your-own-I/O" library; h11 contains no IO code whatsoever. This means you can hook h11 up to your favorite network API, and that could be anything you want: synchronous, threaded, asynchronous, or your own implementation of RFC 6214 - h11 won't judge you.

This also means that h11 is not immediately useful out of the box: it's a toolkit for building programs that speak HTTP, not something that could directly replace requests or twisted.web or whatever. But h11 makes it much easier to implement something like requests or twisted.web.

In the other systems

SystemPortVersion
OpenBSDwww/py-h110.16.0
NetBSDwww/py-h110.16.0

Install

Binary package:

pkg_add py3-h11

From the ports tree:

cd /usr/ports/www/py-h11 && make install

Dependencies

Build dependencies 5
Run dependencies 1