Python-native infrastructure for the cloud: LaunchFlow provides a Python SDK that automatically creates and connects to production-ready infrastructure (such as Postgres, Redis, etc..) in your own cloud account. LaunchFlow completely removes the need for DevOps allowing you to focus on your application logic.
Project description
📖 Docs | ⚡ Quickstart | 👋 Slack
LaunchFlow is an open source deployment tool that makes it easy to launch applications to Serverless, VMs, & Kubernetes on AWS and GCP (Azure coming soon).
Use the Python SDK to define your infrastructure in code, then run lf deploy
to deploy everything to a dedicated environment in your cloud account.
Fully customizable but configured by default - no messy YAML required.
⚙️ Installation
pip install launchflow
📖 Examples
GCP Cloud Storage Bucket
- Define a GCS Bucket
import launchflow as lf
bucket = lf.gcp.GCSBucket("my-bucket")
- Create the GCS bucket in your project
launchflow create
- Use the Cloud SQL instance in your application
from infra import bucket
bucket.blob("my-file").upload_from_filename("my-file")
GCP Cloud SQL
- Define a Cloud SQL instance
import launchflow as lf
db = lf.gcp.CloudSQLPostgres("my-pg-db")
- Create the Cloud SQL instance in your project
launchflow create
- Use the Cloud SQL instance in your application
from infra import db
engine = db.sqlalchemy_engine()
FastAPI Integration
Built-in dependencies can easily be injected into your FastAPI application.
from fastapi import FastAPI, Depends
import launchflow
from sqlalchemy import text
db = launchflow.gcp.CloudSQLPostgres("my-pg-db")
engine = db.sqlalchemy_engine()
get_db = launchflow.fastapi.sqlalchemy(engine)
app = FastAPI()
@app.get("/")
def read_root(db: Session = Depends(get_db)):
return db.execute(text("SELECT 1")).scalar_one_or_none()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for launchflow-0.4.7.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dcd300316b9bf24f410b19ce679e4d9fb91575f3db658f4827b89827df2fbe1 |
|
MD5 | 6d388e6ac8d5f08e6f89af672f70e46c |
|
BLAKE2b-256 | e0ecc3d6d5cabccc3bce4eeedec19fef786b21b38decc1ad16f84bbce5c2c4bc |