Skip to main content

Shared backend infrastructure for Dreamverse Holdings FastAPI projects

Project description

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
  • 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
  • Event bus with subscribe decorators, retries, and transport overrides
  • Idempotency-key stores, FastAPI middleware, and dependency helpers
  • 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.

Project details


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.1.1.tar.gz (111.5 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.1.1-py3-none-any.whl (148.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dreamverse_core-1.1.1.tar.gz
  • Upload date:
  • Size: 111.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dreamverse_core-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f6572674d3328a269e3ef5557e48f61f52a37e33687648da695aba69842696af
MD5 3bd1c90f91392139e700a3a5b8205965
BLAKE2b-256 496a615492df6fb71737ef7b036d8ec7e25299f95226f48298e150ac8add2fef

See more details on using hashes here.

Provenance

The following attestation bundles were made for dreamverse_core-1.1.1.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.1.1-py3-none-any.whl.

File metadata

  • Download URL: dreamverse_core-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 148.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dreamverse_core-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff48f01ec9568199617d35ee93929f7504d5f438134318ea7500386c80e1a1e4
MD5 e6467e1e3b670222cdf146f631c17a3d
BLAKE2b-256 b840abd6e400a2b3330fe76a8d1c83fb4c89a065c54cff9a63a43ddc27e67d0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dreamverse_core-1.1.1-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page