multipart
Parser for multipart/form-data
Decision gist · record as of 2026-08-14
Yes. This is a mature, actively maintained parser with no dependencies, permissive licensing, and a focused scope on web form handling. It offers both blocking and non-blocking interfaces, making it suitable for WSGI, ASGI, and asyncio applications. No known vulnerabilities and low install friction make it a straightforward choice for any Python project handling multipart form data.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python, no runtime dependencies, distributed as a single wheel.
- Actively maintained with a release 27 days ago and ongoing repository activity.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2026-07-18 (27 days) · last repo commit 2026-07-18 · 157 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,595,035 downloads/mo, #2,066 on PyPI
Alternatives
Verify before relying
pip install multipart
from multipart import MultipartParser
parser = MultipartParser(data_stream, content_type_header)
for part in parser:
print(part.name, part.value)- Whether the package's performance characteristics (throughput, latency, memory consumption) meet your specific application's requirements.
- Whether strict mode's behavior on malformed input aligns with your error-handling strategy.
What it is and what it does
Multipart is a pure-Python parser for multipart/form-data submissions as defined by HTML5 and RFC7578. It provides three interfaces: PushMultipartParser for non-blocking, incremental parsing in ASGI and asyncio environments; MultipartParser for streaming from a byte source; and WSGI helpers for traditional blocking applications. The parser handles both multipart and urlencoded form submissions and implements fine-grained resource limits to control memory and disk consumption.
The package is designed for high throughput and low latency with no external dependencies. It includes a strict mode for rejecting malformed inputs and supports all modern browsers and HTTP clients. The parser does not handle email multipart formats, base64/quoted-printable encoding, or legacy broken clients—its scope is narrowly focused on web form submissions.
Use it for
- Parse file uploads in ASGI web frameworks like Starlette or FastAPI with non-blocking, incremental parsing.
- Handle form submissions in traditional WSGI applications (Django, Flask) with the blocking MultipartParser or WSGI helpers.
- Implement resource-constrained form parsing in memory- or disk-limited environments using configurable limits.
- Validate and reject malformed form submissions early using strict mode without full parsing overhead.
- Stream large file uploads directly to disk or object storage while maintaining predictable memory usage.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a mature, actively maintained parser with no dependencies, permissive licensing, and a focused scope on web form handling. It offers both blocking and non-blocking interfaces, making it suitable for WSGI, ASGI, and asyncio applications. No known vulnerabilities and low install friction make it a straightforward choice for any Python project handling multipart form data.
Install
multipart on PyPI
Before you install
Low friction: pure Python, no runtime dependencies, distributed as a single wheel. Actively maintained with a release 27 days ago and ongoing repository activity.
Requires Python 3.10 or later.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install multipart
from multipart import MultipartParser
parser = MultipartParser(data_stream, content_type_header)
for part in parser:
print(part.name, part.value)
Verify before relying
- Whether the package's performance characteristics (throughput, latency, memory consumption) meet your specific application's requirements.
- Whether strict mode's behavior on malformed input aligns with your error-handling strategy.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 27 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,595,035 / month, #2,066 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/LibrariesTopic :: Internet :: WWW/HTTP :: WSGI |
Evidence: multipart-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multipart form data parser”
- multipartParses multipart/form-data submissions with both incremental…
- python-multipartParses multipart form data from HTTP requests using a streaming…
- streaming-form-dataParses multipart/form-data streams chunk-by-chunk without buffering…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also streaming-form-data · requests-toolbelt · python-multipart · asgiref · a2wsgi · sanic · asgi-csrf · async-asgi-testclient · uvicorn · microsoft-kiota-serialization-multipart