Skip to main content

CSV download utility for FastAPI

Project description

fastapi_csv_download

A simple FastAPI utility to generate downloadable CSV responses.

Installation

pip install fastapi-csv-downloader

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_csv_downloader-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_csv_downloader-0.1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_csv_downloader-0.1.1.tar.gz.

File metadata

  • Download URL: fastapi_csv_downloader-0.1.1.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

Hashes for fastapi_csv_downloader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eabecb26d4e8f1054e3522d0ea3554a837d2527e6a1b69dba5c48e4b784e023e
MD5 9eecde53a73323e27dc7e77671189a90
BLAKE2b-256 4517d7214a4ef416c850ec42f48cbab90aed11905bc88fcfb479882adfad3db8

See more details on using hashes here.

File details

Details for the file fastapi_csv_downloader-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_csv_downloader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09b431c309c2a75aa87b9c89ab432c8a93390c03d2865ad013fd3b917e0149ad
MD5 e3bc147cf196393f5f306a22dba958e9
BLAKE2b-256 605432b6c02cb2181bad84ccdc876cdce2d0e22315b865facb2b4888d0669162

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page