Skip to main content

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

Project description

py-microservice

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 py-microservice

Quickstart

uvicorn py_microservice.main:app --reload

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.2.tar.gz (24.9 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.2-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microservice_api-0.1.2.tar.gz
  • Upload date:
  • Size: 24.9 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.2.tar.gz
Algorithm Hash digest
SHA256 5ed3d476e71b799481132998e18e238c4882e38caa1b9b0a4aeec83eeca8d57e
MD5 eb75cabda2b840d555a5f7ddcaeca4ca
BLAKE2b-256 fdf04e7ff32b21bc4aa6c34a48374d36293a059a48521b3ba07789ad0820af92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microservice_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c53cad013f04ac5ed0fc3e0b6182582793e9ec4cd192d9546cc2f56a11d8d76c
MD5 4b3fe81a56a868162cc49388e180bdec
BLAKE2b-256 7432673017a555efc2ad28fc48541488c24abb5c7f926570f3e302bbfcef2c2b

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