Log to an SQL database from multiple threads.
Project description
README
Log to an SQL database from multiple threads.
This program allows you to log information to different topics stored in a database file, extract subsets based on certain condition, as well as converting such selections into dataframes.
Run instructions
Note, only tested with Python 3
-
Create an account with Amazon Web Services and create a MySQL RDS database instance
-
Clone the repository
git clone https://github.com/robotpt/sql-logger
-
Install the dependencies and setup the project with your Python path
pip install -e sql-logger
-
Go into the sql-logger
cd sql-logger
-
Create a
config.yml
file in the home directory that mirrors the following. Ifid
is left blank, then one is assigned based on the next availableid
in the database.log_info: database_name: my_database id: sql_database: host: <url> password: mysecretpassword port: 3306 user: <user name>
-
Tests can be run with the following commands.
python3 -m unittest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sql-logger-0.0.2.tar.gz
.
File metadata
- Download URL: sql-logger-0.0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef34a42b50c6ad0c8f526c93f85e6ed0bae99bc496f191476dbd65a8b9c75d6 |
|
MD5 | 36bb48a6b948f73c4e64c8b43d183bf0 |
|
BLAKE2b-256 | ec13066d704a911f8f3c1bc20040c43412fb898fb1a82449fc12a72171febcbe |