pyvider 2024-12-29
Simplified tftypes collections with hub validators and schema attributes
39 files · 744+ · 3,052-

Simplified tftypes primitive and collection types

6 files changed
  • bool.py Simplified (12 lines removed)
  • number.py Simplified (13 lines removed)
  • string.py Simplified (20 lines removed)
  • set.py Simplified with nested set validation using frozenset (210 lines changed)
  • map.py Updated map collection
  • base.py Updated base type (30 lines changed)
  • Simplified primitive types (bool, number, string) by removing unnecessary complexity streamline internal
    3 files
    • bool.py
    • number.py
    • string.py
  • Simplified set collection with proper nested set validation using frozenset and ValidationError for nested sets streamline internal
    1 file
    • set.py

Created hub validators and schema attributes module

5 files changed
  • validators.py Component registration validation (39 lines)
  • attributes.py Declarative schema attribute definitions (57 lines)
  • base.py Updated schema base (42+ lines)
  • discovery.py Updated discovery
  • decorators.py Updated decorators
  • Created hub validators for component registration validation instantiate internal
    1 file
    • validators.py
  • Created declarative schema attributes module and updated schema base instantiate internal
    2 files
    • attributes.py
    • base.py

Added collection map tests and Go framework comparison

3 files changed
  • test_tftypes_collections_map.py Collection map tests
  • test_tftypes_collections_set.py Updated set tests with frozenset validation
  • go-framework-dirs.md Go and Python framework structure comparison (190 lines)
  • Added collection map tests and updated set tests with frozenset nested set validation qualify internal
    2 files
    • test_tftypes_collections_map.py
    • test_tftypes_collections_set.py
  • Added Go framework directory comparison documentation specify internal
    1 file
    • go-framework-dirs.md

Removed old serialization and tuple test files

1 file changed
  • test_tftypes_types_tuple.py Removed old tuple tests (45 lines)
  • Removed old serialization tests (JSON 158, msgpack 282, proto 399 lines) and tuple tests deprecate internal
    1 file
    • test_tftypes_types_tuple.py