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.1.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.1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microservice_api-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bd14d66b9b1cfd3870b323f87e8478364653fb84c99575823e77b084e5fd59be
MD5 255b517cd383d135833e89bf17b69228
BLAKE2b-256 ef4365609e16f2f666dd1aef6eda44e4707fee80f8192657445ef1a8249aeb2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microservice_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1a0a46759d72b9c93e717c6d68cacaa11eeaabb7c4d7a8abc4d3b0e6256b26
MD5 1fcc5b1a920f53b9c29785685c4147f4
BLAKE2b-256 aa32bf2bcf11e533b60c17bad54c2631190aab42ad0b6d1ab41a24bd5083eeaf

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