{"id":20130307,"url":"https://github.com/pavelrevak/uhttp","last_synced_at":"2026-05-06T09:38:51.507Z","repository":{"id":214341268,"uuid":"736285215","full_name":"pavelrevak/uhttp","owner":"pavelrevak","description":"uHTTP simple HTTP server for micropython","archived":false,"fork":false,"pushed_at":"2024-01-27T11:33:02.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T08:46:08.010Z","etag":null,"topics":["http","http-server","micropython","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pavelrevak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-27T13:40:55.000Z","updated_at":"2023-12-28T16:28:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"499360c7-f0c0-4ddd-be5b-1e78b3dad374","html_url":"https://github.com/pavelrevak/uhttp","commit_stats":null,"previous_names":["pavelrevak/uhttp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelrevak%2Fuhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelrevak%2Fuhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelrevak%2Fuhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavelrevak%2Fuhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pavelrevak","download_url":"https://codeload.github.com/pavelrevak/uhttp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241577070,"owners_count":19984940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","http-server","micropython","python"],"created_at":"2024-11-13T20:38:07.702Z","updated_at":"2026-05-06T09:38:51.502Z","avatar_url":"https://github.com/pavelrevak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uHTTP: micro HTTP server and client\n\nMinimalist HTTP libraries for MicroPython and CPython.\n\n## Features\n\n- MicroPython and CPython compatible\n- Low-level POSIX socket implementation\n- Fully synchronous (no async/await, no threading) but handles multiple simultaneous connections\n- Memory-efficient: works with low memory on MCUs\n- SSL/TLS support for HTTPS\n- IPv6 and dual-stack support\n\n## Packages\n\nThe library is split into two independent packages:\n\n### [uhttp-server](https://github.com/cortexm/uhttp-server)\n\n- HTTP server with keep-alive, streaming, event mode\n\n### [uhttp-client](https://github.com/cortexm/uhttp-client)\n\n- HTTP client with keep-alive, auth, cookies\n\n## Installation\n\n```bash\n# Install only what you need\npip install uhttp-server\npip install uhttp-client\n```\n\nFor MicroPython, copy `uhttp/server.py` and/or `uhttp/client.py` from the respective repository to your device.\n\n## Quick Start\n\n### Server\n\n```python\nfrom uhttp.server import HttpServer\n\nserver = HttpServer(port=8080)\n\nwhile True:\n    client = server.wait()\n    if client:\n        client.respond({'message': 'Hello from uHTTP!'})\n```\n\n### Client\n\n```python\nfrom uhttp.client import HttpClient\n\nwith HttpClient('https://httpbin.org') as client:\n    response = client.get('/get').wait()\n    print(response.json())\n```\n\n## Documentation\n\n- [Server documentation](https://github.com/cortexm/uhttp-server#readme)\n- [Client documentation](https://github.com/cortexm/uhttp-client#readme)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavelrevak%2Fuhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpavelrevak%2Fuhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavelrevak%2Fuhttp/lists"}