pyvider 2025-01-04
Simplified tftypes base class significantly
85 files · 1,758+ · 2,694-

tftypes Simplification

79 files changed
  • __init__.py Updated __init__.py (+13/-17 lines)
  • base.py Updated base.py (+16/-165 lines)
  • list.py Updated list.py (+2/-54 lines)
  • map.py Updated map.py (+49/-45 lines)
  • set.py Removed set.py (-10 lines)
  • immutability.py Removed immutability.py (-49 lines)
  • bool.py Removed bool.py (-12 lines)
  • number.py Removed number.py (-13 lines)
  • string.py Removed string.py (-20 lines)
  • __init__.py Updated __init__.py (+3/-1 lines)
  • dynamic.py Added dynamic.py (+67 lines)
  • object.py Updated object.py (+4/-62 lines)
  • tuple.py Removed tuple.py (-12 lines)
  • tftypes_test.py Removed tftypes_test.py (-60 lines)
  • type.py Updated type.py (+1/-5 lines)
  • test_tftypes_collections_map.py Removed test_tftypes_collections_map.py (-20 lines)
  • test_tftypes_collections_set.py Removed test_tftypes_collections_set.py (-16 lines)
  • file_content.py Removed file_content.py (-1 lines)
  • chatgpt-code-review-2025-01-05-1110.md Added chatgpt-code-review-2025-01-05-1110.md (+198 lines)
  • docs-outline-01-2025-01-03.md Added docs-outline-01-2025-01-03.md (+207 lines)
  • 1-1-1-what-is-pyvider.md Added 1-1-1-what-is-pyvider.md (+29 lines)
  • 1-1-2-key-features.md Added 1-1-2-key-features.md (+76 lines)
  • 1-1-3-why-pyvider.md Added 1-1-3-why-pyvider.md (+82 lines)
  • 1-1-4-goals.md Added 1-1-4-goals.md (+88 lines)
  • 1-1-overview.md Added 1-1-overview.md (+20 lines)
  • summary.md Added summary.md (+207 lines)
  • notes.md Added notes.md (+30 lines)
  • priming-prompt-2024-12-02.md Updated priming-prompt-2024-12-02.md (+1/-1 lines)
  • working-through-ttypes.md Updated working-through-ttypes.md (+0/-0 lines)
  • tfdynamic.md Added tfdynamic.md (+57 lines)
  • tftypes.md Added tftypes.md (+5 lines)
  • capabilities.md Added capabilities.md (+3 lines)
  • index01.md Removed index01.md (-115 lines)
  • requirements.txt Updated requirements.txt (+16/-2 lines)
  • diagram.py Removed diagram.py (-50 lines)
  • __init__.py Removed __init__.py (-28 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • config.py Removed config.py (-159 lines)
  • defaults.yaml Removed defaults.yaml (-19 lines)
  • loader.py Updated loader.py (+0/-0 lines)
  • constants.py Removed constants.py (-150 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • log_levels.py Updated log_levels.py (+0/-0 lines)
  • core.py Removed core.py (-351 lines)
  • __init__.py Removed __init__.py (-4 lines)
  • detailed_formatter.py Removed detailed_formatter.py (-14 lines)
  • json_formatter.py Removed json_formatter.py (-19 lines)
  • rich_formatter.py Removed rich_formatter.py (-44 lines)
  • simple_formatter.py Removed simple_formatter.py (-18 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • async_handler.py Updated async_handler.py (+0/-0 lines)
  • otlp_handler.py Removed otlp_handler.py (-100 lines)
  • stream_handler.py Updated stream_handler.py (+0/-0 lines)
  • __init__.py Removed __init__.py (-6 lines)
  • config.py Removed config.py (-22 lines)
  • proxy.py Removed proxy.py (-35 lines)
  • __init__.py Removed __init__.py (-1 lines)
  • logger_manager.py Removed logger_manager.py (-20 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • richlogger.py Updated richlogger.py (+0/-0 lines)
  • theme.py Updated theme.py (+0/-0 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • mock_tracing.py Removed mock_tracing.py (-200 lines)
  • test_filters.py Updated test_filters.py (+0/-0 lines)
  • test_formatters.py Updated test_formatters.py (+0/-0 lines)
  • test_handlers.py Updated test_handlers.py (+0/-0 lines)
  • test_logscribe.py Removed test_logscribe.py (-91 lines)
  • test_richlogger.py Updated test_richlogger.py (+0/-0 lines)
  • test_simple_formatter.py Removed test_simple_formatter.py (-57 lines)
  • xtest_otel_comprehensive.py Removed xtest_otel_comprehensive.py (-260 lines)
  • xtest_otlp_handler.py Removed xtest_otlp_handler.py (-75 lines)
  • tracer-client.py Removed tracer-client.py (-46 lines)
  • tracer.py Removed tracer.py (-184 lines)
  • __init__.py Updated __init__.py (+1/-3 lines)
  • injector.py Updated injector.py (+3/-4 lines)
  • __init__.py Updated __init__.py (+1/-1 lines)
  • shutdown.py Updated shutdown.py (+1/-1 lines)
  • test_discovery.py Updated test_discovery.py (+2/-2 lines)
  • test_schema_attribute_path.py Updated test_schema_attribute_path.py (+1/-4 lines)
  • Simplified src/pyvider/tftypes/base.py (181 lines reduced) removing redundant methods decouple internal
    1 file
    • base.py
  • Removed src/pyvider/tftypes/immutability.py (49 lines) decouple internal
    1 file
    • immutability.py
  • Simplified src/pyvider/tftypes/primitives/ - removed unused code from bool.py, number.py, string.py deprecate internal
    3 files
    • bool.py
    • number.py
    • string.py
  • Simplified src/pyvider/tftypes/collections/list.py (56 lines changed) and map.py (94 lines changed), set.py (10 lines removed) decouple internal
    5 files
    • list.py
    • map.py
    • set.py
    • test_tftypes_collections_map.py
    • test_tftypes_collections_set.py

Dynamic Pseudo-Type

1 file changed
  • dynamic.py Updated dynamic.py
  • Created src/pyvider/tftypes/structural/dynamic.py (67 lines) implementing DynamicPseudoType for Terraform’s dynamic type system baseline internal
    1 file
    • dynamic.py

Attribute Path Relocation

1 file changed
  • attribute_path.py Updated attribute_path.py (+2/-2 lines)
  • Moved src/pyvider/tftypes/attribute_path.py to src/pyvider/schema/attribute_path.py decouple internal
    1 file
    • attribute_path.py

Test: Structural Object

5 files changed
  • test_tftypes_collections_list.py Added test_tftypes_collections_list.py (+85 lines)
  • test_tftypes_structural_object.py Added test_tftypes_structural_object.py (+488 lines)
  • test_tftypes_structural_tuple.py Removed test_tftypes_structural_tuple.py (-3 lines)
  • test_tftypes_type.py Removed test_tftypes_type.py (-31 lines)
  • test_tftypes_types_simple.py Removed test_tftypes_types_simple.py (-10 lines)
  • Added tests/unit/tftypes/test_tftypes_structural_object.py (125-229 lines through iterations) with comprehensive object type tests qualify internal
    1 file
    • test_tftypes_structural_object.py
  • Updated tests/unit/tftypes/test_tftypes_collections_list.py (65 lines changed) qualify internal
    1 file
    • test_tftypes_collections_list.py