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.5.tar.gz (25.7 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.5-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microservice_api-0.1.5.tar.gz
  • Upload date:
  • Size: 25.7 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.5.tar.gz
Algorithm Hash digest
SHA256 7b014b924552d67389eaeb7b7668c42716743683a90fc7d5ff0233ab31d4355d
MD5 568f5b5f106254c6d8125fb95429c568
BLAKE2b-256 c20468f2117d5d98342e9b42032b6c14076b645e680950aaac39ce39c1b169f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microservice_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e5a4ac52aa06d025fdd5a986a8a8b7ad354fa3285ab8bb5e1f433851dd01b56d
MD5 2a131d7e1a41add8fd8abdcd5b21a1f8
BLAKE2b-256 f6413ac9b22aa6307b19690a9082bb3758175197dfd62e1ebeec90dc417e5eb2

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