python-multipart
A streaming multipart parser for Python
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, carries no security vulnerabilities, has zero runtime dependencies, and is widely used in the top 1000 on PyPI. Its permissive Apache-2.0 license and 100% test coverage make it a reliable choice for multipart parsing. Install if your application needs to handle multipart form data or file uploads efficiently.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 wheel with no runtime dependencies.
- Actively maintained with recent commits (last 2026-08-09) and 100% test coverage reported.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-06-04 (71 days) · last repo commit 2026-08-09 · 526 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 412,398,676 downloads/mo, #104 on PyPI
Alternatives
Verify before relying
pip install python-multipart
from python_multipart.multipart import parse_options_header
# Parse a multipart header to extract content disposition and boundary
header_value = 'form-data; name="field"; filename="file.txt"'
value, options = parse_options_header(header_value)- Whether the package exposes a high-level streaming parser API or primarily lower-level parsing utilities.
- Performance characteristics and memory overhead compared to alternative multipart parsers.
- Integration patterns with common web frameworks (FastAPI, Django, etc.).
What it is and what it does
python-multipart is a streaming multipart parser designed to handle HTTP multipart form data efficiently. Rather than buffering entire request bodies in memory, it processes incoming data in chunks, making it well-suited for applications that accept large file uploads. The package is production-stable, carries Apache-2.0 licensing, and maintains 100% test coverage.
It operates as a low-level parsing library with no external runtime dependencies, making it lightweight and straightforward to integrate into web servers, frameworks, or custom request handlers. The codebase is actively maintained, supports modern Python versions (3.10 through 3.14), and has been in development since 2013, giving it a long track record of stability.
Use it for
- Handle large file uploads in web applications without buffering entire requests into memory.
- Parse multipart form submissions in custom HTTP request handlers or middleware.
- Build streaming upload endpoints in frameworks that need fine-grained control over multipart parsing.
- Process chunked multipart data in real-time without materializing intermediate buffers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, carries no security vulnerabilities, has zero runtime dependencies, and is widely used in the top 1000 on PyPI. Its permissive Apache-2.0 license and 100% test coverage make it a reliable choice for multipart parsing. Install if your application needs to handle multipart form data or file uploads efficiently.
Install
python-multipart on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained with recent commits (last 2026-08-09) and 100% test coverage reported. Supports current Python versions (3.10–3.14).
Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install python-multipart
from python_multipart.multipart import parse_options_header
# Parse a multipart header to extract content disposition and boundary
header_value = 'form-data; name="field"; filename="file.txt"'
value, options = parse_options_header(header_value)
Verify before relying
- Whether the package exposes a high-level streaming parser API or primarily lower-level parsing utilities.
- Performance characteristics and memory overhead compared to alternative multipart parsers.
- Integration patterns with common web frameworks (FastAPI, Django, etc.).
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 71 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 412,398,676 / month, #104 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules |
Evidence: python_multipart-0.0.32-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 › “streaming file upload”
- python-multipartParses multipart form data from HTTP requests using a streaming…
- streaming-form-dataParses multipart/form-data streams chunk-by-chunk without buffering…
- llama-api-clientProvides a typed Python client for the Llama API with support for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also streaming-form-data · gzip-stream · tuspyserver · vercel_blob · multipart · microsoft-kiota-serialization-multipart · stream-unzip · filestack-python · tuspy · google-resumable-media