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.2b5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d03fe8ac4ae0d164abbf4c8e5fe47c5c167058c41996f08b8ea8da963f0c2711 |
|
MD5 | ec0202813f4b244d2a88f4b4616cf0b4 |
|
BLAKE2b-256 | 475064df54b03e42775bc3d2d69de6f47212aefa679cddce6d2a0dd7dca7bdeb |
Close
Hashes for mini_fastapi_gateway-0.0.2b5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984c8f3507ae730d4f43402d99d66e234dae852b19426b60e28788ad09b862cd |
|
MD5 | 1914c1b9255f1a0ff22aaa074bcfc5b8 |
|
BLAKE2b-256 | fef90e18a68b69dfe228913a6d8f53bd026b20525df6ebaf096a2259eb4e9236 |