Metadata-Version: 2.1
Name: mini-fastapi-gateway
Version: 0.0.2b4
Summary: 
Author: aizhigito
Author-email: 82809523+aizhigito@users.noreply.github.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: aiohttp (>=3.8.5,<4.0.0)
Requires-Dist: alembic (>=1.12.0,<2.0.0)
Requires-Dist: cachetools (>=5.3.1,<6.0.0)
Requires-Dist: fastapi (>=0.103.1,<0.104.0)
Requires-Dist: pydantic-settings (>=2.0.3,<3.0.0)
Requires-Dist: sqlalchemy (>=2.0.21,<3.0.0)
Requires-Dist: ujson (>=5.8.0,<6.0.0)
Description-Content-Type: text/markdown

# 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

```bash
pip install mini-fastapi-gateway
```

## Usage

### Set environment variables

```TEXT
GATEWAY_DB_URL=postgresql://user:password@localhost:5432/db_name
```

### Use GatewayRouter instead of FastApi in your main file

```python
from gateway import GatewayRouter, gateway_crud_router

app = GatewayRouter()

app.include_router(gateway_crud_router)

```

### Make migrations

```bash
gateway-migrate
```

### Now you can use your dynamic gateway

