# µHTTP - Stupid web development
µHTTP emerged from the need of a simple web framework. It's great for micro-services, small applications, AND monolithic monsters.
### Why
- Stupid simple, seriously, there are maybe 15 lines of "real" code in it. _No external dependencies._
- Extremely modular, entire extensions can just follow the simple App pattern.
- Very flexible, you can even raise responses.
- Quite fast, because size matters.
- Great learning device.
[The rant.](https://lobste.rs/s/ukh5id/uhttp_pythonic_web_development#c_9jln1d)
### Installation
µHTTP is on [PyPI](https://pypi.org/project/uhttp/).
```bash
pip install uhttp
```
You might also need an [ASGI](https://asgi.readthedocs.io/en/latest/) server. I recommend [Uvicorn](https://www.uvicorn.org/).
```bash
pip install uvicorn
```
### Hello, world!
```python
from uhttp import App
app = App()
@app.get('/')
def hello(request):
return f'Hello, {request.ip}!'
if __name__ == '__main__':
import uvicorn
uvicorn.run('__main__:app')
```
### Extensions
_µHTTP doesn't come with bells and whistles._
If you want more, search for [µHTTP extensions](https://github.com/topics/uhttp).
### Contributing
Feel free to contribute in any way you'd like. :D
### License
Released under the MIT license.
Raw data
{
"_id": null,
"home_page": "https://github.com/0x67757300/uHTTP",
"name": "uHTTP",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "asgi,web,http",
"author": "gus",
"author_email": "0x67757300@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/90/ec/c1cbc973e4683c37decf547591773c30558529d1d34ae50cde130f847888/uhttp-1.3.4.tar.gz",
"platform": null,
"description": "# \u00b5HTTP - Stupid web development\n\n\u00b5HTTP emerged from the need of a simple web framework. It's great for micro-services, small applications, AND monolithic monsters.\n\n### Why\n\n- Stupid simple, seriously, there are maybe 15 lines of \"real\" code in it. _No external dependencies._\n- Extremely modular, entire extensions can just follow the simple App pattern.\n- Very flexible, you can even raise responses.\n- Quite fast, because size matters.\n- Great learning device.\n\n[The rant.](https://lobste.rs/s/ukh5id/uhttp_pythonic_web_development#c_9jln1d)\n\n### Installation\n\n\u00b5HTTP is on [PyPI](https://pypi.org/project/uhttp/).\n\n```bash\npip install uhttp\n```\n\nYou might also need an [ASGI](https://asgi.readthedocs.io/en/latest/) server. I recommend [Uvicorn](https://www.uvicorn.org/).\n\n```bash\npip install uvicorn\n```\n\n### Hello, world!\n\n```python\nfrom uhttp import App\n\napp = App()\n\n@app.get('/')\ndef hello(request):\n return f'Hello, {request.ip}!'\n\n\nif __name__ == '__main__':\n import uvicorn\n uvicorn.run('__main__:app')\n```\n\n### Extensions\n\n_\u00b5HTTP doesn't come with bells and whistles._\n\nIf you want more, search for [\u00b5HTTP extensions](https://github.com/topics/uhttp).\n\n### Contributing\n\nFeel free to contribute in any way you'd like. :D\n\n### License\n\nReleased under the MIT license.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Stupid web development",
"version": "1.3.4",
"project_urls": {
"Documentation": "https://0x67757300.github.io/uHTTP",
"Homepage": "https://github.com/0x67757300/uHTTP",
"Repository": "https://github.com/0x67757300/uHTTP"
},
"split_keywords": [
"asgi",
"web",
"http"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f83b327ec775329cbbbd46e2ab049ecf57fb25dfe7d40e5f75f8e19acda59d91",
"md5": "00e6aebb381ecdd1b009f1192ed53080",
"sha256": "79aecccbec0d3c72042f62da513f71304544a2d52e5cb30c9adc0c45b81a8566"
},
"downloads": -1,
"filename": "uhttp-1.3.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00e6aebb381ecdd1b009f1192ed53080",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 7465,
"upload_time": "2023-12-16T18:12:42",
"upload_time_iso_8601": "2023-12-16T18:12:42.375306Z",
"url": "https://files.pythonhosted.org/packages/f8/3b/327ec775329cbbbd46e2ab049ecf57fb25dfe7d40e5f75f8e19acda59d91/uhttp-1.3.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "90ecc1cbc973e4683c37decf547591773c30558529d1d34ae50cde130f847888",
"md5": "e323881f71136a2ca8790c9fe79884d8",
"sha256": "1d93063384a4c03f255bc7669dcc2976ce266e657041f0922f2a223eea793c62"
},
"downloads": -1,
"filename": "uhttp-1.3.4.tar.gz",
"has_sig": false,
"md5_digest": "e323881f71136a2ca8790c9fe79884d8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 7024,
"upload_time": "2023-12-16T18:12:43",
"upload_time_iso_8601": "2023-12-16T18:12:43.921176Z",
"url": "https://files.pythonhosted.org/packages/90/ec/c1cbc973e4683c37decf547591773c30558529d1d34ae50cde130f847888/uhttp-1.3.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-16 18:12:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "0x67757300",
"github_project": "uHTTP",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "uhttp"
}