HACS Infrastructure
Infrastructure components for HACS (Healthcare Agent Communication Standard) providing dependency injection, configuration management, service discovery, and monitoring capabilities.
Features
- Dependency Injection Container: Type-safe DI with singleton, transient, and scoped lifetimes
- Configuration Management: Environment-based configuration with validation
- Service Registry & Discovery: Service registration, health monitoring, and load balancing
- Event System: Pub/sub event bus with filtering and async handling
- Lifecycle Management: Graceful startup and shutdown orchestration
- Monitoring: Health checks, metrics collection, and performance monitoring
Installation
pip install hacs-infrastructure
Quick Start
from hacs_infrastructure import Container, Injectable, get_config
# Dependency Injection
@Injectable
class DatabaseService:
def __init__(self):
self.connection = "database_connection"
@Injectable
class UserService:
def __init__(self, db: DatabaseService):
self.db = db
container = Container()
container.register(DatabaseService)
container.register(UserService)
user_service = container.get(UserService)
# Configuration
config = get_config()
print(f"Environment: {config.environment}")
print(f"Debug mode: {config.debug}")
License
MIT License - see LICENSE file for details.
Metadata
Release files for hacs-infrastructure 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hacs_infrastructure-0.4.3.tar.gz | 62.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hacs_infrastructure-0.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 132.5 kB
Release files / hacs_infrastructure-0.4.3.tar.gz
| Download URL | hacs_infrastructure-0.4.3.tar.gz |
|---|---|
| Size | 62.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d148ccdd090f22975dc9eb31b00d1281062dc74a564c45c9d64382c094222e62
|
|
BLAKE2b-256 checksum How to use checksums |
b2aeded8de32e98b917e1bcb03a5a7c61409f1fcf01d5245731798cdd3c1d624
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|
Release files / hacs_infrastructure-0.4.3-py3-none-any.whl
| Download URL | hacs_infrastructure-0.4.3-py3-none-any.whl |
|---|---|
| Size | 69.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
737dc45e28ca3a3979d3102b0f36b0e3f337ca3fd4f0cc4f9720d1f7d0b67552
|
|
BLAKE2b-256 checksum How to use checksums |
d6d7a8955f51b39574da51a94bfcc74b4025f53477fb76ef556b346be776b8fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|
Security for hacs-infrastructure 0.4.3
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.