Skip to main content

This app reads a .csv file that contains trx information, send a formatted email with this content and load the information into a Mongodb cluster

Project description

Trx_reader

Download docker container from DockerHub:

https://hub.docker.com/repository/docker/romibareiro/stori01

Or

Clone repository and install:

pip3 install -r requirements.txt

Load env variables:

Create an .env file with this content:

CSV_PATH=CSV_PATH SENDER_EMAIL=SENDER_EMAIL DEST_EMAIL=DEST_EMAIL EMAIL_PWD=EMAIL_PWD USER_NAME=USER_NAME MONGODB_CONNSTRING=MONGODB_CONNSTRING

And then run:

python3 main.py

Note: if your email sender is a gmal account, you must get app password from gmail settings. If you want to build the docker image, you need to change the flags values in .env ( PATH_TO_CSV, EMAIL_SENDER, EMAIL_DESTINATION,EMAIL_SENDER_PWD,USER_NAME)

You will receive an email like this:

index

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

trx-reader-demo-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

trx_reader_demo-0.1.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file trx-reader-demo-0.1.2.tar.gz.

File metadata

  • Download URL: trx-reader-demo-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Linux/5.4.0-126-generic

File hashes

Hashes for trx-reader-demo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8d98b56e618a1746b7553731aef2b7517bb12febe37881ad7c28b2b967505339
MD5 8eb7e7b5dbef7925f5bc4fdba29ddbd5
BLAKE2b-256 7e7b6abd3b542c40e4ee83e1239bf4ce10c6846e805cedecbcdf59c1a2f03751

See more details on using hashes here.

File details

Details for the file trx_reader_demo-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: trx_reader_demo-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Linux/5.4.0-126-generic

File hashes

Hashes for trx_reader_demo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1cfde99cbf0a42e4d3fcdd6f1e8f033d06502151d5a8454b37a6239440fe96ab
MD5 8858ca6f3319484ff7c3c7cb4194a140
BLAKE2b-256 0a1982405877051325074336e4ef161261023a68953755c9f397052fbd17d41a

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