Skip to main content

Alata

A Laravel-inspired ASGI Python Framework built on FastAPI and SQLAlchemy.

Quick Start

uvx --from alata alata-new new my-project
cd my-project
cp .env.example .env
./alata setup
source .venv/bin/activate
./alata serve

The scaffolder requires a new or empty destination directory. Use alata-new new . to scaffold into an empty current directory.

Without activating the environment, use uv run ./alata <command>, for example uv run ./alata serve.

Every ./alata command also works with python alata, for example python alata serve, using your environment's Python from the project root.

Use ./alata test, ./alata lint, and ./alata format for everyday development. Pass pytest or Ruff arguments directly, for example ./alata test -k signup -q or ./alata format --check. Run ./alata list for all commands.

Features

  • Service Container — Laravel-style IoC with dependency injection
  • Eloquent-inspired ORM — Chainable queries, relationships, eager loading, soft deletes
  • Service Providers — Modular boot lifecycle (register → boot → boot_http)
  • Config Repository — Centralized config() helper with dot-notation access
  • Queue System — Taskiq-powered background jobs with Redis/SQS brokers
  • Schema Builder — Laravel-style migrations with dialect-agnostic DDL
  • Event Dispatcher — Pub/Sub event system with listeners and subscribers
  • Cache — Redis-backed caching with Cache.remember() and tag support
  • Logging — Multi-channel logging (console, file, Slack, Sentry)
  • Console Kernel — Artisan-like CLI with scheduled tasks

SQLAlchemy at the core

Alata's Eloquent-style layer is deliberately built on top of SQLAlchemy 2.0 — SQLAlchemy Core handles all SQL compilation, quoting, dialects, and pooling; the Alata layer supplies the Laravel-flavored API. Two consequences:

  • The escape hatch is first-class, not a workaround. Every Model is a real SQLAlchemy declarative model and alata.db.get_session() / get_async_session() return real sessions — for anything the query builder doesn't cover, drop to plain SQLAlchemy 2.0 (session.execute(select(User).where(...))). Caveat: global scopes and soft-delete filters apply only through the Alata query builder, not to raw SQLAlchemy queries.
  • SQLAlchemy remains available directly. Use the fluent API for common queries, including JSON predicates and full-text search, and SQLAlchemy expressions for specialized database operations.

PostgreSQL, MySQL, and SQLite share the database API. Queries, models, and migrations use SQLAlchemy and database-specific schema grammars. PostgreSQL is the scaffold's default connection. MySQL and SQLite drivers are available through alata[mysql] and alata[sqlite].

Migration commands are serialized on all three databases. PostgreSQL and SQLite apply each migration transactionally; MySQL DDL implicitly commits, so failure recovery uses the migration's down() method. SQLite rebuilds tables automatically for column and constraint changes.

Architecture

app/
├── http/controllers/    # Request handlers
├── models/              # Eloquent-style ORM models
├── services/            # Business logic
├── tasks/               # Background queue jobs
├── providers/           # Application service providers
├── events/              # Event payload classes
├── exceptions/          # Exception handler
└── console/             # CLI commands & scheduler
config/                  # Declarative configuration (plain dicts)
routes/                  # API route definitions
bootstrap/               # App factory & provider registration
database/migrations/     # Schema migrations

Significant design decisions are recorded in docs/adr/.

License

MIT

Metadata

Release files for alata 0.12.0.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 alata 0.12.0.1
File Size Uploaded Provenance Actions
alata-0.12.0.1.tar.gz 778.8 kB With provenance Details for alata-0.12.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alata 0.12.0.1
File Interpreter ABI Platform Actions
alata-0.12.0.1-py3-none-any.whl Python 3 none any Details for alata-0.12.0.1-py3-none-any.whl

Total release size: 1.2 MB

Release files / alata-0.12.0.1.tar.gz

Download URL alata-0.12.0.1.tar.gz
Size 778.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5293761f05035ae77ebb861da53164eab82260d9660d6aa4adb825acd56f9b12
BLAKE2b-256 checksum
How to use checksums
e66403b5992b45320dfc79c1a56cdb3d016e1ca4d4564ad5c8cebfa580e2d8fb
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 Oct 30, 2026.

Transparency log

Release files / alata-0.12.0.1-py3-none-any.whl

Download URL alata-0.12.0.1-py3-none-any.whl
Size 424.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8e511ff3ef0ed5465831c95a72a3624e6fc5a5d92ab5e28cb7839bd4bc8e380
BLAKE2b-256 checksum
How to use checksums
e06cb3d5d3c9a7bbeb743b0768fe5371046142e32481d37e78befc263911f9c6
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 Oct 30, 2026.

Transparency log

Security for alata 0.12.0.1

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 alata-0.12.0.1.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 Oct 30, 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.

Release history Release notifications | RSS feed

This release

0.12.0.1 This release

2 release files Full provenance

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