Skip to main content

Flask API for TOPSIS CSV processing and email delivery

Project description

topsis-deepansh-102317257

Flask API that accepts a CSV, runs the topsis CLI, and emails the result.

Install

pip install topsis-deepansh-102317257

With Gunicorn for production:

pip install "topsis-deepansh-102317257[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-deepansh-102317257

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_deepansh_102317257-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_deepansh_102317257-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file topsis_deepansh_102317257-0.1.0.tar.gz.

File metadata

File hashes

Hashes for topsis_deepansh_102317257-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f1b760a911ef110267861d32568debb8b7ed3739fd288284fd4242f410044364
MD5 e719b188694c7696f015140543c2eb0e
BLAKE2b-256 20b81b033fb321a27b26f806ac734830fcf92b5de5bb756c596554016dd6823c

See more details on using hashes here.

File details

Details for the file topsis_deepansh_102317257-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_deepansh_102317257-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f3930f085126f5d30e9b7699fffe1ea52a5f194cae5197a4cc206017678f8d2
MD5 5c4d2f9ce4202922a6d37f8d0c85f59f
BLAKE2b-256 ed2155121707b131522b3d1dc4a4bd546f52ac362bab1733de5c198ccf88616e

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