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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tritise-0.1.1.tar.gz.
File metadata
- Download URL: tritise-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f2d771a90e71eda7dcf347be7b87f62cb79a6f94d4d0ff4faddc98c1b45c12b
|
|
| MD5 |
f51a6cc2a84767e371de8cc974097e96
|
|
| BLAKE2b-256 |
e0db72d8244dc4d7211068868992bd4e2e10b412f0ea7969686589e87329b574
|
File details
Details for the file tritise-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tritise-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dc29bab656f60d73170c6a32225f745befa53a5c6c2709abe152c1a637a8595
|
|
| MD5 |
f26d0d2f843f963386048e8f8a94c02f
|
|
| BLAKE2b-256 |
cd3371f59e1f5d50c030c172522067acfadaadc41149d544dfd806d93cdbb6b5
|