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.3.0.tar.gz (63.2 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.3.0-py3-none-any.whl (70.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hacs_infrastructure-0.3.0.tar.gz
  • Upload date:
  • Size: 63.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for hacs_infrastructure-0.3.0.tar.gz
Algorithm Hash digest
SHA256 40fa367e8d0ae17aa40718f4b50a5ce12cbada7e764ef5d962c3ceef4d8a1e15
MD5 c2d6e08563fb1164d7cdf3cc6a517b0b
BLAKE2b-256 1e983cf010de33ffe0a24a29d7526f68668289f726657514ea5a0e6cabeafd20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hacs_infrastructure-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4f5eee205ab0c6d7d29ea3e578b48590a1af78b5765e7af0b6644a8389756ce
MD5 29d45e95017b2a29e7b2e5cc5afd8073
BLAKE2b-256 0948f4ad698e4a10e6eb395795c9c7ccc5a4d093c6270e87373d130ffc34e84e

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