How kirill77karp/fileconv works
FileConv is a file-conversion API: users authenticate, submit a file and target format, and receive a task they can track and later download or delete. The API stores uploads and task records, then dispatches conversion asynchronously; a Celery worker selects a converter and records completion or failure. Conversion covers images, documents, and spreadsheets. The source excerpts show these runtime calls and configuration; the README is empty, so broader product claims are limited to the code shown.
Main entry points: api.py REST routes · worker.py Celery task · converters.py Format dispatcher · database.py Database sessions
Components 16
API and identity
- REST routes
src/api.py - JWT user lookup
src/dependencies.py - Request and response schemas
src/schemas.py
Conversion jobs
- Celery task
src/worker.py - Format dispatcher
src/converters.py - Image conversion
src/converters.py - Document conversion
src/converters.py - Spreadsheet conversion
src/converters.py
Persistence
- User and task models
src/models.py - Database sessions
src/database.py - Local file storage
src/storage.py
Application runtime
- FastAPI app
src/main.py - Settings
src/config.py
Other components
- API user
- PostgreSQL
- Redis broker
Connections 24
- API user → FastAPI app: calls API
src/main.py - FastAPI app → REST routes: mounts routes
src/main.py - FastAPI app → Database sessions: initializes tables
src/main.py - FastAPI app → Settings: reads prefix
src/main.py - REST routes → Request and response schemas: validates and serializes
src/api.py - REST routes → JWT user lookup: authenticates protected routes
src/api.py - REST routes → Database sessions: queries and saves records
src/api.py - REST routes → User and task models: creates and queries
src/api.py - REST routes → Local file storage: saves and deletes files
src/api.py - REST routes → Celery task: dispatches task
src/api.py - JWT user lookup → Database sessions: gets session
src/dependencies.py - JWT user lookup → User and task models: looks up user
src/dependencies.py - Database sessions → PostgreSQL: connects to
src/database.py - Celery task → Redis broker: configures broker
src/worker.py - Celery task → Database sessions: loads and updates task
src/worker.py - Celery task → User and task models: updates task status
src/worker.py - Celery task → Local file storage: creates result path
src/worker.py - Celery task → Format dispatcher: converts file
src/worker.py - Format dispatcher → Image conversion: dispatches image pairs
src/converters.py - Format dispatcher → Document conversion: dispatches document pairs
src/converters.py - Format dispatcher → Spreadsheet conversion: dispatches table pairs
src/converters.py - Format dispatcher → Local file storage: copies fallback files
src/converters.py - REST routes → Settings: checks upload limits
src/api.py - Celery task → Settings: reads broker settings
src/worker.py