CodeForge Hardware Store
Reusable, engine-agnostic Python cores, proven in the CodeForge MUD and poured here as a standalone package. No game engine is required to use them. Fully typed (PEP 561).
Install
pip install codeforge-shelf
# or, unreleased: pip install git+https://github.com/MatrymLabs/codeforge-shelf
Third-party dependencies: fastapi, pydantic, structlog.
Usage
import time
from codeforge_shelf.token_bucket import TokenBucket
bucket = TokenBucket(rate=5, capacity=10, clock=time.monotonic)
decision = bucket.consume(cost=1)
if decision.allowed:
... # do the rate-limited work; else wait decision.retry_after
Cores (27)
codeforge_shelf.bulkheadcodeforge_shelf.circuit_breakercodeforge_shelf.configcodeforge_shelf.consolecodeforge_shelf.deadlinecodeforge_shelf.feature_flagscodeforge_shelf.hashchaincodeforge_shelf.healthcodeforge_shelf.hourglasscodeforge_shelf.loader_cachecodeforge_shelf.observabilitycodeforge_shelf.plugin_registrycodeforge_shelf.record_loadercodeforge_shelf.reportingcodeforge_shelf.repositorycodeforge_shelf.retrycodeforge_shelf.sanitizercodeforge_shelf.signal_buscodeforge_shelf.statemachinecodeforge_shelf.statscodeforge_shelf.stream_framercodeforge_shelf.telnet_codeccodeforge_shelf.test_evidencecodeforge_shelf.token_bucketcodeforge_shelf.validationcodeforge_shelf.weighted_tablecodeforge_shelf.workflow
Tests
25 test twins ship with the package and pass with no engine present (pip install .[test] && pytest).
2 core(s) keep their tests in the CodeForge repo -- those tests exercise the core against the live engine (integration): console, observability.
Provenance
Generated from CodeForge by its parts/shelf_pour.py, which vendors the
engine-agnostic cores of parts/shelf/ under a fresh package name and proves they
import and test standalone. Re-poured, never hand-edited.
Metadata
Release files for codeforge-shelf 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codeforge_shelf-0.1.0.tar.gz | 62.7 kB | With provenance | Details for codeforge_shelf-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codeforge_shelf-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for codeforge_shelf-0.1.0-py3-none-any.whl |
Total release size: 113.9 kB
Release files / codeforge_shelf-0.1.0.tar.gz
| Download URL | codeforge_shelf-0.1.0.tar.gz |
|---|---|
| Size | 62.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0033acbd09fb55de3c39d1f90087253fcf899aff1c197fa5260f7ddf48d13f0
|
|
BLAKE2b-256 checksum How to use checksums |
826b0db60d28d40798412a645dfda14719c60e0c56459d1c073bf4010f143a98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency logRelease files / codeforge_shelf-0.1.0-py3-none-any.whl
| Download URL | codeforge_shelf-0.1.0-py3-none-any.whl |
|---|---|
| Size | 51.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1a819985d1d455813fd0944c93bc7ff9a442e8eab46c8d1bc39c6e58dddeda4
|
|
BLAKE2b-256 checksum How to use checksums |
905c3172a89977367476573dc703b825d646083f1d3c7764cba4c0727d8ae935
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 23, 2026.
Transparency logSecurity for codeforge-shelf 0.1.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 2 files in this release have been uploaded with provenance metadata.
Attestation for codeforge_shelf-0.1.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 Jul 23, 2026.
Transparency logA 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.