- Fix regression in @intercept decorator due to changes in how generic decorators pass arguments in 2.0.0
export
- register entities in a module's __all__ list (thanks @Paebbels!)- Use of
Decorator
class and consistent callable signature for generic decorators is now required - Drop support for Python <3.6
- Move to a src/ layout
- Lots of clarifications, typo fixes, and improvements to the docs
- Lots of development environment improvements:
* Automatic distribution of tagged commits via PyPI (thanks @Paebbels!)
*
Makefile
for a consistent interface into build operations * Improvements totox
configuration * Addition of consistent and required linting with pylint, mypy, and flake8 * Autoformatting withblack
Apparently pythonhosted.org has been deprecated, so I set up a Read the Docs account and moved the documentation there.
- Uploaded README to point to new docs
- Added docs build image for funsies.
- fixed an issue with the README
- fixed setup to pull README once more, even in Python 2
Memoization, prep for v 2.0
memoize
decorator - memoize any callableLRUCache
,FIFOCache
, andTimedCace
- to make thememoize
decorator more usefulDecorated
class, prep for v 2.0_use_future_syntax
option, prepping for version 2.0
Initial release!
before
decorator - run a callback prior to the decorated functionafter
decorator - run a callback after the decorated functioninstead
decorator - run a callback instead of the decorated functiondecorate
decorator - specify before, after, and/or instead callbacks all at onceconstruct_decorator
function - create a reusable decorator with before, after, and/or instead callbacksintercept
decorator - wrap the decorated function in a try/except, specifying a function with which to handle the exception and/or another exception to re-raiselog_call
decorator - automatically log the decorated functions's call signature and results