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

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.2.1
File Size Uploaded
bedrock_core-0.2.1.tar.gz 94.5 kB Details

Built distribution (wheel)

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

Total release size: 229.8 kB

Release files / bedrock_core-0.2.1.tar.gz

Download URL bedrock_core-0.2.1.tar.gz
Size 94.5 kB
Tags Source
SHA-256 checksum
How to use checksums
50de6a6820024268bcf48ccdfb812e01a65827a1cc1b7becafc8b8585387cefa
BLAKE2b-256 checksum
How to use checksums
38c2f3e204401f256ecb2901bff10eac6e6cf668d0d042edd9a18e2cdfbf6fdb
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 Aug 18, 2026.

Transparency log

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

Download URL bedrock_core-0.2.1-py3-none-any.whl
Size 135.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c18530b28784798100b475bd3675fb5a650bc8caba86be1e1549d0fa2645a545
BLAKE2b-256 checksum
How to use checksums
9413414cceb7f73753faa32fd096238d451a2fd8f52212d5aea7024177106d0c
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 Aug 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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