Show HN: Python packages for FastAPI apps – auth, logging, config, LLM, more

Posted by DanielGarza 7 hours ago

Counter4Comment1OpenOriginal

Comments

Comment by DanielGarza 7 hours ago

Hey HN, I'm Daniel from Netrun Systems. We extracted these packages while building internal enterprise platforms and decided to open source them.

*What's included (all MIT licensed):*

- netrun-auth: JWT + Casbin RBAC + multi-tenant isolation - netrun-logging: Structlog backend with auto-redaction of sensitive fields - netrun-config: Azure Key Vault integration with TTL caching - netrun-errors: Exception hierarchy mapped to HTTP status codes - netrun-cors: OWASP-compliant middleware - netrun-db-pool: Async SQLAlchemy connection pooling - netrun-llm: Multi-provider LLM orchestration (Azure OpenAI, Ollama, Claude) - netrun-env: Schema-based environment validation - netrun-pytest-fixtures: Unified testing fixtures - netrun-ratelimit: Token bucket rate limiting

*Design philosophy:* - Soft dependency pattern: each package works standalone but integrates when others are installed - Zero required config: sensible defaults, override what you need - Async-first: built for FastAPI and modern Python

*Quick install:* pip install netrun-auth netrun-logging netrun-config

Happy to answer questions about the implementation choices. The LLM package in particular has some interesting patterns for provider fallback and cost optimization. https://pypi.org/user/NetrunSystems/