pyvider 2024-11-25
Renamed tfppf to pyvider with custom logging system and new tooling scripts
112 files · 5,796+ · 242-

Renamed all source from tfppf to pyvider

5 files changed
  • __init__.py Renamed module root from tfppf to pyvider
  • __main__.py Updated entry point imports from tfppf to pyvider
  • provider.py Updated provider imports to pyvider namespace
  • main.py Updated all imports from tfppf to pyvider
  • build_provider.py Updated PyInstaller hidden imports and data paths to reference pyvider
  • Renamed all source from src/tfppf/ to src/pyvider/ including data_sources, functions, proto, resources, schema, tfplugin6, tftypes, types, and utils modules decouple behavioral
    3 files
    • __init__.py
    • __main__.py
    • provider.py
  • Updated all imports in main.py and scripts/build_provider.py from tfppf to pyvider decouple internal
    2 files
    • main.py
    • build_provider.py

Added custom logging system with TRACE-level support

3 files changed
  • formatters.py Custom log formatters for pyvider output
  • handlers.py Custom log handlers
  • manager.py Centralized log setup with configure_logging() function
  • Added custom logging system with formatters, handlers, and centralized configure_logging() function instantiate behavioral
    3 files
    • formatters.py
    • handlers.py
    • manager.py
  • Replaced logging.basicConfig() in main.py with new configure_logging() call and added TRACE-level support instantiate behavioral
    1 file
    • main.py

Added tfplugin6 protocol type definitions and tftypes module

2 files changed
  • tfplugin6 Terraform plugin protocol v6 type definitions including client capabilities, data source, deferred, diagnostic, dynamic value, function, provider, resource, schema, and state types
  • tftypes Terraform type system modeling with attribute_path, diff, list, map, object, primitive, set, tuple, type, value, and serialization modules
  • Added tfplugin6 module with protocol type definitions for client capabilities, data sources, diagnostics, dynamic values, functions, provider, resources, schema, and state instantiate behavioral
    5 files
    • __init__.py
    • client_capabilities.py
    • data_source.py
    • dynamic_value.py
    • schema.py
  • Added tftypes module for Terraform type system modeling with attribute path, diff, list, map, object, primitive, set, tuple, and value types instantiate behavioral
    4 files
    • attribute_path.py
    • value.py
    • value_json.py
    • value_msgpack.py

Created file bundle script and new tooling

3 files changed
  • bundle_files.py Utility to bundle project files into single text file for context sharing with .gitignore support and UTF-8 filtering
  • extract_go_defs.py Go source definition parser
  • generate_structure.py Project structure generation utility
  • Created scripts/bundle_files.py for bundling project files into a single text file with .gitignore support and UTF-8 filtering instantiate internal
    1 file
    • bundle_files.py
  • Added scripts for Go definition extraction and project structure generation instantiate internal
    2 files
    • extract_go_defs.py
    • generate_structure.py

Improved provider entry point with socket verification

1 file changed
  • __main__.py Added socket existence verification and improved error messages
  • Added socket existence verification after creation with proper error on failure harden internal
    1 file
    • __main__.py
  • Improved error messages for protocol and lifecycle errors and simplified server termination flow harden internal
    1 file
    • __main__.py

Added BDD test feature files for tftypes

3 files changed
  • tftypes_attribute_path_feature_1.feature BDD scenarios for AttributePath feature set 1
  • tftypes_attribute_path_feature_1_steps.py Step definitions for AttributePath BDD tests
  • toconvert Feature files pending conversion for list, object, primitive, tuple, and type tests
  • Added BDD test features for attribute path with step definitions and numerous pending feature files for list, object, primitive, tuple, and type qualify internal
    3 files
    • tftypes_attribute_path_feature_1.feature
    • tftypes_attribute_path_feature_1_steps.py
    • toconvert