A small decorator for tracking changed attributes in a class
Project description
Tracking Decorator Package
This decorator tracks when the pointers to specified attributes of a class change. Whenever this occurs, the attribute is added to a set of tracked attributes. These attributes can be accessed with Clas.tracked_attributes, and cleared with Class.clear()
The current primary usage is for delta compression in socket communications. Delta compression effectively means reducing the information to be sent, by only sending that which has changed since the last call.
Is intuitive and short to write, and has extremely minimal impact on performace.
Further functionality and customizability to come.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tracking_decorator-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b2c4bf64a9c29b31212b887ad8ea60a2275836aeff3a9eff0f89b5bf55474bb |
|
MD5 | 3094ec0635cce8327bf0954165cd500e |
|
BLAKE2b-256 | bbee5b793524231641b8874e146312d7b56a5890839941160a794024f2b2a7e4 |