semvec/pypi-packages huggingface dataset:
history-object 0.2.2
A python decorator that tracks added and changed elements of the decorated object.
Keywords: history,attributes,tracking,object,decorator

|Build Status|

This repo lives both in
`Github <https://github.com/CRiva/python-history-object>`__ and
`BitBucket <https://bitbucket.org/westmont/history_object/src/master/>`__.

History Object
==============

An Object implementation that tracks added and changed elements.

Usage
-----

.. code:: python

    >>> 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"]

Test
----

You can run the tests using
`tox <https://tox.readthedocs.io/en/latest/>`__

.. code:: shell

    tox

Publish
-------

To publish a new version of this package your Pypi user needt to be
added to the project. (Ask Connor to give you access)

.. code:: shell

    # Update version number in setup.py

    python setup.py sdist
    twine upload dist/*

.. |Build Status| image:: https://travis-ci.org/CRiva/python-history-object.svg?branch=master
   :target: https://travis-ci.org/CRiva/python-history-object
indented 0.9.0
Tools for generating Python code and other indented text.
Keywords: codegen code generation indented macro

# `indented`
A library for generating Python code (and other indented text).

Made for cases where the `ast` module is too fine-grained
and gluing lines with newlines and tabs becomes too tedious.

Currently, the documentation resides in the docstrings of `indented.text` and `indented.codegen`.
Check them out on [github](https://github.com/lubieowoce/indented).