Skip to main content

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 rin_proj1 set-config


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, open/spawn the shell where command is to be run:

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)

env_name:
  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

Release files for rin-proj1 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rin-proj1 1.1
File Size Uploaded
rin_proj1-1.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rin-proj1 1.1
File Interpreter ABI Platform
rin_proj1-1.1-py3-none-any.whl Python 3 none any Details

Total release size:8.4 kB

Release files / rin_proj1-1.1.tar.gz

Download URL rin_proj1-1.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b60e20da719ea0f8d0ed04b5cfaa6faaa9db911ff557b86fabe06ba103fb5e84
BLAKE2b-256 checksum
How to use checksums
650690ca57e5114f4d7380d0516d15b20c255f5d68fab098ee1329494d113a38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic

Release files / rin_proj1-1.1-py3-none-any.whl

Download URL rin_proj1-1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d438b5af1f52ec4a66f4510e67efec2df3095f1131fb4ab8b031129647c2742c
BLAKE2b-256 checksum
How to use checksums
6c27f71b8e08b646904099a234945677b60b6ee651552bf359bb634fec981ef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page