FastAPI Serve - FastAPI to the Cloud, Batteries Included!
Project description
FastAPI-Serve: FastAPI to the Cloud, Batteries Included! โ๏ธ๐๐
Welcome to fastapi-serve, a framework designed to take the pain out of deploying your local FastAPI applications to the cloud. Built using our open-source framework Jina, fastapi-serve
offers out-of-the-box support for automated deployments on cloud.jina.ai
, our scalable and robust cloud platform. ๐ฉ๏ธ
๐ Features
- ๐ HTTPS: Auto-provisioned DNS and TLS certificates for your app.
- ๐ Protocols: Full compatibility with HTTP, WebSocket, and GraphQL.
- โ๏ธ Scaling: Scale your app manuallly or let it auto-scale based on RPS, CPU, and Memory.
- ๐๏ธ Secrets: Secure handling of secrets and environment variables.
- ๐๏ธ Hardware: Tailor your deployment to suit specific needs.
- ๐ Authorization: Built-in OAuth2.0 token-based security to secure your endpoints.
- ๐พ App Storage: Persistent and secure network storage for your app data.
- ๐ Blob Storage: Built-in support for seamless user file uploads and downloads.
- ๐ Observability: Integrated access to logs, metrics, and traces.
- ๐ฆ Containerization: Effortless containerization of your Python codebase with our integrated registry.
- ๐ ๏ธ Self-Hosting: Export your app for self-hosting with ease, including docker-compose and Kubernetes yamls.
๐ก Getting Started
First, install the fastapi-serve
package using pip:
pip install fastapi-serve
Then, simply use the fastapi-serve
command to deploy your FastAPI application:
fastapi-serve deploy jcloud app:app
You'll get a URL to access your newly deployed application along with the Swagger UI.
๐ Documentation
Dive into understanding fastapi-serve
through our comprehensive documentation and examples:
- ๐ Deploy a Simple FastAPI Application
- โ๏ธ Scaling
- ๐น Auto-scaling endpoints based on CPU usage
- ๐ Serverless (scale-to-zero) deployments based on requests-per-second (Example TBD!)
- ๐งฉ Config & Credentials
- ๐ Leverage Environment Variables for app configuration (Example TBD!)
- ๐๏ธ Use Secrets for Redis-Powered Rate Limiting
- ๐พ Storage
- ๐ Handle File Uploads and Downloads with built-in Blob Storage
- ๐ Network Storage for persisting and securely accessing app data (Example TBD!)
- ๐ Secure Your Endpoints with built-in OAuth2.0 Authorization
- ๐ณ Deployment with Custom Dockerfile (Coming Soon!)
- ๐ ๏ธ Export Your App for Self-Hosting with docker-compose / Kubernetes (Coming Soon!)
๐ฅ๏ธ fastapi-serve
CLI
fastapi-serve
comes with a simple CLI that allows you to deploy your FastAPI applications to the cloud with ease.
Description | Command |
---|---|
Deploy your app locally | fastapi-serve deploy local app:app |
Deploy your app on JCloud | fastapi-serve deploy jcloud app:app |
Update existing app on JCloud | fastapi-serve deploy jcloud app:app --app-id <app-id> |
Get app status on JCloud | fastapi-serve status <app-id> |
List all apps on JCloud | fastapi-serve list |
Remove app on JCloud | fastapi-serve remove <app-id> |
โ๏ธ๐ฐ Configuration and Pricing
Read our Configuration & Pricing Guide to learn more about the various configuration options available to you and the pricing model for fastapi-serve
.
๐ช Support
If you encounter any problems or have questions, feel free to open an issue on the GitHub repository. You can also join our Discord to get help from our community members and the Jina team.
Our Cloud Platform ๐
cloud.jina.ai
is our robust and scalable cloud platform designed to run your FastAPI applications with minimum hassle and maximum efficiency. With features like auto-scaling, integrated observability, and automated containerization, it provides a seamless and worry-free deployment experience.
fastapi-serve
is more than just a deployment tool, it's a bridge that connects your local development environment with our powerful cloud infrastructure. Start using fastapi-serve
today, and experience the joy of effortless deployments! ๐
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
Hashes for fastapi-serve-0.0.3.dev19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1368c85fd95bf23d4dcfe557143e6cb9bc816f8fe71e2dd2a488ca0973f4d3 |
|
MD5 | aaec5dae25d057c3cf61d9c493aa7d01 |
|
BLAKE2b-256 | 69ab20a423d3620de2fa82639063d4a1cf97c88f3503ec149b968dcca63fb62d |