Flask API for TOPSIS CSV processing and email delivery
Project description
topsis-backend
Flask API that accepts a CSV, runs the topsis CLI, and emails the result.
Install
pip install topsis-backend
With Gunicorn for production:
pip install "topsis-backend[prod]"
Configuration
Set environment variables (e.g. in .env):
MAIL_ID— sender emailAPP_PASSWORD— app password for SMTPPORT— dev server port (default5000)TOPSIS_UPLOAD_DIR— upload directory (default./uploadsunder current working directory)TOPSIS_STATIC_ROOT— optional directory to serve static frontend files (e.g. path tofrontend)
The host machine must have the topsis command available on PATH.
Run
topsis-backend
Or with Gunicorn:
gunicorn -w 2 -b 0.0.0.0:5000 "topsis_backend.app:create_app()"
Build / publish
python -m build
python -m twine upload dist/*
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
topsis_backend-0.1.0.tar.gz
(3.7 kB
view details)
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 topsis_backend-0.1.0.tar.gz.
File metadata
- Download URL: topsis_backend-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
931bac47079f7d822b0a34dde9cc0a08497b62ce75775d3a7d0b4f53643c9468
|
|
| MD5 |
ea46687da01dcbd2a7a15fdacf577de9
|
|
| BLAKE2b-256 |
8f170194b32a9c5a2193a3b4c03d7aea369c6646a050aec0e001cbab900a3ff8
|
File details
Details for the file topsis_backend-0.1.0-py3-none-any.whl.
File metadata
- Download URL: topsis_backend-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e954bb0f4c89491e88d3160fe558742421fc5f0e2354ac48bff9082e28a2b1c1
|
|
| MD5 |
8f28b9718c0c50b977156a159dbb4fe3
|
|
| BLAKE2b-256 |
1786016df379dce771070b9f22bc14d3fa6043c214889775e02dee57d8c6afaf
|