This repo lives both in Github and BitBucket.
An Object implementation that tracks added and changed elements.
>>> from history_object import History
>>>
>>> @History()
>>> class T():
>>> def __init__(self, x):
>>> self.x = x
>>>
>>> test = T("Hello World")
>>> test.history['x'] # [None, "Hello World"]
>>> test.x = "Goodbye World"
>>> test.history['x'] # [None, "Hello World", "Goodbye World"]
You can run the tests using tox
tox
To publish a new version of this package your Pypi user needt to be added to the project. (Ask Connor to give you access)
# Update version number in setup.py
python setup.py sdist
twine upload dist/*