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.1.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.1-py3-none-any.whl (70.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hacs_infrastructure-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6468740e8f952f41d54365ebac1e73d2ea23efad10c5b8fd4b77da0b7f5c0045
MD5 a5580678bf4eb9cd76f20faa14393220
BLAKE2b-256 bda746a10c9a232b9f03c43635daad27e77cf40d0fddf493ab5f6be3888e2fee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hacs_infrastructure-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e21e6fa72bb7f0b329aa37ee38e79fbfa1084c467106d1fe5dea611da7abfde5
MD5 3c7b3b0c1ffed1fc991c904fd7851e1f
BLAKE2b-256 0d343f5739f221954138770fd899e43d5284d13d4a840a7ed37b060b4614467a

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