Skip to main content

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

tracking_decorator-0.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

tracking_decorator-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page