Skip to main content

timeseries-table-format (Python)

Build local time-series tables with immutable Parquet segments. The Python API tracks coverage, rejects overlapping appends, updates selected row values, and queries tables with DataFusion SQL. Query results are returned as pyarrow.Table objects.

Early MVP: APIs and on-disk layouts may change before v1.0.

What it provides

  • Timestamp, Int64, or UInt64 ordered indexes
  • Per-entity index-interval uniqueness within and across appends
  • Local table roots with managed metadata and table-relative Parquet segment paths
  • Dry-run and apply vacuum modes for expired unreferenced table-managed files
  • DataFusion SQL over managed tables and standalone Parquet data
  • Materialized and streaming Arrow result APIs
  • Explicit nullable-column addition through table.add_columns(pyarrow.Schema)
  • Atomic keyed value updates through table.update_rows(source, columns=..., expected_version=...)

The current release supports local filesystems only. It does not yet support object storage, small-file compaction, column dropping/renaming, automatic schema merging, row insertion/deletion through updates, merges, or time-travel queries.

add_columns adds new nullable top-level fields after the first successful append establishes the schema. Historical rows read as null without rewriting data; later appends may omit nullable payload fields while retaining all keys and matching the types/nullability of provided fields. Replace SQL registrations with Session.register_tstable after adding columns. See the guide and runnable example.

update_rows backfills or overwrites selected existing fields using complete entity and raw index keys. Capture the source version before reading and computing assignments; any intervening commit conflicts. The operation consumes Arrow batches incrementally and rewrites affected segments in one transaction. Explicit null clears a nullable destination, and unselected fields remain unchanged. Newly planned SQL queries see value changes without re-registration. See the update guide and runnable example for error handling, report semantics, and scratch/rewrite costs.

Append retries confirmed conflicts with compatible, non-overlapping concurrent appends up to three times by default. Successful retries include those appends in the handle's snapshot. Set table.append(source, commit_retries=0) to require the handle's original version. Use zero when the input was computed from data read from that snapshot: retrying does not recompute the input. A positive commit_retries value replaces the default budget.

Install

pip install timeseries-table-format

The package requires Python 3.10 or later and installs pyarrow automatically. See Installation for supported platforms, Python implementations, and source-build guidance.

Verify the installation

import timeseries_table_format as ttf

result = ttf.Session().sql("SELECT 1 AS value")
assert result.column("value").to_pylist() == [1]

Create, append, and query a table

Assuming prices.parquet contains a Timestamp column named ts and a string column named symbol:

import pyarrow as pa
import pyarrow.parquet as pq
import timeseries_table_format as ttf

table = ttf.TimeSeriesTable.create(
    table_root="prices",
    index_column="ts",
    index_type="timestamp",
    index_granularity="1h",
    entity_columns=["symbol"],
)
parquet_file = pq.ParquetFile("prices.parquet")
report = table.append(
    pa.RecordBatchReader.from_batches(
        parquet_file.schema_arrow,
        parquet_file.iter_batches(),
    )
)
version = report.committed_version

session = ttf.Session()
session.register_tstable("prices", "prices")
result = session.sql("SELECT * FROM prices ORDER BY symbol, ts")

For a complete runnable example, follow Create, append, and query your first table.

Documentation

Contributing

See Develop the Python package for local setup, tests, quality checks, documentation builds, benchmarks, and release guidance.

License

MIT. See the repository license.

Metadata

Release files for timeseries-table-format 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timeseries-table-format 0.10.0
File Size Uploaded Provenance Actions
timeseries_table_format-0.10.0.tar.gz 657.3 kB With provenance Details for timeseries_table_format-0.10.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for timeseries-table-format 0.10.0
File Actions
timeseries_table_format-0.10.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for timeseries_table_format-0.10.0-cp310-abi3-win_amd64.whl
timeseries_table_format-0.10.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for timeseries_table_format-0.10.0-cp310-abi3-manylinux_2_28_x86_64.whl
timeseries_table_format-0.10.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for timeseries_table_format-0.10.0-cp310-abi3-macosx_11_0_arm64.whl
timeseries_table_format-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for timeseries_table_format-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 186.1 MB

Release files / timeseries_table_format-0.10.0.tar.gz

Download URL timeseries_table_format-0.10.0.tar.gz
Size 657.3 kB
Tags Source
SHA-256 checksum
How to use checksums
49e7f79878c40d8d46b4a2f673b13badf8e89397eac24870d0f8d679c2eb2d6a
BLAKE2b-256 checksum
How to use checksums
85029195d3ff56c348b185a1c68d2e3a4ba617ddd873ddfd5891b82aaff5dcc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / timeseries_table_format-0.10.0-cp310-abi3-win_amd64.whl

Download URL timeseries_table_format-0.10.0-cp310-abi3-win_amd64.whl
Size 44.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
82c87e1a4cd15a9160e062fd39b07fed9cd38a54ed07cee18c16fa6cf2febfa4
BLAKE2b-256 checksum
How to use checksums
951488bed10e309b844a0ca888b87a56d8ba6c21113ba0ba7634bef8225b0ad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / timeseries_table_format-0.10.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL timeseries_table_format-0.10.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 49.6 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
0898c32657c01032d33e333a65936c0133fed77a3c142326e1744e64c3f1e63b
BLAKE2b-256 checksum
How to use checksums
6196ec266ffc0b6789c9d2cacca04abef84eb080d3377c443fe95d84dd9c2ed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / timeseries_table_format-0.10.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL timeseries_table_format-0.10.0-cp310-abi3-macosx_11_0_arm64.whl
Size 44.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
618d144a988a7b0c2faacb455d3eecdc17732d8ec2f2ac35f103463388f110af
BLAKE2b-256 checksum
How to use checksums
7c17b8b8a66b2d954d085926f497ea25e0f50a830cd551d8fb8ee599366379fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / timeseries_table_format-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL timeseries_table_format-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 46.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2879242727c7951dc426df753e152ae09fb505b43032162628111b3c16be8099
BLAKE2b-256 checksum
How to use checksums
6a635af8d32ccea4cccf120f1528cc2d2f68b9e886a2c794d577188706cd7fbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for timeseries-table-format 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for timeseries_table_format-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page