Skip to main content

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

Metadata

Release files for microservice-api 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for microservice-api 0.3.4
File Size Uploaded Provenance Actions
microservice_api-0.3.4.tar.gz 28.4 kB Without provenance Details for microservice_api-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for microservice-api 0.3.4
File Interpreter ABI Platform Actions
microservice_api-0.3.4-py3-none-any.whl Python 3 none any Details for microservice_api-0.3.4-py3-none-any.whl

Total release size: 67.6 kB

Release files / microservice_api-0.3.4.tar.gz

Download URL microservice_api-0.3.4.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3dba3596ad3157de0ba0de42ef7122e88c573d748d5826ebc183b16c9339c455
BLAKE2b-256 checksum
How to use checksums
fd8b84105f39b1d71cd2a68463933e3132c0abf267ae76c2794f2da129117db7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / microservice_api-0.3.4-py3-none-any.whl

Download URL microservice_api-0.3.4-py3-none-any.whl
Size 39.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
246c3ba1d72328e2b54d00d4c5f589432b2699c0f9710c395a701368e5a828dd
BLAKE2b-256 checksum
How to use checksums
8a989057136ef7557a9f19494365265e7e96f829e50c09589b0334efbcc65226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Security for microservice-api 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page