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.1.7.tar.gz (28.2 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.1.7-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microservice_api-0.1.7.tar.gz
  • Upload date:
  • Size: 28.2 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.1.7.tar.gz
Algorithm Hash digest
SHA256 fe369fc940b803d9cc25db4e386c87f0345d148d105d1c6f19787e494cad504b
MD5 c50d990bb5424b25cb981d926af13f99
BLAKE2b-256 0745e251130aa00bc7b5dc89dec02d2832521c88c917b6791c13106a01304a0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microservice_api-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f4e7fcc193f98c1c12902850c5f7538c8e50e1263c5871f0f0d85086048e93da
MD5 63d718070363a51c88abd8afc52f2024
BLAKE2b-256 1ac80718243c04482854bbc4788837ab0ea82e406e8f8e21cb80f1e2ba2e796c

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