Skip to main content

CodeForge Hardware Store

test PyPI License: MIT

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.bulkhead
  • codeforge_shelf.circuit_breaker
  • codeforge_shelf.config
  • codeforge_shelf.console
  • codeforge_shelf.deadline
  • codeforge_shelf.feature_flags
  • codeforge_shelf.hashchain
  • codeforge_shelf.health
  • codeforge_shelf.hourglass
  • codeforge_shelf.loader_cache
  • codeforge_shelf.observability
  • codeforge_shelf.plugin_registry
  • codeforge_shelf.record_loader
  • codeforge_shelf.reporting
  • codeforge_shelf.repository
  • codeforge_shelf.retry
  • codeforge_shelf.sanitizer
  • codeforge_shelf.signal_bus
  • codeforge_shelf.statemachine
  • codeforge_shelf.stats
  • codeforge_shelf.stream_framer
  • codeforge_shelf.telnet_codec
  • codeforge_shelf.test_evidence
  • codeforge_shelf.token_bucket
  • codeforge_shelf.validation
  • codeforge_shelf.weighted_table
  • codeforge_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)

Source distribution for codeforge-shelf 0.1.0
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)

Table of built distributions (wheels) for codeforge-shelf 0.1.0
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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