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.2b3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30a4be66c915d8c3f534bb4d27e54190c3723c993b36c3f35e4b4ff9cfc4070a |
|
MD5 | 770c858d233b211c737bbd496a63150d |
|
BLAKE2b-256 | cd86a170cfe7afc5bb2840f3c89e53aac8b7b1c53ef97039b5e75cd82c847f52 |
Close
Hashes for mini_fastapi_gateway-0.0.2b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 069085ede0e0b5f8c77b12e5ce5b0377453dd519163e8d359385463477af5d23 |
|
MD5 | 0ed02efd4d46f10462fa653ff32f3329 |
|
BLAKE2b-256 | 5e3dd40a668aca7f1360c1258f2345de602a16a1183ba6ef6740d4c78f991aa7 |