streaming-form-data
Streaming parser for multipart/form-data
Decision gist · record as of 2026-08-14
Yes, if you need to handle large file uploads or memory-constrained streaming scenarios. The active maintenance, permissive license, and availability of pre-built wheels make it low-risk. The C extension requirement adds modest friction on non-standard platforms, but wheels cover common environments. No known vulnerabilities. Suitable for production use in web applications.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a working C compiler to build the C extension during installation (on Debian-based systems, typically the build-essentials package).
- Medium install friction due to C extension compilation requirement.
- The package is actively maintained with a recent release (65 days ago) and supports current Python versions (3.10–3.14).
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
last release 2026-06-10 (65 days) · last repo commit 2026-08-10 · 185 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 528,676 downloads/mo, #6,163 on PyPI
Alternatives
Verify before relying
from streaming_form_data import StreamingFormDataParser
from streaming_form_data.targets import FileTarget, ValueTarget
headers = {"Content-Type": "multipart/form-data; boundary=boundary"}
parser = StreamingFormDataParser(headers=headers)
parser.register("file", FileTarget("/path/to/file.txt"))
parser.register("name", ValueTarget())
for chunk in request.body:
parser.data_received(chunk)- Whether the package works with async frameworks like FastAPI out of the box or requires additional integration.
- Performance characteristics and memory overhead compared to standard form parsing in specific web frameworks.
- Whether S3Target and GCSTarget require additional credentials or configuration beyond what the fact sheet shows.
What it is and what it does
streaming_form_data is a Python parser for multipart/form-data streams, the encoding used when HTML forms submit data over HTTP. Instead of buffering the entire request body in memory, it processes incoming chunks as they arrive, making it suitable for handling large file uploads without memory exhaustion.
The parser works by registering target handlers for named form fields—you can write to local files, cloud storage (S3, GCS), discard data, or capture values. It depends on smart-open for cloud storage abstraction and aiofiles for async file operations. The package includes a C extension for performance and is actively maintained with wheels for Python 3.10–3.14 on major platforms.
Use it for
- Upload gigabyte-sized files through a web form without consuming proportional memory.
- Stream form submissions directly to S3 or Google Cloud Storage without intermediate local buffering.
- Parse multipart requests in FastAPI or Flask applications where standard form handling is too slow.
- Process form data in resource-constrained environments (embedded systems, serverless functions) where memory is limited.
- Handle concurrent file uploads by processing each stream independently without blocking.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to handle large file uploads or memory-constrained streaming scenarios.
The active maintenance, permissive license, and availability of pre-built wheels make it low-risk. The C extension requirement adds modest friction on non-standard platforms, but wheels cover common environments. No known vulnerabilities. Suitable for production use in web applications.
Install
streaming-form-data on PyPI
Before you install
Medium install friction due to C extension compilation requirement. The package is actively maintained with a recent release (65 days ago) and supports current Python versions (3.10–3.14). Pre-built wheels are available for common platforms (macOS ARM64, Linux x86_64, Windows), reducing friction on standard environments.
Requires a working C compiler to build the C extension during installation (on Debian-based systems, typically the build-essentials package).
License in practice
Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
Quickstart
from streaming_form_data import StreamingFormDataParser
from streaming_form_data.targets import FileTarget, ValueTarget
headers = {"Content-Type": "multipart/form-data; boundary=boundary"}
parser = StreamingFormDataParser(headers=headers)
parser.register("file", FileTarget("/path/to/file.txt"))
parser.register("name", ValueTarget())
for chunk in request.body:
parser.data_received(chunk)
Verify before relying
- Whether the package works with async frameworks like FastAPI out of the box or requires additional integration.
- Performance characteristics and memory overhead compared to standard form parsing in specific web frameworks.
- Whether S3Target and GCSTarget require additional credentials or configuration beyond what the fact sheet shows.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 2 packagessmart-openaiofiles |
| Maintenance | Actively maintained 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 528,676 / month, #6,163 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: CythonProgramming 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 :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: BrowsersTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Internet :: WWW/HTTP :: HTTP Servers |
Evidence: streaming_form_data-2.1.0-cp310-cp310-macosx_11_0_arm64.whl; streaming_form_data-2.1.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; streaming_form_data-2.1.0-cp310-cp310-musllinux_1_2_x86_64.whl; streaming_form_data-2.1.0-cp310-cp310-win32.whl; streaming_form_data-2.1.0-cp310-cp310-win_amd64.whl; streaming_form_data-2.1.0-cp311-cp311-macosx_11_0_arm64.whl; streaming_form_data-2.1.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; streaming_form_data-2.1.0-cp311-cp311-musllinux_1_2_x86_64.whl; streaming_form_data-2.1.0-cp311-cp311-win32.whl; streaming_form_data-2.1.0-cp311-cp311-win_amd64.whl; streaming_form_data-2.1.0-cp312-cp312-macosx_11_0_arm64.whl; streaming_form_data-2.1.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; streaming_form_data-2.1.0-cp312-cp312-musllinux_1_2_x86_64.whl; streaming_form_data-2.1.0-cp312-cp312-win32.whl; streaming_form_data-2.1.0-cp312-cp312-win_amd64.whl; streaming_form_data-2.1.0-cp313-cp313-macosx_11_0_arm64.whl; streaming_form_data-2.1.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; streaming_form_data-2.1.0-cp313-cp313-musllinux_1_2_x86_64.whl; streaming_form_data-2.1.0-cp313-cp313-win32.whl; streaming_form_data-2.1.0-cp313-cp313-win_amd64.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 › “memory-efficient form parsing”
- streaming-form-dataParses multipart/form-data streams chunk-by-chunk without buffering…
- ijsonijson is an iterative JSON parser that reads JSON from file-like…
- json-streamStreams JSON data from files, URLs, or iterators without loading the…
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 multipart · python-multipart · iterable-io · requests-toolbelt · microsoft-kiota-serialization-multipart · Flask-WTF · stream-zip · sentence-stream · tuspyserver · s3transfer