pyvider 2024-12-08
Built comprehensive component registry system with discovery and decorators
131 files · 3,375+ · 1,599-

Created comprehensive registry system with discovery and decorators

7 files changed
  • __init__.py Registry package initialization with exports
  • keystone.py Central registry managing all component registrations (150 lines)
  • decorators.py Decorator-based component registration with type inference (254 lines)
  • discovery.py Automatic component discovery from filesystem (115 lines)
  • linking.py Component dependency resolution and linking (166 lines)
  • registry_metadata.py Metadata storage for registered components (120 lines)
  • debugging.py Registry introspection and debugging utilities (174 lines)
  • Created keystone registry managing all component registrations with decorator-based registration and type inference instantiate behavioral
    2 files
    • keystone.py
    • decorators.py
  • Added automatic component discovery from filesystem and dependency resolution with linking instantiate behavioral
    2 files
    • discovery.py
    • linking.py
  • Created registry metadata storage and debugging/introspection utilities instantiate internal
    2 files
    • registry_metadata.py
    • debugging.py

Restored core interfaces for all component types

7 files changed
  • __init__.py Interfaces package
  • data_source.py Data source interface (20 lines)
  • diagnostics.py Diagnostics interface (22 lines)
  • function.py Function interface (32 lines)
  • provider.py Provider interface (66 lines)
  • resource.py Resource interface (65 lines)
  • schema.py Schema interface (46 lines)
  • Restored core interfaces for data source, diagnostics, function, provider, resource, and schema instantiate behavioral
    6 files
    • data_source.py
    • diagnostics.py
    • function.py
    • provider.py
    • resource.py
    • schema.py

Added top-level component directories and type definitions

9 files changed
  • __init__.py Top-level data sources package
  • data_source_zipcode.py Zipcode data source
  • __init__.py Top-level functions package
  • function_random_complex_object.py Random complex object function
  • function_verify_zipcode.py Zipcode verification function
  • __init__.py Top-level resources package
  • resource_file_content.py File content resource
  • type_definitions.py Core type definitions
  • __init__.py Functions module initialization
  • Created top-level component directories for data sources, functions, and resources with implementations instantiate internal
    4 files
    • data_source_zipcode.py
    • function_random_complex_object.py
    • function_verify_zipcode.py
    • resource_file_content.py
  • Added core type definitions and functions module initialization instantiate internal
    2 files
    • type_definitions.py
    • __init__.py

Reorganized test infrastructure and added registry tests

11 files changed
  • test_registry.py Registry unit tests
  • test_registry_integration.py Registry integration tests
  • test_mock_discovery.py Mock discovery tests
  • test_data_source.py Data source interface tests
  • test_function.py Function interface tests
  • test_provider.py Provider interface tests
  • test_resource.py Resource interface tests
  • test_schema.py Schema interface tests
  • mock_data_source.py Mock data source
  • mock_function.py Mock function
  • mock_resource_file.py Mock file resource
  • Added registry unit and integration tests plus mock discovery tests qualify internal
    3 files
    • test_registry.py
    • test_registry_integration.py
    • test_mock_discovery.py
  • Created interface tests and mock implementations for data sources, functions, providers, resources, and schema qualify internal
    4 files
    • interfaces
    • data_sources
    • functions
    • resources