Mode

Latest version: v4.4.0

Safety actively analyzes 629599 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 15 of 15

1.1.1

=====
:release-date: 2017-10-25 04:34 P.M PDT
:release-by: Ask Solem

- Added alternative event loop implementations: eventlet, gevent, uvloop.

E.g. to use gevent as the event loop, install mode using:

.. sourcecode:: console

$ pip install mode[gevent]

and add this line to the top of your worker entrypoint module::

import mode.loop
mode.loop.use('gevent')

- Service: More fixes for the weird `__init_subclass__` behavior
only seen in Python 3.6.3.

- ServiceThread: Now propagates errors raised in the thread
to the main thread.

.. _version-1.1.0:

1.1.0

=====
:release-date: 2017-10-19 01:35 P.M PDT
:release-by: Ask Solem

- ServiceThread: Now inherits from Service, and uses
``loop.run_in_executor()`` to start the service as a thread.

- setup_logging: filename argument is now respected.

.. _version-1.0.2:

1.0.2

=====
:release-date: 2017-10-10 01:51 P.M PDT
:release-by: Ask Solem

- Adds support for Python 3.6.0

- Adds backports of typing improvements in CPython 3.6.1
to ``mode.utils.compat``: ``AsyncContextManager``, ``ChainMap``,
``Counter``, and ``Deque``.

- ``Supervisor.add`` and ``.discard`` now takes an arbitrary number
of services to add/discard as star arguments.

- Fixed typo in example: ``Service.task`` -> ``mode.Service.task``.

Contributed by Xu Jing.

.. _version-1.0.1:

1.0.1

=====
:release-date: 2017-10-05 02:53 P.M PDT
:release-by: Ask Solem

- Fixes compatibility with Python 3.6.3.

Python 3.6.3 badly broke ``__init_subclass__``, in such a way that
any class attribute set is set for all subclasses.

.. _version-1.0.0:

1.0.0

=====
:release-date: 2017-10-04 01:29 P.M PDT
:release-by: Ask Solem

- Initial release

Page 15 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.