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.0rc5

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.0rc5
File Size Uploaded
tinyshed_tinystore-0.1.0rc5.tar.gz 81.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tinyshed-tinystore 0.1.0rc5
File
tinyshed_tinystore-0.1.0rc5-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
tinyshed_tinystore-0.1.0rc5-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
tinyshed_tinystore-0.1.0rc5-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.0rc5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64, Linux glibc 2.17+ ARM64 Details
tinyshed_tinystore-0.1.0rc5-py3-none-macosx_12_0_x86_64.whl Python 3 none macOS 12.0+ x86-64 Details
tinyshed_tinystore-0.1.0rc5-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details
tinyshed_tinystore-0.1.0rc5-py3-none-any.whl Python 3 none any Details

Total release size: 48.0 MB

Release files / tinyshed_tinystore-0.1.0rc5.tar.gz

Download URL tinyshed_tinystore-0.1.0rc5.tar.gz
Size 81.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e1840f482e695e83550e8899be4711b401c621471248ef320803416462283013
BLAKE2b-256 checksum
How to use checksums
cb01b398db6be622427f99ddeb1b5a23944da454a15d000cc37d7395abbdc2a0
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 4, 2026.

Transparency log

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

Download URL tinyshed_tinystore-0.1.0rc5-py3-none-win_arm64.whl
Size 7.6 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
84cdc67c70ff534e56e27d0be669eacce5492983e737442d3c0099b541e26c7f
BLAKE2b-256 checksum
How to use checksums
98ec20a0bc221fc431a0d668d702c1c38ff666501e1a3b3e6c0c1bd70d3b6e8e
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 4, 2026.

Transparency log

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

Download URL tinyshed_tinystore-0.1.0rc5-py3-none-win_amd64.whl
Size 8.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b9256bbb5fad53d07285da0c369735a31d2b97d0998d2fd4e6111b2b11e30ca0
BLAKE2b-256 checksum
How to use checksums
612aee17f9184c06749615aec5263d4d3764abe055da33ed63b0b1d9e5cb858e
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 4, 2026.

Transparency log

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

Download URL tinyshed_tinystore-0.1.0rc5-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
9bff36ef8fbb5d00d94ff621496baff0095d1274be4a4d8d9d1087e221ee33cc
BLAKE2b-256 checksum
How to use checksums
a2937db32f899b465bb61c0a8b7a44bd873c1d96810b5647c0783744678e7284
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 4, 2026.

Transparency log

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

Download URL tinyshed_tinystore-0.1.0rc5-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
93d7d99544f057e2bc93eb39b0fc80f15566a1e0ec8bb44a66455032606d5a7e
BLAKE2b-256 checksum
How to use checksums
e9b8dbd55dcacf7bafab4c0859a7c454065dd6940c443bf4447af91f73bf4658
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 4, 2026.

Transparency log

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

Download URL tinyshed_tinystore-0.1.0rc5-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
70a094a8da50d72f6a2b1e1a3913a17eeae5a5fb3bac4d80512f06cabbd7aa33
BLAKE2b-256 checksum
How to use checksums
442b2076080b6bbcf9e18d73c509e08c652abb55deb773b5819f70807c3a01d2
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 4, 2026.

Transparency log

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

Download URL tinyshed_tinystore-0.1.0rc5-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
e9176a23ce9b010d406da310597d6a55e30ff4bdddb20ff8ad50dc51d377b811
BLAKE2b-256 checksum
How to use checksums
e58dbc4b41c79af6db43fb287f40716ef2c188502625ff0bc58071434e09c545
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 4, 2026.

Transparency log

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

Download URL tinyshed_tinystore-0.1.0rc5-py3-none-any.whl
Size 96.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9abcf8ab56c581177133b150a74285d36925e8570ce7512a1c1923821da7a33b
BLAKE2b-256 checksum
How to use checksums
a7c499937883d8954096a69706c3047899391b947758390a7351cd40c43babd9
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 4, 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