CSV download utility for FastAPI
Project description
fastapi_csv_download
A simple FastAPI utility to generate downloadable CSV responses.
Installation
pip install fastapi-csv-download
Usage
from fastapi import FastAPI
from fastapi_csv_downloader import generate_csv_response
app = FastAPI()
@app.get("/download")
async def download_csv():
data = [{"id": 1, "name": "Laptop", "price": 1000}]
return generate_csv_response(data, filename="products.csv")
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_csv_download-0.1.0.tar.gz.
File metadata
- Download URL: fastapi_csv_download-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6d93b2e0e0aa9d5abee19dcb0cbcd3db94ff2bfb6a3923868e48b5c0eeff241
|
|
| MD5 |
2e73d4be79783ed0abe069d425664aa0
|
|
| BLAKE2b-256 |
e06b62a059c0084d584f61d5e7a0998676523a0f8006ca15a27a4b7706d7afe9
|
File details
Details for the file fastapi_csv_download-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fastapi_csv_download-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d95614860ab9e32c336158f9e1cb0337b98b7154aff2ea89601b56ba0bfcac2
|
|
| MD5 |
a6abace56783696974c2a0c00b4b56b1
|
|
| BLAKE2b-256 |
ad3bf82b1e5a6ef1c80aab0764f7ca27ccdf8c3039d295802a12cf06bfa460a2
|