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.2b4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1632c901b913c217d7f83e098456340b79f3d6a5252bdaba06484d6ed16e866 |
|
MD5 | d5c7d3042d1af178b0f396717c83a3dd |
|
BLAKE2b-256 | fa75cad7410329707403ed1456878085ff13d51381b5b37646f4fdd4a910662d |
Close
Hashes for mini_fastapi_gateway-0.0.2b4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c71343c660c25620330e181871fed745925d8fa910465f7f5546337634e2ac4 |
|
MD5 | 9256ab3c7835bdd0deec8f98a1d8f72d |
|
BLAKE2b-256 | 44a988c8b1fe09bb4690a3ee0938669b24d1d0e6d5905d2ea988b4992fd01bbb |