Production-ready Flask API for converting CSV files to JSON via REST API.
Includes rate-limiting, Docker, clean modular structure — всё для продакшена и продажи.
- Upload any CSV and get instant JSON via API
- Works with large and multilingual CSV
- Rate limiting (anti-abuse, 5 uploads per minute)
- Docker-ready, clean project structure
- Simple API, easy integration (Postman, curl, любой front-end)
- Logging for audits and debugging
Request (form-data):
- `file` (type: File) — upload your CSV
Response: ```json { "file_id": "uuid-here" } ```
Returns parsed CSV as JSON.
Response: ```json [ { "name": "Ali", "email": "ali@example.com" }, { "name": "Ivan", "email": "ivan@example.com" } ] ```
- `/convert/`: 5 uploads per minute per IP
- `/convert/result/<file_id>`: 10 reads per minute per IP
```bash docker build -t csv-to-json-api . docker run -d -p 5000:5000 csv-to-json-api ```
```bash pip install -r requirements.txt python app.py ```
- `postman_upload_csv.png` — Uploading CSV via Postman
- `postman_get_json_result.png` — Getting JSON result via file_id
- `flask_server_log_success.png` — Server log: conversion and result
- `flask_server_startup.png` — Flask API server startup
💡 See real examples on Gumroad or in this README.
You can get a ZIP version with all files, setup instructions, `.env.example`, and more:
Need this in another stack (Node.js, Go, etc)?
Contact: talabov.ali72@gmail.com
Telegram: @talabovali
Note: Pricing may vary depending on complexity and target stack.
Ready for production and monetization. 100% tested.