Name | uHTTP-Static JSON |
Version |
0.1.2
JSON |
| download |
home_page | |
Summary | Static files support for µHTTP |
upload_time | 2023-12-21 07:47:29 |
maintainer | |
docs_url | None |
author | gus |
requires_python | >=3.9,<4.0 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# µHTTP Static
Static files support for µHTTP
In production, use [Unit](https://unit.nginx.org/) instead.
### Installation
µHTTP Static is on [PyPI](https://pypi.org/project/uhttp-static/).
```bash
pip install uhttp-static
```
### Usage
```python
from uhttp import App
from uhttp_static import send_file, static
app = App()
app.mount(static('assets', '/assets'))
@app.get('/')
def hello(request):
return send_file('hello.html')
```
### License
Released under the MIT license.
Raw data
{
"_id": null,
"home_page": "",
"name": "uHTTP-Static",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "gus",
"author_email": "0x67757300@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4e/93/27884c4556400dd395a8f667797eca9e7a5f466d2bdf72609371781cd747/uhttp_static-0.1.2.tar.gz",
"platform": null,
"description": "# \u00b5HTTP Static\n\nStatic files support for \u00b5HTTP\n\nIn production, use [Unit](https://unit.nginx.org/) instead.\n\n### Installation\n\n\u00b5HTTP Static is on [PyPI](https://pypi.org/project/uhttp-static/).\n\n```bash\npip install uhttp-static\n```\n\n### Usage\n\n```python\nfrom uhttp import App\nfrom uhttp_static import send_file, static\n\n\napp = App()\napp.mount(static('assets', '/assets'))\n\n\n@app.get('/')\ndef hello(request):\n return send_file('hello.html')\n```\n\n### License\n\nReleased under the MIT license.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Static files support for \u00b5HTTP",
"version": "0.1.2",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c11cca64fc5fd2e6fdf7ae2b119c6b16048ceee535c1b35332bb8039da9a1ecf",
"md5": "ed7f860b76db67ae8e3d613555ede1dd",
"sha256": "45f986c4166bfca2770a8cf5e6c12b359ed5256095f60cdc2ecf0c746f2a6cfc"
},
"downloads": -1,
"filename": "uhttp_static-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ed7f860b76db67ae8e3d613555ede1dd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 2667,
"upload_time": "2023-12-21T07:47:28",
"upload_time_iso_8601": "2023-12-21T07:47:28.054704Z",
"url": "https://files.pythonhosted.org/packages/c1/1c/ca64fc5fd2e6fdf7ae2b119c6b16048ceee535c1b35332bb8039da9a1ecf/uhttp_static-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4e9327884c4556400dd395a8f667797eca9e7a5f466d2bdf72609371781cd747",
"md5": "565f53ae063dca5865fd77b81fdb0161",
"sha256": "06d8959bf94637205fd86bc8e0222901f0542b94fd3b6b695ea884976b6925f8"
},
"downloads": -1,
"filename": "uhttp_static-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "565f53ae063dca5865fd77b81fdb0161",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 2130,
"upload_time": "2023-12-21T07:47:29",
"upload_time_iso_8601": "2023-12-21T07:47:29.827617Z",
"url": "https://files.pythonhosted.org/packages/4e/93/27884c4556400dd395a8f667797eca9e7a5f466d2bdf72609371781cd747/uhttp_static-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-21 07:47:29",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "uhttp-static"
}