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.3.3.tar.gz (28.4 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.3.3-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microservice_api-0.3.3.tar.gz
  • Upload date:
  • Size: 28.4 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.3.3.tar.gz
Algorithm Hash digest
SHA256 515fe8cca926dcb83e17ba53f7ff13c9a050b48e0f8c0a9155648711f6efa0b1
MD5 7ffe418eee340334b939378f95bfa621
BLAKE2b-256 fb320f8ba01f7d0ee5dd77adbfda4465be9e9bd4e453d1f6e8e2415793b52ced

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for microservice_api-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa4c1f8bf928127443ae3a5c984c707f5c16912a4308b794ef04cf6ea319cb95
MD5 db288a8620963e90b48aba40754ba699
BLAKE2b-256 cb5f63366b207e073be5deb588a3bdced718f2a79de782db3f28ac6e86ca32e9

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