Name | uHTTP-Multipart JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | Multipart support for µHTTP |
upload_time | 2023-12-14 22:14:04 |
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 Multipart
Multipart support for µHTTP.
### Usage
Only parse when required:
```python
from uhttp import App
from uhttp_multipart import parse_form
app = App()
@app.post('/')
def submit(request):
form = parse_form(request.form)
```
Always parse `multipart/form-data` requests (middleware):
```python
from uhttp import App
from uhttp_multipart import app as mutipart_app
app = App()
app.mount(mutipart_app)
```
The function `parse_form` (which is also used in the middleware) returns a `MultiDict`. Form fields are `str`, file fields are `BytesIO`.
### License
Released under the MIT license.
Raw data
{
"_id": null,
"home_page": "",
"name": "uHTTP-Multipart",
"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/b8/ac/6c662314803b6707bd79400d8dabe0ae44240e2258ef6d301a3a85047de8/uhttp_multipart-0.1.0.tar.gz",
"platform": null,
"description": "# \u00b5HTTP Multipart\n\nMultipart support for \u00b5HTTP.\n\n### Usage\n\nOnly parse when required:\n\n```python\nfrom uhttp import App\nfrom uhttp_multipart import parse_form\n\napp = App()\n\n@app.post('/')\ndef submit(request):\n form = parse_form(request.form)\n```\n\nAlways parse `multipart/form-data` requests (middleware):\n\n```python\nfrom uhttp import App\nfrom uhttp_multipart import app as mutipart_app\n\napp = App()\napp.mount(mutipart_app)\n```\n\nThe function `parse_form` (which is also used in the middleware) returns a `MultiDict`. Form fields are `str`, file fields are `BytesIO`.\n\n### License\n\nReleased under the MIT license.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Multipart support for \u00b5HTTP",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "417c9fc9022427fc5fa46ad763f8f75da646ac896cf08bbbcddbf944c717a7b3",
"md5": "00f575883f5cb62f83d0763084489eb2",
"sha256": "de86a7a074812ba0b271dd5e6fdbc36da217a6c82545846b27268d16b4b59d95"
},
"downloads": -1,
"filename": "uhttp_multipart-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00f575883f5cb62f83d0763084489eb2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 2744,
"upload_time": "2023-12-14T22:14:02",
"upload_time_iso_8601": "2023-12-14T22:14:02.868644Z",
"url": "https://files.pythonhosted.org/packages/41/7c/9fc9022427fc5fa46ad763f8f75da646ac896cf08bbbcddbf944c717a7b3/uhttp_multipart-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b8ac6c662314803b6707bd79400d8dabe0ae44240e2258ef6d301a3a85047de8",
"md5": "3ade3bed4e04fc844935fcd22a5b02b7",
"sha256": "3fb5686e1c90ea1525a1aa759eaa122cb10a8631f813dff691b6542f2a9a8eae"
},
"downloads": -1,
"filename": "uhttp_multipart-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "3ade3bed4e04fc844935fcd22a5b02b7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 2171,
"upload_time": "2023-12-14T22:14:04",
"upload_time_iso_8601": "2023-12-14T22:14:04.792186Z",
"url": "https://files.pythonhosted.org/packages/b8/ac/6c662314803b6707bd79400d8dabe0ae44240e2258ef6d301a3a85047de8/uhttp_multipart-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-14 22:14:04",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "uhttp-multipart"
}