A CSV Middleware for FastAPI
Project description
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for fast-csv-middleware-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c6333e4b5c8efff2bf7b4d2b19b76555ad20f38b90e1c6e9724895920e7a47b |
|
MD5 | 145ad342ef84293a49f783cfcf920d55 |
|
BLAKE2b-256 | 16d0f5de6d3af457fbe41335c18e13eacf5978e54529b135783cce227ae2f8d8 |