Skip to main content

Infrastructure components for HACS (Healthcare Agent Communication Standard) - DI container, configuration, and service management

Project description

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.

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

hacs_infrastructure-0.4.3.tar.gz (62.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hacs_infrastructure-0.4.3-py3-none-any.whl (69.7 kB view details)

Uploaded Python 3

File details

Details for the file hacs_infrastructure-0.4.3.tar.gz.

File metadata

  • Download URL: hacs_infrastructure-0.4.3.tar.gz
  • Upload date:
  • Size: 62.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.6

File hashes

Hashes for hacs_infrastructure-0.4.3.tar.gz
Algorithm Hash digest
SHA256 d148ccdd090f22975dc9eb31b00d1281062dc74a564c45c9d64382c094222e62
MD5 4ae32b402bd74467d135165cd8046113
BLAKE2b-256 b2aeded8de32e98b917e1bcb03a5a7c61409f1fcf01d5245731798cdd3c1d624

See more details on using hashes here.

File details

Details for the file hacs_infrastructure-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hacs_infrastructure-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 737dc45e28ca3a3979d3102b0f36b0e3f337ca3fd4f0cc4f9720d1f7d0b67552
MD5 a88eaf2c7276774e58a7c20cf61d0bcc
BLAKE2b-256 d6d7a8955f51b39574da51a94bfcc74b4025f53477fb76ef556b346be776b8fe

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