Socket
Socket
Sign inDemoInstall

launchflow

Package Overview
Dependencies
15
Maintainers
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    launchflow

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.


Maintainers
2

Readme

LaunchFlow Logo

🚀 Python-native infrastructure for the cloud 🚀⚒️

📖 Docs   |   ⚡ Quickstart   |   👋 Slack

LaunchFlow's Python SDK allows you to create and connect to cloud infrastructure in your own account on GCP, AWS, and Azure.

🤔 What is LaunchFlow?

LaunchFlow enables you to instantly provision cloud resources and deploy your python backend to the cloud of your choice (GCP, AWS, and Azure) all from python code.

⚙️ Installation

pip install launchflow

📖 Examples

GCP Cloud Storage Bucket

  1. Define a GCS Bucket
import launchflow as lf

bucket = lf.gcp.GCSBucket("my-bucket")
  1. Create the GCS bucket in your project
launchflow create
  1. Use the Cloud SQL instance in your application
from infra import bucket

bucket.blob("my-file").upload_from_filename("my-file")

GCP Cloud SQL

  1. Define a Cloud SQL instance
import launchflow as lf

db = lf.gcp.CloudSQLPostgres("my-pg-db")
  1. Create the Cloud SQL instance in your project
launchflow create
  1. 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()

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc