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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.062s · 18.7MB
glibcpy 3.10–3.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())
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'json_timeseries'
Misspelled import or not installed.
fixInstall: 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.
fixUpgrade 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.