Energy

Latest version: v0.1.9

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

Scan your dependencies

Page 1 of 2

0.1.9

-------------

Released on June 24th 2014.

Fixes a bug on restored extra energy. This issue was reported by
`hest <https://github.com/hest>`_.

0.1.8

-------------

Released on May 13th 2014.

- Adds ``force`` option for :meth:`Energy.use` to use energy even if there is
not enough energy.
- Adds :meth:`Energy.debt`.

(by `youknowone <https://github.com/youknowone>`_)

0.1.7

-------------

Released on Nov 5th 2013.

``recovery_quantity`` works. Thanks to `Donggeun Lee <https://github.com/
incl>`_. (commit `c98f348 <https://github.com/sublee/energy/commit/c98f348
bed85522e491a6427e45e6ed527396eea>`_)

0.1.6

-------------

Released on Jan 21st 2013.

``used_at`` parameter is allowed to be a ``datetime`` object or timestamp
number.

0.1.5

-------------

Released on Jan 11th 2013.

- Adds :meth:`Energy.recover_fully_in` to calculate seconds to be recovered
fully. It is useful for making push notification.
- Supports Python 3 and Jython.

0.1.4

-------------

Released on Dec 17th 2012.

Fixes a bug about the timezone of the default ``time`` argument. The
documentation describes the timezone as UTC but it was a local timezone.

If your server is already using this project and setted with non-UTC timezone,
you should override :func:`timestamp` to use local timezone.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.