Skip to main content

Infrastructure as Constraints — write it once, scale it with a word.

Project description

Skaal

Infrastructure as Constraints — write your app once, scale it with a word.

Skaal lets you describe your application's storage and compute needs as constraints, then automatically selects the right infrastructure backend (local SQLite, Redis, PostgreSQL, AWS DynamoDB, GCP Firestore, …) that satisfies those constraints for your target environment.

Quickstart

pip install skaal
from skaal import App, Module, storage, compute

class TodoModule(Module):
    @storage(reads_per_sec=100, writes_per_sec=50)
    async def todos(self): ...

    @compute(max_replicas=4)
    async def handle_create(self, item: dict): ...

app = App(modules=[TodoModule()])
# Solve constraints and generate an infrastructure plan
skaal plan --app myapp:app --catalog catalogs/local.toml

# Run locally
skaal run --app myapp:app

Cloud Deployment

# Deploy to AWS
pip install "skaal[aws]"
skaal deploy --app myapp:app --target aws --catalog catalogs/aws.toml

# Deploy to GCP
pip install "skaal[gcp]"
skaal deploy --app myapp:app --target gcp --catalog catalogs/gcp.toml

How It Works

  1. Annotate your modules with resource constraints (@storage, @compute, @scale, …)
  2. Plan — the Z3 SMT solver picks the cheapest backend satisfying all constraints from your catalog
  3. Build — Skaal generates Dockerfiles, Pulumi programs, and handler entrypoints
  4. Deploy — push to your cloud or run locally with a single command

Installation

Extra Installs
skaal Core (local SQLite + Redis)
skaal[aws] + boto3, Pulumi AWS, asyncpg
skaal[gcp] + google-cloud-firestore/storage, Cloud SQL connector, Pulumi GCP
skaal[examples] + Dash, FastAPI, dash-bootstrap-components

License

GPL-3.0-or-later

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

skaal-0.1.0.tar.gz (131.7 kB view details)

Uploaded Source

Built Distribution

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

skaal-0.1.0-py3-none-any.whl (136.9 kB view details)

Uploaded Python 3

File details

Details for the file skaal-0.1.0.tar.gz.

File metadata

  • Download URL: skaal-0.1.0.tar.gz
  • Upload date:
  • Size: 131.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skaal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59048bf07e9e5cd06b404ab81bdc6c2c11bb777dd06906f30915c10ccee2165f
MD5 ebf2e4921a99d79888f745d94486f242
BLAKE2b-256 1644d6112488c7bcfb814bfa523bbbe2aec74a3252211021f5f0fc09c42ca49e

See more details on using hashes here.

Provenance

The following attestation bundles were made for skaal-0.1.0.tar.gz:

Publisher: release.yml on Elouen-ginat/Skaal

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

File details

Details for the file skaal-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: skaal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 136.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skaal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4940095487e0cd5f0504036adf7220fe9c846718c74d34ab3a64124e08345c14
MD5 6c1eb8a8617b6776ade8c91683545275
BLAKE2b-256 6483b0128d278a176dfb34cee77dfbbee160a775dc501214ddda7fc5c14c1b5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for skaal-0.1.0-py3-none-any.whl:

Publisher: release.yml on Elouen-ginat/Skaal

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