Skip to main content

A small python library to handle trivial time series in an SQLite database.

Project description

tritise

A small python library to handle trivial time series in an SQLite database.

Installation

pip install tritise

Example

from tritise import Tritise
t = Tritise('test.sqlite')
t.add(1.1)
t.add(2)
t.add(3.0)
print(t.all())
print(t.last().value)

from dateutil.parser import parse
t.add(-1, tag='historic', timestamp=parse('1.1.2000'))
t.add(5, tag='historic', timestamp=parse('15.3.2001'))
t.add(200, tag='historic', timestamp=parse('21.9.2002'))

t.all('historic')
t.range(start_date = parse('1.1.2001'), end_date = parse('31.12.2001'), tag = 'historic')

Command line tool

Tritise ships a command line tool (tritise) to inspect the created databases.

Run tritise --help for more information.

CLI Example

tritise dump -d test.sqlite

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tritise, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size tritise-0.1.1-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size tritise-0.1.1.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page