Mode

Latest version: v4.4.0

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

Scan your dependencies

Page 4 of 15

3.2.1

=====
:release-date: 2019-04-07 4:07 P.M PST
:release-by: Ask Solem (:github_user:`ask`)

- Adds :class:`mode.utils.typing.AsyncGenerator`
to import :class:`typing.AsyncGenerator` missing from Python 3.6.0.

.. _version-3.2.0:

3.2.0

=====
:release-date: 2019-04-06 11:00 P.M PST
:release-by: Ask Solem (:github_user:`ask`)

- Adds ``Service.itertimer``: used to perform periodic
tasks, but with automatic drift adjustment.

- Adds :func:`mode.utils.mocks.ContextMock`

To mock a regular context manager.

.. _version-3.1.3:

3.1.3

=====
:release-date: 2019-04-04 08:41 P.M PST
:release-by: Ask Solem (:github_user:`ask`)

- ``mode.utils.worker.exiting`` now takes option to print exceptions.

- Threads: Method queue "starting..." logs now logged with debug severity.

- Worker: execute_from_commandline no longer swallow errors if loop closed.

- Adds :class:`mode.locals.LocalStack`.

.. _version-3.1.2:

3.1.2

=====
:release-date: 2019-04-04 08:37 P.M PST
:release-by: Ask Solem (:github_user:`ask`)

+ **Revoked release**: Version without changelog entry was uploaded to PyPI.
Please upgrade to 3.1.3.

.. _version-3.1.1:

3.1.1

=====
:release-date: 2019-03-27 10:02 A.M PST
:release-by: Ask Solem (:github_user:`ask`)

- Service: property ``should_stop`` is now true if service crashed.

- Timers: Avoid drift + introduce a tiny bit of drift to timers.

Thanks to Bob Haddleton (:github_user:`bobh66`) for discovering
this issue.

.. _version-3.1.0:

3.1.0

=====
:release-date: 2019-03-21 03:26 P.M PST
:release-by: Ask Solem (:github_user:`ask`)

- Adds :class:`~mode.utils.contexts.nullcontext`
and :class:`~mode.utils.contexts.asyncnullcontext`.

Backported from Python 3.7 you can import these
from :mod:`mode.utils.contexts`.

- Mode project changes:

+ Added :pypi:`bandit` to CI lint build.

+ Added :pypi:`pydocstyle` to CI lint build.

.. _version-3.0.13:

Page 4 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.