pyvider
2024-12-07
Restructured exceptions into proper package and created base provider class
86 files · 2,461+ · 1,225-
Restructured exceptions into proper package with dedicated modules
9 files changed
__init__.pyException package initialization with exportsfoundation.pyFoundation exception classesgrpc.pygRPC-specific exceptionsprovider.pyProvider exceptionsregistry.pyRegistry exceptionsresource.pyResource exceptionsschema.pySchema exceptionsserialization.pySerialization exceptionsvalidation.pyValidation exceptions
Created base provider class and working resource example
3 files changed
base_provider.pyBaseProvider class defining provider lifecycle interface (138 lines)working_resource.pyFully functional Terraform resource implementation for file content management (258 lines)typing.pyType aliases used across the framework (10 lines)
- Created BaseProvider class defining the provider lifecycle interface
instantiate
behavioral
1 file
base_provider.py
- Built working_resource.py as a fully functional Terraform file content resource implementation
instantiate
behavioral
1 file
working_resource.py
- Added type aliases module for consistent typing across the framework
specify
internal
1 file
typing.py
Added protobuf utility scripts and restructured protocols
10 files changed
__init__.pyProtocols package root__init__.pygRPC protocols packageserver.pyProtocol serverprovider.pyProvider service protocol__init__.pytfprotov6 protocol packagehandlersProtocol handlers for config, data, ephemeral, metadata, resource, and schemaprint_pb2_descriptor_schema.pyProtobuf schema introspection utilityprint_pb2_descriptor_schema.pySchema descriptor printing utilityprint_schema_from_descriptor.pySchema from descriptor printerprint_schema_no_nested_block.pySchema printer without nested blocks
- Restructured protocols into protocols/ package with gRPC, server, service, and tfprotov6 subpackages
decouple
internal
4 files
__init__.pyserver.pyprovider.pytfprotov6
- Added protobuf utility scripts for schema introspection and descriptor printing
instantiate
internal
3 files
print_pb2_descriptor_schema.pyprint_schema_from_descriptor.pyprint_schema_no_nested_block.py
Updated handler, providers, resources, and documentation
13 files changed
handler.pyImproved request routingbase.pyProvider base classconfig.pyProvider configurationbase.pyResource base classcontext.pyResource contextdecorators.pyResource decoratorslifecycle.pyResource lifecycle managementprotocol.pyResource protocol definitionsresource_file_content.pyFile content resource implementationdefinition.pySchema definition moduleentities.mdEntity documentationmutability.mdMutability documentationterminology.mdTerminology documentation
- Updated handler with improved request routing and added provider, resource, and schema modules
streamline
internal
4 files
handler.pybase.pybase.pylifecycle.py
- Added design documentation for entities, mutability, and terminology
specify
internal
3 files
entities.mdmutability.mdterminology.md