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.2b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 616413bb31073ad105a7a4a0ee1b4a8d9703d8740a4d33f7b36ce72b173c7cc5 |
|
MD5 | f53d5eb36a7f535b71827ad0aae39ae6 |
|
BLAKE2b-256 | 4501e18b7f7d5348d9ab700f3355c50c4392d2a1659c4ace82c9c9fb02123986 |
Close
Hashes for mini_fastapi_gateway-0.0.2b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4518b6d12130c4d853b4bc78122fc35b297c19cd15101bab0f42553033b2e09 |
|
MD5 | 4f20fa2dcd10ecac2b3d009104470e2a |
|
BLAKE2b-256 | bd7f3cb414c41c5d94db69fbe8e27638b59fa20edcb70981f3d9ff153306c2ff |