Skip to main content

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 email
  • APP_PASSWORD — app password for SMTP
  • PORT — dev server port (default 5000)
  • TOPSIS_UPLOAD_DIR — upload directory (default ./uploads under current working directory)
  • TOPSIS_STATIC_ROOT — optional directory to serve static frontend files (e.g. path to frontend)

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


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)

Uploaded Source

Built Distribution

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

topsis_backend-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for topsis_backend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 931bac47079f7d822b0a34dde9cc0a08497b62ce75775d3a7d0b4f53643c9468
MD5 ea46687da01dcbd2a7a15fdacf577de9
BLAKE2b-256 8f170194b32a9c5a2193a3b4c03d7aea369c6646a050aec0e001cbab900a3ff8

See more details on using hashes here.

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

Hashes for topsis_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e954bb0f4c89491e88d3160fe558742421fc5f0e2354ac48bff9082e28a2b1c1
MD5 8f28b9718c0c50b977156a159dbb4fe3
BLAKE2b-256 1786016df379dce771070b9f22bc14d3fa6043c214889775e02dee57d8c6afaf

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