Skip to main content

FastAPI CSV Middleware

This is a simple middleware for FastAPI that allows you to upload CSV files and parse them into a list of dictionaries.

I've explained a bit more in this blog post here.

Installation

pip install fast-csv-middleware

Usage

from fastapi import FastAPI
from fastapicsv import CSVMiddleware

app = FastAPI()

app.add_middleware(CSVMiddleware)

Testing

Request Body

Use Content-Type=text/csv in request headers when sending csv text in request body.

Response Body

Use Accept=text/csv in request headers to receive csv text in response body.

Metadata

Release files for fast-csv-middleware 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-csv-middleware 0.1.3
File Size Uploaded Provenance Actions
fast-csv-middleware-0.1.3.tar.gz 2.0 MB Without provenance Details for fast-csv-middleware-0.1.3.tar.gz

Release files / fast-csv-middleware-0.1.3.tar.gz

Download URL fast-csv-middleware-0.1.3.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
4486456a34a5bc9cc9679d88c290bee0f3ca36cff5986534beb1c302408a9c32
BLAKE2b-256 checksum
How to use checksums
006e611c09a3ed831915b16a9572350a68c49a156216afd577ba181ebf1810c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Security for fast-csv-middleware 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page