mush 2.7 released! - Type-based dependency injection for scripts
Chris Withers
chris at simplistix.co.uk
Thu Sep 7 18:18:49 EDT 2017
Hi All,
I'm very happy to announce the a new release of Mush, a light weight
dependency injection framework aimed at enabling the easy testing and
re-use of chunks of code that make up scripts.
This release includes:
- Add support for using Python 3 type annotations to specify
requirements and returned resources.
- Add support for arg names being used as requirements when there is no
other configuration.
- Add an explicit way of ignoring the return value of a callable.
- Add an update_wrapper() helper that extends the standard library
version but also preserves Mush's annotations.
For a worked example of how to use Mush to reduce the copy'n'paste in
your scripts, please see here:
http://mush.readthedocs.io/en/latest/examples.html
Full docs are here:
http://mush.readthedocs.io/en/latest/index.html
Downloads are here:
https://pypi.python.org/pypi/mush
Compatible with Python 2.7, 3.4+ on Linux, Mac OS X and Windows.
Any problems, please give me a shout on the simplistix at googlegroups.com
list!
cheers,
Chris
More information about the Python-list
mailing list