Skip to main content

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

  1. Create an account with Amazon Web Services and create a MySQL RDS database instance

  2. Clone the repository

    git clone https://github.com/robotpt/sql-logger
    
  3. Install the dependencies and setup the project with your Python path

    pip install -e sql-logger
    
  4. Go into the sql-logger

    cd sql-logger
    
  5. Create a config.yml file in the home directory that mirrors the following. If id is left blank, then one is assigned based on the next available id in the database.

    log_info:
      database_name: my_database
      id: 
    sql_database:
      host: <url>
      password: mysecretpassword
      port: 3306
      user: <user name>
    
  6. Tests can be run with the following commands.

    python3 -m unittest
    

Metadata

Release files for sql-logger 0.0.2

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

Source distribution (sdist)

Source distribution for sql-logger 0.0.2
File Size Uploaded Provenance Actions
sql-logger-0.0.2.tar.gz 5.5 kB Without provenance Details for sql-logger-0.0.2.tar.gz

Release files / sql-logger-0.0.2.tar.gz

Download URL sql-logger-0.0.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5ef34a42b50c6ad0c8f526c93f85e6ed0bae99bc496f191476dbd65a8b9c75d6
BLAKE2b-256 checksum
How to use checksums
ec13066d704a911f8f3c1bc20040c43412fb898fb1a82449fc12a72171febcbe
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for sql-logger 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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