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")
        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.0rc2

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

Built distributions (wheels)

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

Total release size: 48.0 MB

Release files / tinyshed_tinystore-0.1.0rc2.tar.gz

Download URL tinyshed_tinystore-0.1.0rc2.tar.gz
Size 78.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cc10451fb2ba2b78d272121fb88806b0b0e6918e1aa53aeae89be17fea7112b1
BLAKE2b-256 checksum
How to use checksums
8669325987c925acd32e8780e34134caf73abcb33fba61cbde6818b7cb70917d
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.0rc2-py3-none-win_arm64.whl

Download URL tinyshed_tinystore-0.1.0rc2-py3-none-win_arm64.whl
Size 7.6 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
682902efecd70be5d7a222c5f17809170f2fe9159627a6a2de5693ce236b0f41
BLAKE2b-256 checksum
How to use checksums
03f8dd85088895bb4691a1a392bbc47ab0bcb50f27947c33729c95d07d16a5d7
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.0rc2-py3-none-win_amd64.whl

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

Download URL tinyshed_tinystore-0.1.0rc2-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
ac34da8ce992e77a3d0d21a4c3fe3adb4f76a09a0965409249c163ebbf27190c
BLAKE2b-256 checksum
How to use checksums
8f986a2d6f39bb42a82acf1feb3fbb7e975a41e350aa7b1b7890d940801b7d94
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.0rc2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL tinyshed_tinystore-0.1.0rc2-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
1c66316b26e6c6616e27ac9a2fb8ff453a53b9e01494338987fe5ac1556daac2
BLAKE2b-256 checksum
How to use checksums
0179efd6605bd0ced7c900506329a4e27fb6189eb97035515cf3adb1db915df7
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.0rc2-py3-none-macosx_12_0_x86_64.whl

Download URL tinyshed_tinystore-0.1.0rc2-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
253ba7fb831a73941a5317df4244a20839d6fb12cea8249cbc4d749ca3599b2f
BLAKE2b-256 checksum
How to use checksums
175f2a7b3d711763a2b66a525556ebb9fc0c0e5b90374a9c71a6318388f8a7a4
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.0rc2-py3-none-macosx_12_0_arm64.whl

Download URL tinyshed_tinystore-0.1.0rc2-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
77bea13f11e227c902e0e4eecb59bab4173cdedf9f03f4e41412826918eac5ce
BLAKE2b-256 checksum
How to use checksums
8a9aa5b09d8df16b066904c774d165c067bd2bccb3e0acd12717de366bfa78cc
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.0rc2-py3-none-any.whl

Download URL tinyshed_tinystore-0.1.0rc2-py3-none-any.whl
Size 93.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7551dbd221814aa6455809768d91f659ae57f59293b1a8a98e2ed69d5f240c5a
BLAKE2b-256 checksum
How to use checksums
10f8221db548633a608091ae038fef46ed879d37eeb5c43a0751b5b51d800cdc
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