Skip to main content

sharedbox

PyPI CI CodSpeed Ruff clang-format Checked with mypy

sharedbox keeps records in shared memory. Each box is one named segment, and every process that opens it reads and writes the same fields.

Installation

It is recommended to install sharedbox in a virtual environment; for example using uv:

uv venv --python 3.11
.venv\Scripts\activate
uv pip install sharedbox

Quick start

import multiprocessing as mp
from typing import Annotated

from sharedbox import Capacity, SharedBox


class Motor(SharedBox):
    position: int
    enabled: bool
    label: Annotated[str, Capacity(32)]


def worker() -> None:
    motor = Motor.attach()          # finds the box by its class
    motor.position = 10
    motor.close()


if __name__ == "__main__":
    with Motor(1, False, "x-axis") as motor:
        motor.events.position.connect(lambda new, old: print(old, "->", new))
        child = mp.Process(target=worker)
        child.start()
        child.join()                      # prints: 1 -> 10
    Motor.unlink()

Documentation

The documentation site has a tutorial, how-to guides, explanations of how a box works, and the API reference.

C++ and C code can take a box from Python or open one by name; see the C and C++ guides.

License

Licensed under Apache 2.0

Metadata

Release files for sharedbox 0.4.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 sharedbox 0.4.0
File Size Uploaded Provenance
sharedbox-0.4.0.tar.gz 493.2 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for sharedbox 0.4.0
File
sharedbox-0.4.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
sharedbox-0.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details
sharedbox-0.4.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
sharedbox-0.4.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
sharedbox-0.4.0-cp312-abi3-musllinux_1_2_x86_64.whl CPython 3.12 abi3 Linux musl 1.2+ x86-64 Details
sharedbox-0.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
sharedbox-0.4.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
sharedbox-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details
sharedbox-0.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details

Total release size: 3.6 MB

Release files / sharedbox-0.4.0.tar.gz

Download URL sharedbox-0.4.0.tar.gz
Size 493.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a6e459ddb13864d0cd0c5b88d8324efe0e415d71caee45e744ecefb3d00f1cd8
BLAKE2b-256 checksum
How to use checksums
1bfe3b7fba95cdf2cb1dd6708831ec762730449a697a69c5be6521a644aedd0b
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp314-cp314t-win_amd64.whl

Download URL sharedbox-0.4.0-cp314-cp314t-win_amd64.whl
Size 320.1 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
cf0dd8c2cd3beac70b34769c06d27dce02798a59a13bfb0c05325e72baf0fe0c
BLAKE2b-256 checksum
How to use checksums
bf417b13f543ef51c64d892eca0041f90b544b821c7864c7f9ef574f1a2d7486
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL sharedbox-0.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 409.7 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
e6ac601b03e942b4775393a81eddd6c649d8a401b9956677086b0acdb89a4d4d
BLAKE2b-256 checksum
How to use checksums
124e14a9dcadca27f39755be062a08edad76dddf6203c69dfa6a688013cd1937
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL sharedbox-0.4.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 310.1 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b175ab945a11b6da69aacdc1561ad7a986ad83d8957823ed7261c754040c44a4
BLAKE2b-256 checksum
How to use checksums
c04daba3dd717e91e57a6ba39458b6a355cb6ce84441da74ad54ca3bbee4735f
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp312-abi3-win_amd64.whl

Download URL sharedbox-0.4.0-cp312-abi3-win_amd64.whl
Size 310.7 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4633796215df4d01890857e0a3a531b9a1a7fb551c67729c47bb229742f63b93
BLAKE2b-256 checksum
How to use checksums
dcc2f0ee0d73c1a64771d573b8c9a61fa93ed98df73320e888d8f616fb9080b5
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp312-abi3-musllinux_1_2_x86_64.whl

Download URL sharedbox-0.4.0-cp312-abi3-musllinux_1_2_x86_64.whl
Size 402.8 kB
Tags CPython 3.12 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
346a9daa9e1ebe740e25ed2d9e49dcf3ceb886aeeb4bfbad7ed903f9790e9ace
BLAKE2b-256 checksum
How to use checksums
59a98981a07c50e16ad3be40a62253cedeb322030690d60bd2eb0a1f0dcca1d0
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL sharedbox-0.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 304.4 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
1623f85534248a5251305a04cca53dbe035352e730c532432cebb3886d5d4a89
BLAKE2b-256 checksum
How to use checksums
2f3daa3f42bf73b35fb7aabf3b435257136921fd3b2750318fce38540123f87e
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp311-cp311-win_amd64.whl

Download URL sharedbox-0.4.0-cp311-cp311-win_amd64.whl
Size 310.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9444bc140ae51db471391a7bfb110421af159c1c67d049669c5b61b74fc760f9
BLAKE2b-256 checksum
How to use checksums
54e8c0a7005d4564adcfd35ef598714fafe4cb0a32f9cbed0af94744f3eda3d6
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL sharedbox-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl
Size 406.7 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
8c19d76720df165497f2e830ad4c16ce06863cf62ede5ed19eb03a848c468425
BLAKE2b-256 checksum
How to use checksums
a6793c1c49fabd20ef0138affd565497050e6991e2e33124eaf2709c31f9bc76
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 5, 2026.

Transparency log

Release files / sharedbox-0.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL sharedbox-0.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 308.5 kB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2b45bfb0ca069af4846d5acaa4559946ec8248770e8cb8afa5b7092e19a14787
BLAKE2b-256 checksum
How to use checksums
c1ae0a5ac39fcaabe406a628d0c22b4f02d6ab327a3257c5614ac2cc449a4c20
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 5, 2026.

Transparency log

Security for sharedbox 0.4.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 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for sharedbox-0.4.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 Oct 5, 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