Skip to main content

bedrock

bedrock is the runtime core of the Bedrock modular framework.

It provides manifest-driven module loading, lifecycle management, and first-party contrib modules for common capabilities.

Status

The core runtime is fully implemented and functional.

This package contains production-ready subsystems:

  • Module registry with dependency resolution and lifecycle hooks
  • Dependency injection container with singleton/transient/scoped lifetimes
  • Hook system for structured call/response extension points (sync, async, robust)
  • SQLAlchemy 2.0 database layer with Alembic migrations
  • Cache system with memory and Redis backends
  • Signal/event system (blinker-derived)
  • Typer-based CLI for module and database management
  • Comprehensive utility library (lazy loading, introspection, string helpers)

Installation

# With uv (recommended)
uv add bedrock-core

# With poetry
poetry add bedrock-core

# With pip
pip install bedrock-core

Quick Start

import bedrock

# Initialize the runtime (discovers and loads modules)
bedrock.setup()

# Access key singletons
from bedrock.module import apps          # ModuleRegistry
from bedrock.database import db          # DatabaseManager
from bedrock.contrib.cache import cache  # CacheService

Key Singletons

Singleton Class Import
apps ModuleRegistry from bedrock.module import apps
container Container from bedrock.di import container
hooks HookRegistry from bedrock.hooks import hooks
db DatabaseManager from bedrock.database import db
cache CacheService from bedrock.contrib.cache import cache

Module Structure

my_app/
├── __init__.py
├── manifest.yaml    # Module identity and dependencies
├── models.py        # SQLAlchemy models (optional)
├── entities.py      # Pydantic models for validation
├── service.py       # Business logic
├── exc.py           # Module exceptions
└── bootstrap.py     # Lifecycle hooks

Architecture

Bedrock is framework-agnostic by design. The core runtime has no HTTP dependencies and is usable in:

  • API servers (FastAPI, Flask, etc.)
  • Background workers (Celery, etc.)
  • CLI tools
  • Scripts and automation

For more details, see the documentation.

Metadata

Release files for bedrock-core 0.3.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 bedrock-core 0.3.0
File Size Uploaded Provenance Actions
bedrock_core-0.3.0.tar.gz 111.4 kB With provenance Details for bedrock_core-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bedrock-core 0.3.0
File Interpreter ABI Platform Actions
bedrock_core-0.3.0-py3-none-any.whl Python 3 none any Details for bedrock_core-0.3.0-py3-none-any.whl

Total release size: 267.7 kB

Release files / bedrock_core-0.3.0.tar.gz

Download URL bedrock_core-0.3.0.tar.gz
Size 111.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a2053fc8e6f8b2ea06440e9a755f7032756deaf246e3dd785dc51b1839d4f8fc
BLAKE2b-256 checksum
How to use checksums
45eee2db04e0c3764aa78ee76ccb9bcd6f5de54a6f9389a33e2a52b459b48821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / bedrock_core-0.3.0-py3-none-any.whl

Download URL bedrock_core-0.3.0-py3-none-any.whl
Size 156.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ada4ffc99057d58a4906bc020b535cb045eb631b6103439ebd9094e04c2497a
BLAKE2b-256 checksum
How to use checksums
719b3b05efec6f2f6f27432348e71fc6e29743187dcb799b7d091321021e296b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Security for bedrock-core 0.3.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bedrock_core-0.3.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 Nov 7, 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