pyvider
2024-11-30
Created logscribe logging library and rebuilt core schema system
169 files · 11,898+ · 918-
Created logscribe logging library as standalone subpackage
15 files changed
core.pyLogscribe class for centralized log managementdetailed_formatter.pyDetailed log formatterjson_formatter.pyJSON log formatterrich_formatter.pyRich-based color output formattersimple_formatter.pySimple log formatterrotating_file_handler.pyFile-based log rotation handlerstream_handler.pyStream output handlerlogger_manager.pyLog manager singletondefaults.yamlDefault logging configurationloader.pyConfiguration loaderkeyword_filter.pyKeyword-based log filterlog_level_filter.pyLog level filtermodule_name_filter.pyModule name filterrichlogger.pyRich logger wrappertheme.pyRich theme configuration
- Created logscribe package with core logging framework, formatters (detailed, JSON, rich, simple), handlers (rotating file, stream), and config management
instantiate
behavioral
5 files
core.pyformattershandlerslogger_manager.pydefaults.yaml
- Added log filters for keyword, log level, and module name filtering
instantiate
internal
3 files
keyword_filter.pylog_level_filter.pymodule_name_filter.py
- Included tests for logscribe core, formatters, handlers, and rich logger
qualify
internal
3 files
test_logscribe.pytest_rich_formatter.pytest_simple_formatter.py
Rebuilt core schema system with attribute, nested block, and wrapper classes
4 files changed
attribute.pySchemaAttribute class with type validation and required/optional/computed flagsnested_block.pyNested block supportwrapper.pyPrimary SchemaWrapper with protobuf serialization/deserializationfactory.pySchema construction factory
- Created schema attribute class with type validation and required/optional/computed flags, nested block support, and SchemaWrapper with protobuf serialization
instantiate
behavioral
4 files
attribute.pynested_block.pywrapper.pyfactory.py
Added metaclass-based logging injection and core interfaces
3 files changed
metaclasses.pyLoggingMeta/UnifiedMeta metaclasses for automatic logging injectionbase.pyEnhanced BaseResource ABC with lifecycle methods (157 lines)schema.pySchema interface definitions
- Created LoggingMeta and UnifiedMeta metaclasses for automatic logging injection into classes
instantiate
behavioral
1 file
metaclasses.py
- Enhanced BaseResource ABC with lifecycle methods and added schema interface definitions
streamline
behavioral
2 files
base.pyschema.py
Added proto v6 schema modules and adapter
4 files changed
attribute.pyAttributeV6 protobuf-aware attributenested_block.pyNestedBlockV6 protobuf block typesadapter.pyProtocol version adaptationprovider.pyV6 provider protocol
- Created proto v6 schema modules with AttributeV6 and NestedBlockV6 protobuf-aware types and protocol version adapter
instantiate
internal
3 files
attribute.pynested_block.pyadapter.py
Established test infrastructure with mocks, validators, and fixtures
6 files changed
test_schema_wrapper.pyComprehensive schema wrapper teststest_tftypes_map.pyMap type teststest_tftypes_types_object.pyObject type testsschema_validators.pySchema validation utilities (52 lines)schema_mock.pySchema test mockingproto_fixtures.pyProtobuf test fixtures
Added mutable object support and map deserialization
2 files changed
object.pyAdded mutable flag with FrozenDict supportmap.pyAdded deserialization support
- Added mutable flag to object type with FrozenDict support for immutable objects and map type deserialization
streamline
internal
2 files
object.pymap.py