{"library":"h11","type":"library","category":null,"description":"h11 is a pure-Python, bring-your-own-I/O implementation of HTTP/1.1, heavily inspired by hyper-h2. It contains no networking code whatsoever — you supply the bytes in and out — making it usable with any I/O model: synchronous, threaded, asyncio, trio, or custom. It models the HTTP exchange as a strict state machine emitting typed event objects (Request, Response, Data, EndOfMessage, etc.) and enforces spec conformance on both incoming and outgoing messages. Current version is 0.16.0, released in 2025 as a security fix; releases are infrequent and focused on correctness. It has no dependencies outside the Python standard library.","language":"python","status":"active","version":"0.16.0","tags":["http","http1.1","networking","protocol","sans-io","asyncio","trio","parser"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install h11","imports":["import h11; conn = h11.Connection(our_role=h11.CLIENT)","import h11  # then use h11.Request, h11.Response, etc.","import h11  # catch h11.LocalProtocolError, h11.RemoteProtocolError","import h11  # use h11.NEED_DATA, h11.PAUSED, h11.CLIENT, h11.SERVER"]}],"homepage":null,"github":"https://github.com/python-hyper/h11","docs":null,"changelog":null,"pypi":"https://pypi.org/project/h11/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":0.06,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/h11/compatibility"}}