No project description provided
Project description
Mini FastApi Gateway
FastAPI Gateway is a user-friendly microservices gateway built on the FastAPI framework, employing the same syntax for endpoint definitions. Its primary objective is to streamline the process of defining endpoints for microservices within a database and subsequently utilizing them within a gateway.
At present, the gateway exclusively supports the definition of endpoints within a database and their utilization within the gateway. However, future enhancements are planned to enable the extraction of endpoints from files for use within the gateway.
Installation
pip install mini-fastapi-gateway
Usage
Set environment variables
GATEWAY_DB_URL=postgresql://user:password@localhost:5432/db_name
Use GatewayRouter instead of FastApi in your main file
from gateway import GatewayRouter, gateway_crud_router
app = GatewayRouter()
app.include_router(gateway_crud_router)
Make migrations
gateway-migrate
Now you can use your dynamic gateway
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
Close
Hashes for mini_fastapi_gateway-0.0.2b6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91de0fcb1181f8b268d5cfca5ca5a4f44145eb6e1926345bb18b43616f68814e |
|
MD5 | 6d52cb36d52df130759846bcb26f6ded |
|
BLAKE2b-256 | ec1bbf246531728e0463eda2439536b8d5d981b3926cf222a74f739a0a7069a6 |
Close
Hashes for mini_fastapi_gateway-0.0.2b6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8981b593cb4a415d5786603a60a9fbf7ecb3c40e8499cd7756decc990837c3b3 |
|
MD5 | af89bf835d06ee544c466c41ad12fdfa |
|
BLAKE2b-256 | 5d7194744182d70bff3c89aa0c3ad70f9f6c393397fde4515c08f16ad69366dc |