Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

TinyStore for Python

A small storage runtime for applications. SQL, key-value state, durable jobs, files, metrics and logs in one directory, with one lifecycle, one memory budget and one backup.

Release candidates first. Until v0.1.0, the API may still change, and a file written by one release may not open in the next.

The SDK starts a small tinystore server next to your program, called the sidecar, and talks to it over a local connection. The server binary comes with the wheel, so there is nothing else to install. Go programs embed the same engines, and every client of one directory sees the same data.

import asyncio
import logging
from pathlib import Path

import tinystore


async def main() -> None:
    async with tinystore.open("./data") as store:
        db = await store.sql(
            "app", migrations={"0001_users.sql": "create table users (id integer primary key, name text)"}
        )
        await db.exec("insert into users (id, name) values (?, ?)", 42, "Ada")

        sessions = store.kv.bucket("sessions", str, sliding="30d")
        await sessions.of("42").set("token", "abc123")

        emails = store.jobs.queue("emails", dict[str, str])
        await emails.enqueue({"to": "ada@example.com"})

        files = store.blobs.bucket("files")
        await files.put("avatars/42.png", Path("avatar.png").read_bytes())

        logging.getLogger().addHandler(store.records.handler("api"))
        logging.info("user created", extra={"user_id": 42})

        store.metrics.counter("signups_total").inc()


asyncio.run(main())
pip install tinyshed-tinystore

It needs Python 3.12 or later and runs on asyncio. The package installs as tinyshed-tinystore and imports as tinystore.

Engines

SQL Relational state The application's own SQL databases: tables from structs, checked migrations.
KV Application state Current state: typed buckets, counters, expiry, versions.
Jobs Durable background work Work that runs at its time: retries, leases, repeats.
Blobs Files and objects Files by path, checked when read whole.
Records Logs and events Read by time, level and keys.
Metrics Time series Samples kept bit for bit, answered exactly.

Three ways to connect

async with tinystore.open("./data") as store:  # the directory's sidecar, shared with other processes
    ...
async with tinystore.open("./data", private=True) as store:  # a server for this process alone, for tests and scripts
    ...
async with tinystore.connect("tls://db.internal:7070", token=token) as store:
    ...

The sidecar and A remote server explain each one.

The command line

The wheel also installs the tinystore command. It shows what a store contains and follows its logs while your program runs. uvx runs it without installing anything:

uvx --from tinyshed-tinystore tinystore status ./data                          # each engine's size, and who serves the directory
tinystore logs ./data -f                                                       # the application's logs, as they arrive
claude mcp add tinystore -- uvx --from tinyshed-tinystore tinystore mcp ./data # read-only access for an AI agent

See The command line for every command.

Documentation

License

Apache-2.0.

Metadata

Release files for tinyshed-tinystore 0.1.0rc3

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

Source distribution (sdist)

Source distribution for tinyshed-tinystore 0.1.0rc3
File Size Uploaded
tinyshed_tinystore-0.1.0rc3.tar.gz 79.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tinyshed-tinystore 0.1.0rc3
File
tinyshed_tinystore-0.1.0rc3-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
tinyshed_tinystore-0.1.0rc3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
tinyshed_tinystore-0.1.0rc3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 Details
tinyshed_tinystore-0.1.0rc3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux musl 1.1+ ARM64 Details
tinyshed_tinystore-0.1.0rc3-py3-none-macosx_12_0_x86_64.whl Python 3 none macOS 12.0+ x86-64 Details
tinyshed_tinystore-0.1.0rc3-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details
tinyshed_tinystore-0.1.0rc3-py3-none-any.whl Python 3 none any Details

Total release size: 48.0 MB

Release files / tinyshed_tinystore-0.1.0rc3.tar.gz

Download URL tinyshed_tinystore-0.1.0rc3.tar.gz
Size 79.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89d37e792a4056ba13ca72a51e417bba4d022f825a37eabcd64d825283ed9575
BLAKE2b-256 checksum
How to use checksums
4496cc2baeb9d025bb4379ad66045872f7b4832d4b8d79eaa9962a426a76e899
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 Oct 3, 2026.

Transparency log

Release files / tinyshed_tinystore-0.1.0rc3-py3-none-win_arm64.whl

Download URL tinyshed_tinystore-0.1.0rc3-py3-none-win_arm64.whl
Size 7.6 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
77dc916dcc4b314256a72b2c998b2e3b4bce38ef168e318c9cc25f6eee2c758f
BLAKE2b-256 checksum
How to use checksums
5826b44d8c7c6ee1876dd317cca8599588e351c7fbe318102199a0224664c003
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 Oct 3, 2026.

Transparency log

Release files / tinyshed_tinystore-0.1.0rc3-py3-none-win_amd64.whl

Download URL tinyshed_tinystore-0.1.0rc3-py3-none-win_amd64.whl
Size 8.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
44366b746e5fb40e6ba6d42453d0378e67f412468f8868eca11ca2092f1e4e8a
BLAKE2b-256 checksum
How to use checksums
1bb13132a72a6fc11becc7de97bb49e3c94b253e8ecab27622dc494107812e48
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 Oct 3, 2026.

Transparency log

Release files / tinyshed_tinystore-0.1.0rc3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL tinyshed_tinystore-0.1.0rc3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 8.3 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ad843b1165b6a637224176ec65adbf717f5ad9e10263306ea7f7f59d59f84214
BLAKE2b-256 checksum
How to use checksums
303c2a524426b67d8ba6d42df1061774c52621f0eca19538d08ff01afd65a268
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 Oct 3, 2026.

Transparency log

Release files / tinyshed_tinystore-0.1.0rc3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL tinyshed_tinystore-0.1.0rc3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 7.5 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
1d7c3fcbb980b80dee2ca5c786c6206266f5d5988ced0ca75806e73121ba3041
BLAKE2b-256 checksum
How to use checksums
5eef30382b9773f7c429566e88fe8c526414fe503861e61649778d636a6ec842
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 Oct 3, 2026.

Transparency log

Release files / tinyshed_tinystore-0.1.0rc3-py3-none-macosx_12_0_x86_64.whl

Download URL tinyshed_tinystore-0.1.0rc3-py3-none-macosx_12_0_x86_64.whl
Size 8.3 MB
Tags Python 3 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
a73a6327e9a4aecb7f4f7f2f2f86ec0e9c58541ff0c34eb58430592e7fc602c2
BLAKE2b-256 checksum
How to use checksums
c54c5ff9dc4409e15101f3742e7f033a6fac9241d7c91ed707d32046be7e7f88
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 Oct 3, 2026.

Transparency log

Release files / tinyshed_tinystore-0.1.0rc3-py3-none-macosx_12_0_arm64.whl

Download URL tinyshed_tinystore-0.1.0rc3-py3-none-macosx_12_0_arm64.whl
Size 7.7 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
7d85dbcc1049a50da38ff488de56c388d8ad396dcdb95ca67c76f77627be7da3
BLAKE2b-256 checksum
How to use checksums
7a3676164371953e63df325e249282def10027d01e1a0a7eb984fb4b21762374
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 Oct 3, 2026.

Transparency log

Release files / tinyshed_tinystore-0.1.0rc3-py3-none-any.whl

Download URL tinyshed_tinystore-0.1.0rc3-py3-none-any.whl
Size 94.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f3a1542f0ffbd397281af0051567ad1de3d25000764766aba313fefc7a2d3a8
BLAKE2b-256 checksum
How to use checksums
fbfd5cf4c49a6f07196b02a871fbb6fba66782b58d5b261b0800e0c80d744562
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 Oct 3, 2026.

Transparency log
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