Skip to main content

python-dlogg-db

Unofficial python package to read data from a Technische Alternative D-LOGG device (using dlogg-driver) and upload it to a database.

Installation

sudo apt install libmysqlclient-dev
pip install dlogg-db

Usage

from dlogg_driver import DLoggDevice
from dlogg_db import DLoggDbUpload, DLoggDbDownload

# upload
with DLoggDevice("/dev/ttyUSB0") as device:
    with DLoggDbUpload('db-host', 3306, 'db-name', 'db-user', 'db-pw') as upload:
        upload.update_tables_format()
        upload.insert_current_data(device.get_current_data())

# download
with DLoggDbDownload('db-host', 3306, 'db-name', 'db-user', 'db-pw') as download:
  end = datetime.datetime.utcnow()
  start = end - datetime.timedelta(minutes=10)
  print download.fetch_data_range(start, end)

Metadata

Release files for dlogg-db 0.3.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 dlogg-db 0.3.1
File Size Uploaded Provenance Actions
dlogg-db-0.3.1.tar.gz 4.3 kB Without provenance Details for dlogg-db-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dlogg-db 0.3.1
File Interpreter ABI Platform Actions
dlogg_db-0.3.1-py2-none-any.whl Python 2 none any Details for dlogg_db-0.3.1-py2-none-any.whl

Total release size: 12.7 kB

Release files / dlogg-db-0.3.1.tar.gz

Download URL dlogg-db-0.3.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
573b619b67451301c9cad5fb68f1a1bd9cd7a7cfc49d79c90165473822198490
BLAKE2b-256 checksum
How to use checksums
1703571ebad1dc284df0547b0bca0e924de73e26760869e79fbaa83a36f25084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dlogg_db-0.3.1-py2-none-any.whl

Download URL dlogg_db-0.3.1-py2-none-any.whl
Size 8.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
0e2d17fb20a84257001a8bd0cca207c88993aa53857436281d8dd389b764fed2
BLAKE2b-256 checksum
How to use checksums
612cc567373ef7c1ccc59ff8a4de58ced8a808878a23377225fc4f66decc43c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dlogg-db 0.3.1

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.

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