Skip to main content

No project description provided

Project description

command usage (CLI)

See list of commands with
rin_proj1 --help

Error logging is only compatible with exec-based-on-env
read_csv_and_insert_to_db : Adds contents of provided csv to a .db file
export_db_to_csv : Adds contents of provided db to a .csv file

set-config

Executes read_csv_and_insert_to_db and export_db_to_csv functions with the given config file. If no path is provided, tries to open config.yaml in the current directory.
 rin_proj1 set-config --path path/to/config.yaml

for default/config in current directory, use main1


set-db

Executes read_csv_and_insert_to_db and export_db_to_csv functions with the db_name provided by user.

rin_proj1 set-db saves data.db in current directory
rin_proj1 set-db db_name saves to db_name in current directory. Will create a file if not present


exec-based-on-env

Executes read_csv_and_insert_to_db and export_db_to_csv functions with csv file depending on the environment type
rin_proj1 exec-based-on-env

If you want to run the command in a different environment,

poetry shell
export APP_MODE=env_name
rin_proj1 exec-based-on-env

env_name options: development, testing, production


Successful execution should print confirmation message in terminal. If there is no output, check for a mpj1_error.log file to determine the error.

Expected yaml file layout (minimum):

LOG_LEVEL: log_level (see below for valid options)

APP_MODE:
  csv_file: path/to/data.csv
  db_file: path/to/data.db
  table_file: your_table_name

log_level options: critical, error, warning, info, debug

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

rin_proj1-0.1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

rin_proj1-0.1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file rin_proj1-0.1.3.tar.gz.

File metadata

  • Download URL: rin_proj1-0.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic

File hashes

Hashes for rin_proj1-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3debe663cb3fcdede4b80dacdfefb36be51ad749629e307cb0768b0ed20b9e72
MD5 12030be86ca01c4671d42b4d81630a63
BLAKE2b-256 63658aae68ba8d516d618113d467770cd591c9c8f71e66ee3bb781ad48039d9c

See more details on using hashes here.

File details

Details for the file rin_proj1-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: rin_proj1-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic

File hashes

Hashes for rin_proj1-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a82de0c125c012f04f81f395b39a8c39749bc0d56734bcd8cbdcf22362d1e0
MD5 9f2c738939aae28098c27f6b486e9da6
BLAKE2b-256 1d33639ca932f1ad22b4f436771823d4076aabb0eef79b55f6465cdba7e9ef15

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page