Skip to main content

dreamverse-core

Shared backend infrastructure for Dreamverse FastAPI services.

Install

The package is published to PyPI. Install it directly with the extras your service needs:

pip install dreamverse-core
pip install "dreamverse-core[supertokens,sentry,postgres]"

Tagged releases also attach the built wheel and source distribution to GitHub Releases for pinned or offline installs.

Quickstart

from fastapi import APIRouter
from dreamverse.app import MiddlewareConfig, create_app
from dreamverse.config import BaseAppSettings

settings = BaseAppSettings()
router = APIRouter()

@router.get("/hello")
async def hello() -> dict[str, str]:
    return {"message": "hello"}

app = create_app(
    title="Example API",
    version="1.0.0",
    settings=settings,
    routers=[router],
    middleware_config=MiddlewareConfig(),
)

What it provides

  • Config-driven settings with strict validation
  • Unified API envelope and exception hierarchy
  • Observability protocol/factory/manager stack
  • Security, rate-limit, correlation, and logging middleware
  • Provider-agnostic auth interfaces and dependencies
  • SuperTokens signup lifecycle hooks for project role validation and bindings
  • Database engine + session dependency helpers
  • Event envelope + idempotency utilities
  • Provider-neutral LLM interface for shared adapter contracts
  • Reusable LLM adapter conformance suite with recorded fixture replay
  • Shared LLM provider/model registry with packaged provider catalogs
  • OpenAI Chat Completions compatible LLM adapter
  • Audit-log sinks, explicit recording, replay, and FastAPI middleware
  • Feature-flag provider contracts, targeting context, and config-driven factories
  • Cached feature-flag fallback decorator with project-owned cache repositories
  • Event bus with subscribe decorators, retries, and transport overrides
  • Idempotency-key stores, FastAPI middleware, and dependency helpers
  • Notification provider contracts, templated sends, and delivery audit records
  • Email-template registry with project override hooks
  • Server-side analytics capture with PostHog and custom provider support
  • Payment provider contracts for Stripe, PayFast, in-memory tests, and project overrides
  • Background-job queues with retry, DLQ, audit, and event hooks
  • Search provider contracts for in-memory, Meilisearch, Typesense, and project overrides
  • Media upload, storage, processing, and serve-policy helpers for S3/R2-style storage
  • App factory and testing helpers

Verification

python -m build
pytest tests/ -q

Release

dreamverse-core uses a two-workflow release flow:

  1. Run .github/workflows/release.yml from master with:
    • tag: vX.Y.Z
    • changelog: one bullet per line or a markdown bullet list
  2. The workflow updates pyproject.toml and CHANGELOG.md, verifies the package, commits the release, and pushes the tag.
  3. The tag triggers .github/workflows/publish.yml, which publishes to PyPI and updates the GitHub release with the built artifacts.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dreamverse_core-1.4.0.tar.gz (353.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dreamverse_core-1.4.0-py3-none-any.whl (285.6 kB view details)

Uploaded Python 3

File details

Details for the file dreamverse_core-1.4.0.tar.gz.

File metadata

  • Download URL: dreamverse_core-1.4.0.tar.gz
  • Upload date:
  • Size: 353.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dreamverse_core-1.4.0.tar.gz
Algorithm Hash digest
SHA256 60c4ad44c16ebbe776c93c000b4fb516ce531252c291dd5dcd75888e175a5322
MD5 d0264b30e66c7875730796ce29ef5eff
BLAKE2b-256 fe153488065ec0adb68ba1dee8fabffb04c1a596e9de51f8c80bfb27be000361

See more details on using hashes here.

Provenance

The following attestation bundles were made for dreamverse_core-1.4.0.tar.gz:

Publisher: publish.yml on DreamverseHoldings/dreamverse-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dreamverse_core-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: dreamverse_core-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 285.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dreamverse_core-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 344d8e456a8b2e2c23d4a9a77a3de7c2c5f07c45c4e8a86c5d6748d1f1aaf335
MD5 62568474a49cedb3a94063c4dddf44b9
BLAKE2b-256 857304935f380a2ebc6068d1ad7e808fa3c4753c8207d78fff7b3f6f32d9ef95

See more details on using hashes here.

Provenance

The following attestation bundles were made for dreamverse_core-1.4.0-py3-none-any.whl:

Publisher: publish.yml on DreamverseHoldings/dreamverse-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.8.4

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.1

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

This release

1.4.0 This release

2 files

1.3.0

2 files

1.2.9

2 files

1.2.8

2 files

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.1.2

2 files

1.1.1

2 files

1.0.2

2 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