Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mini_fastapi_gateway-0.0.2b10.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mini_fastapi_gateway-0.0.2b10-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file mini_fastapi_gateway-0.0.2b10.tar.gz.

File metadata

  • Download URL: mini_fastapi_gateway-0.0.2b10.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for mini_fastapi_gateway-0.0.2b10.tar.gz
Algorithm Hash digest
SHA256 9ca3e730351707a76b178bc5213f87343b39b351e6f03789fc34ad6544f45fab
MD5 0f7c3c8cee1319afc86a680e360d5808
BLAKE2b-256 6435045d6de01292a5a0a6097f0824ce29aa709604c10d72739b8f25e29e144d

See more details on using hashes here.

File details

Details for the file mini_fastapi_gateway-0.0.2b10-py3-none-any.whl.

File metadata

File hashes

Hashes for mini_fastapi_gateway-0.0.2b10-py3-none-any.whl
Algorithm Hash digest
SHA256 cf74ce5cbab06b061d6c57b9b334192d232a7e9b726a77e1e6de2be5bbfe8d45
MD5 13a64b55a2e7d152bee6604ab6b3613a
BLAKE2b-256 1ee0e969739f4b7f0c6a403e292a0fb48a279d01daa452644873735536538369

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page