Registry / serialization / json-timeseries

json-timeseries

JSON →
library0.1.7pypypi✓ verified 84d ago

Python library for handling JSON-TimeSeries (JTS) specification data. Version 0.1.7 supports creating, manipulating, and validating time series data in JTS format. Active development with minor fixes.

pip install json-timeseries
INSTALL
IMPORT
SIG · JSON-TIMESERIES
J
json-timeseries
serializationpythonv0.1.7
Install
1.7s avg
Import
59ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.062s · 18.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.056s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TimeSeries
from json_timeseries import TimeSeries
from jsontimeseries import TimeSeries
Package uses underscores in module name, not hyphens.
JTSEncoder
from json_timeseries import JTSEncoder
JTSDecoder
from json_timeseries import JTSDecoder

Create a basic time series and output JTS format.

from json_timeseries import TimeSeries # Create a time series with two data points ts = TimeSeries() ts['2024-01-01T00:00:00Z'] = 10.5 ts['2024-01-02T00:00:00Z'] = 20.3 # Convert to JTS dictionary print(ts.to_jts())
Debug
Known issues
gotchaTimestamp keys must be ISO 8601 strings (e.g., '2024-01-01T00:00:00Z'). Using other formats may cause validation errors.
fix
Always use ISO 8601 format with 'T' and 'Z'.
affects: all
gotchaWhen a value is integer 0, it may be omitted in the JTS output if using v0.1.6 or earlier. Fixed in v0.1.7.
fix
Upgrade to v0.1.7.
affects: <=0.1.6
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'json_timeseries'
Misspelled import or not installed.
fix
Install: pip install json-timeseries. Import: from json_timeseries import TimeSeries
AttributeError: 'TimeSeries' object has no attribute 'to_jts'
Using an older version (<0.1.5) where method name might differ.
fix
Upgrade to latest version: pip install --upgrade json-timeseries
Upgrade
Version history
0.1.7latest on PyPI · released Sep 4, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
json-timeseries — pip install json-timeseries · libregistry