Skip to main content

661 VGS - Function to collate 2965D log sheets into a master log and database.

Project description

Log Keeper

661 VGS - Function to collate 2965D log sheets into a single master log file.

Usage

  1. Ensure python is installed and python.exe is added to the path.

  2. Ensure git is installed e.g. "Git for Windows"

  3. Using the Git Bash terminal, download this repository.

git clone PROJECT_URL
  1. Navigate into the project folder.
cd viking-log-keeper
  1. Create a virtual environment.
python -m venv .venv
  1. Install the required packages.
.venv\Scripts\activate
pip install .
  1. Sign up to MongoDB Atlas. It is free for 512 MB.

  2. Create a .config directory and save your DB credentials into it. Be sure to replace each one of the fields below e.g. change mymongo.pdd134.mongodb.net to your DB connection URL.

mkdir .config
$json='{"DB_URL": "mymongo.pdd134.mongodb.net", "DB_USERNAME": "mymongo", "DB_PASSWORD": "pass123", "DB_COLLECTION_NAME": "666vgs", "DB_NAME": "myDB"}'
echo "$json" > .config/database-config.json
  1. Run the log keeper function.
python -m log_keeper.main

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

viking-log-keeper-0.3.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

viking_log_keeper-0.3.0-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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