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

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

Built distributions (wheels)

Table of built distributions (wheels) for tinyshed-tinystore 0.1.0rc4
File
tinyshed_tinystore-0.1.0rc4-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
tinyshed_tinystore-0.1.0rc4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
tinyshed_tinystore-0.1.0rc4-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.0rc4-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.0rc4-py3-none-macosx_12_0_x86_64.whl Python 3 none macOS 12.0+ x86-64 Details
tinyshed_tinystore-0.1.0rc4-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details
tinyshed_tinystore-0.1.0rc4-py3-none-any.whl Python 3 none any Details

Total release size: 48.0 MB

Release files / tinyshed_tinystore-0.1.0rc4.tar.gz

Download URL tinyshed_tinystore-0.1.0rc4.tar.gz
Size 81.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6de47e548fe654da0a424a469d956f78ce02f52e6a94866c2aa67f264fb1bf6e
BLAKE2b-256 checksum
How to use checksums
bcf5e8de2662268642ea65c55ed0a3f6fbd0c0c01965d05a1ce7cffcb5ebbc2f
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.0rc4-py3-none-win_arm64.whl

Download URL tinyshed_tinystore-0.1.0rc4-py3-none-win_arm64.whl
Size 7.6 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
683330b23f9568c8a6fc03e35fb717451cdb85f41d28a752d1a1ab94128246ca
BLAKE2b-256 checksum
How to use checksums
639955ed0c056e655d146f1004370d863662aa70d2f0694f36458f4f79fcb79a
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.0rc4-py3-none-win_amd64.whl

Download URL tinyshed_tinystore-0.1.0rc4-py3-none-win_amd64.whl
Size 8.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3075d27b21105b479690631f32e5f8dd5b5a2349db3500a54be98d53a26a7865
BLAKE2b-256 checksum
How to use checksums
e2f84918f675d819266e463f1f04dc176e83092dac000965c8dbeeb9625b7e6e
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.0rc4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL tinyshed_tinystore-0.1.0rc4-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
82bf81453104f57ead81a1b4b4cc33dc6c189a87077a67dd83b7ede2b1206bc7
BLAKE2b-256 checksum
How to use checksums
d608cb4d26abfc4a0f60485f8f3d1c5e1ce9c037058044ac14b30fe5787f58a6
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.0rc4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL tinyshed_tinystore-0.1.0rc4-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
978f99014a69512f6db156f210bf3f37abf91025cf8420400d348036c465d7b2
BLAKE2b-256 checksum
How to use checksums
1b29544ece3d465d2c8c3dc18dda9d298dee6619ae65c0b0387e0fde27114cec
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.0rc4-py3-none-macosx_12_0_x86_64.whl

Download URL tinyshed_tinystore-0.1.0rc4-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
42a54874dd8eb108ede8454c109414d2ef97bf98ecc2a5fce614b3f5ae05ff13
BLAKE2b-256 checksum
How to use checksums
bf0666778990b8fbf1050552f36d6b5aff375714f0a50e598c331583ca0f8912
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.0rc4-py3-none-macosx_12_0_arm64.whl

Download URL tinyshed_tinystore-0.1.0rc4-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
c54e721a60774ed3888cd0dfbdb5d52887b910ce37b3e9f35b5c4ef8707f4782
BLAKE2b-256 checksum
How to use checksums
d17293b052519a293a8921291e8b858b59f21242fc6bf4eccddb8b67d3cc7f74
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.0rc4-py3-none-any.whl

Download URL tinyshed_tinystore-0.1.0rc4-py3-none-any.whl
Size 96.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
834117bb5f9c7a8e23008cbf4a81e4c2a2db1cb9e25272e15fa5324a80b39f01
BLAKE2b-256 checksum
How to use checksums
e35c9ce60708b366dbb85f7a6081e802f088052029f505408894d0d46a426fcc
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