Building 10 Python Packages for Enterprise FastAPI Apps: What I Learned
dev.to·2d·
Discuss: DEV
FastAPI
Preview
Report Post

After a year of building enterprise platforms, I kept solving the same problems:

  • How do I handle JWT auth with RBAC that actually scales?
  • Why does every project need its own logging configuration?
  • How do I manage secrets across Azure Key Vault and local dev?
  • What’s the cleanest way to handle database connection pooling?

So I extracted the patterns into 10 reusable packages and open sourced them.

The Netrun Service Library

All packages are MIT licensed and available on PyPI:

pip install netrun-auth netrun-logging netrun-config

The Foundation Layer

netrun-logging - Structured logging that doesn’t suck

Built on Structlog for ~2.9x performance improvement over stdlib. The killer feature? Automatic redaction of sensitive fields:

from netrun_logging ...

Similar Posts

Loading similar posts...