Skip to main content

Core package

Project description

Fastloom – The Open Foundation for Building Event-Driven Services

Fastloom is a lightweight, batteries-included foundation for building modern backends. Define your settings, schemas, and endpoints; Fastloom wires up the rest: FastAPI, Mongo (Beanie), Rabbit (FastStream), metrics/traces/logs/errors, and more.

Think of it as the glue for your stack: web, messaging, caching, DB, observability, and integrations with best-in-class tools.


Why FastLoom

  • No boilerplate: minimal scaffolding/templating; most wiring is handled inside Core.
  • Composable: opt into only what you need (FastAPI, Rabbit, MongoDB, Redis, OpenAI).
  • Pydantic-first: type-safe models, validators, and clear input/output contracts.
  • Multi-tenant by design: tenant context flows through DI and storage.
  • AuthN/Z via DI: OIDC token introspection and pluggable PDP (ABAC/RBAC/ReBAC) hooks.
  • Event-driven ready: publish/subscribe with routing keys and health.
  • Observability-native: metrics, traces, logs from day one.
  • Self-hostable: production parity with a cloud/aaS setup.

Integrated Services (the platform)

Core plugs into a family of self-hostable services:

  • IAM → OIDC/SSO, authN/Z, RBAC/ABAC/ReBAC.
  • Notify → realtime notifications, Pusher-compatible API.
  • Pulse → user activity + event tracking with OpenTelemetry hooks.
  • File → object storage on MinIO (S3-compatible).
  • Finance, Subscription, SMS/Email, Meet, Persona → optional services you can wire in.

Each service is:

  • self-hostable (Docker Compose or Helm),
  • BaaS-available,

Quick start

# Install core
poetry add core-bluprint -E FastAPI

# Scaffold a new service
launch init myservice --stack fastapi

# Run it
cd myservice
launch dev

See pyproject extras for the full list.


What you get out of the box

  • App orchestrator (core_bluprint.launcher)
    • Loads your routes, models, signals, and healthchecks
    • Exposes settings and health endpoints (public toggle)
  • FastAPI-native
    • Dependency-injected request/tenant context and guards
    • Clear routing, OpenAPI, and dependency injection patterns
  • Auth & Access
    • DI-based guards with OIDC token introspection
    • Pluggable PDP for ABAC/RBAC/ReBAC decisions
  • Multi-tenancy
    • Tenant-aware DI context across web, DB, and messaging
    • Automatic per-tenant settings endpoint backed by DB + cache
  • Database layer (MongoDB via Beanie)
    • Created/updated mixins, pagination utilities, typed helpers
    • Helper classes/methods for common patterns (queries, projections, pagination)
    • Auto model discovery for DB init
  • Signals / Messaging (Rabbit via FastStream)
    • Event-driven publish/subscribe integration with DI and retries
    • Subscriber wiring and healthchecks
  • Observability
    • OpenTelemetry distro + OTLP exporter, Logfire, Sentry (error/bug tracking)
  • I18N
    • Exception handler and template utils with Babel/Jinja2
  • Healthchecks
    • Automatic app/DB/messaging checks + system routes
  • Pydantic-native schemas and validators
    • SchemaIn/Out validation for request/response contracts
    • Common types and validators (core_bluprint.types)

Dive deeper in the docs below.


Documentation

  • Auth → docs/auth.md
  • Tenant → docs/tenant.md
  • DB (Mongo/Beanie) → docs/db.md
  • Signals (Rabbit) → docs/signals.md
  • Observability → docs/observability.md
  • File storage → docs/file.md
  • I18N → docs/i18n.md
  • Settings & Configs → docs/settings.md
  • Launcher & App model → docs/launcher.md

Roadmap

  • More CLI scaffolds and blueprints.
  • Automatic pydantic ai agentic tool creation from apis
  • Migrate PDP to OPAL opa based

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

fastloom-0.4.12.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

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

fastloom-0.4.12-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

Details for the file fastloom-0.4.12.tar.gz.

File metadata

  • Download URL: fastloom-0.4.12.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.11 Linux/6.11.0-1018-azure

File hashes

Hashes for fastloom-0.4.12.tar.gz
Algorithm Hash digest
SHA256 1e4e9e25ef67a544020d7dbecd2170b3587780142d86089c6228d2fcd922659d
MD5 8e76de9a37b1c0d692ba8ede478df5ae
BLAKE2b-256 ed4da76f97af82c38e99c328d6726d6d97d3bc743ef4997449b8f9a643ed6adb

See more details on using hashes here.

File details

Details for the file fastloom-0.4.12-py3-none-any.whl.

File metadata

  • Download URL: fastloom-0.4.12-py3-none-any.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.11 Linux/6.11.0-1018-azure

File hashes

Hashes for fastloom-0.4.12-py3-none-any.whl
Algorithm Hash digest
SHA256 23337a60d0f8d97a71f00492aa0a644f3a668d20c19a3c83d5863bcd33b9b00e
MD5 cd1cb33b8a7047c59456dcb0e04ad68e
BLAKE2b-256 2adb6cb92d178ebcbd9488c968ea49b33eb852d5154d6ec8637672de5b1b4dfb

See more details on using hashes here.

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