Skip to main content

Lightweight FastAPI microservice for identity and access management, built with asyncpg and Tortoise ORM

Project description

microservice-api

Lightweight FastAPI microservice for identity and access management, built with asyncpg and Tortoise ORM.

Features

  • FastAPI endpoints for auth, users, groups, and permissions
  • Async Postgres stack with Tortoise ORM and asyncpg
  • JWT-based auth helpers and middleware
  • Background worker scaffolding

Installation

pip install microservice-api

Quickstart

uvicorn microservice.main:create_app --factory --reload

Example

Run the minimal example (no DB/auth/worker) from the repo:

make install
make run

Or run it directly:

./.venv/bin/python examples/run.py

Configuration

Set environment variables in a .env file or your shell. Common values include database connection info and JWT secrets.

Development

pip install -e .[dev]
pytest

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

microservice_api-0.3.2.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

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

microservice_api-0.3.2-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file microservice_api-0.3.2.tar.gz.

File metadata

  • Download URL: microservice_api-0.3.2.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for microservice_api-0.3.2.tar.gz
Algorithm Hash digest
SHA256 035390bae52540f84e1395e74a1360f70d2c006360439f00b0c2f4ee8b0814c4
MD5 17724dc0fa5edeee22a60124f1f281dc
BLAKE2b-256 c2d412182ce852f61bd84d42a2f213016dc7580f20040fb2412b872b7fbb485b

See more details on using hashes here.

File details

Details for the file microservice_api-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for microservice_api-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f02ab4bdaaeec7b0df9798f4cdddcadce78b6a809ff8ea1f650f9b377944383f
MD5 732063610a44e7cb279465cc6e86c0aa
BLAKE2b-256 3ffd4c24c570e5716a5da4581ad1611d86158737b1e5b3aef115dbde4d8cbf2b

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