Daemonocle

Latest version: v1.2.3

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

Scan your dependencies

Page 1 of 3

1.2.3

~~~~~~~~~~~~~~~~~~~

* Pass args to click from Daemon.cli()
* Don't run start hook on reload or when the daemon is already running

1.2.1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Minor tweaks to some undocumented experimental features

1.2.0

~~~~~~~~~~~~~~~~~~~

* Dropped support for Python 2.7 and 3.5 (only >= 3.6 is now supported)
* Deprecated ``shutdown_callback`` argument in favor of new hooks system.
Replace ``shutdown_callback=func`` with ``hooks={'shutdown': func}``.
* Added ``'start'`` hook that gets called before attempting to start the
daemon. This can be useful for checking things or setting things up.
* Improvements to some undocumented experimental features. :)

1.1.1

~~~~~~~~~~~~~~~~~~~

* The ``stop`` action will now clean up the PID file if the worker didn't
do it for some reason.
* A few bug fixes to some undocumented experimental features. :)

1.1.0

~~~~~~~~~~~~~~~~~~~

* Official support for Python 3.9
* Added back official support for Python 3.5
* Increased test coverage to over 95%.
* All tests now pass on macOS (Intel) and the GitHub Actions build now runs on
macOS 10.15 in addition to Ubuntu.
* Fixed the ``close_open_files`` option to be much more reliable and consistent
across different platforms.
* Fixed a race condition with the self-reload functionality where the PID file
of the parent process was being deleted while the child process was trying to
read it.
* Added ``stdout_file`` and ``stderr_file`` arguments to ``Daemon``. If these
arguments are provided when ``detach=True``, STDOUT and STDERR will be
redirected to these files. In non-detached mode, these arguments are ignored.
* When ``chrootdir`` is given, all other paths are now always considered
relative to the chroot directory, even with a leading slash.
* Actions can now take arbitrary arguments, and (on Python 3) CLI options are
auto-generated from the function signature. The auto-generated CLI options
work best when your action's function signature contains type annotations and
default values where applicable.
* Added ``timeout`` and ``force`` arguments to the built-in ``stop`` action,
accessible from the CLI as ``--timeout`` and ``--force``.
* Added ``json`` and ``fields`` arguments to the built-in ``status`` action,
accessible from the CLI as ``--json`` and ``--fields``.
* Added colored output when the output stream is attached to a terminal.
* Fixed a bug where the daemon wouldn't respond properly to ``docker stop``
when running in a docker container.
* The worker function can now be a method called ``worker`` on a ``Daemon``
subclass.
* Some more secret experimental stuff. :)

1.0.2

~~~~~~~~~~~~~~~~~~~

* Official support for Python 2.7, 3.6, 3.7, and 3.8.
* Fixed bug checking if a stream is a socket on Python 3.8.
* Closing open files is now more efficient on systems with a very high limit
on the number of open files.
* Improved detection of running inside a container.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.