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

Uploaded Python 3

File details

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

File metadata

  • Download URL: microservice_api-0.1.6.tar.gz
  • Upload date:
  • Size: 28.1 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.6.tar.gz
Algorithm Hash digest
SHA256 4d1b6f983ab5db357def40ddb427b3b033a69f5243883680cd4205911f96cfe3
MD5 4dc04fa91c3f011fb4253edf47869057
BLAKE2b-256 33c0e7a6bc8b007aff2e5f02255ac829049f90ee5d767329d6d1783f0d6f0a01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microservice_api-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 942698b1ee363dd9ab484a7c24be607287955f0fc32013effb67ae6f0c0268a8
MD5 b38a70486e11aa2f2bb82235f722638d
BLAKE2b-256 bc9eabbd22a8d05e095fef448ac16a4ec5c6968dbfdba6ff785d6a2c402dcff9

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