mush 2.7 released! - Type-based dependency injection for scripts

5 views
Skip to first unread message

Chris Withers

unread,
Sep 7, 2017, 6:18:52 PM9/7/17
to Python List, simpl...@googlegroups.com
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 simpl...@googlegroups.com
list!

cheers,

Chris
Reply all
Reply to author
Forward
0 new messages