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:

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.1.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.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trx-reader-demo-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fa014e8973f34cf4fe8f92a9abbec77e7840c3a1a06a5ec76a3060ce3f441d79
MD5 8c5b4e141ecee5379ab993529e374a1a
BLAKE2b-256 e0a71a3efa667f6da3f359c9fab7bc1c5ac51311ec1f3abe5aa6403d2c952183

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trx_reader_demo-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 718bc4a5394676e160f6f25aa9e3ec86a562033ad2944b6a4e3a6461e4ac122a
MD5 17fd4c88c995dcd6a67d7d6abc00f8f7
BLAKE2b-256 c640ecd2631dc49616db65d4ca2ae81cc95b4a4904dc5523416f663dc5b2518f

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