Skip to main content

Unofficial library to handle data from a Technische Alternative D-LOGG device.

Project description

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

Installation

pip install dlogg-db

Usage

from dlogg_driver import DLoggDevice
from dlogg_db import DLoggDbUpload

with DLoggDevice("/dev/ttyUSB0") as device:
    header = device.get_header()
    data = device.fetch_data_range(header.start, header.get_sample_count())
    device.fetch_end()
    with DLoggDbUpload('db-host', 3306, 'db-name', 'db-user', 'db-pw') as upload:
            upload.create_tables()
            upload.insert_data(data)

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

dlogg-db-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

dlogg_db-0.1.0-py2-none-any.whl (5.6 kB view hashes)

Uploaded Python 2

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