-
Notifications
You must be signed in to change notification settings - Fork 0
Core‐Concepts
kairos edited this page Jan 8, 2025
·
1 revision
Objectron transforms Python objects into proxy objects that enable monitoring and enhanced functionality while maintaining the original interface.
The proxy system provides:
- Transparent attribute access
- Method call interception
- Reference tracking
- Dynamic attribute creation
Objectron includes specialized proxies for:
- Dictionaries (DictProxy)
- Lists (ListProxy)
- Numbers (IntProxy, FloatProxy)
- Strings (StrProxy)
- Tuples (TupleProxy)
- Sets (SetProxy)
- Custom objects (DynamicProxy)
The DeepObjectReplacer handles:
- Global reference tracking
- Circular reference detection
- Safe reference updates
- Thread-safe operations
Two main access patterns:
- Attribute-style:
config.database.host
- Path-based:
config["database.host"]