Pytoolbox

Latest version: v14.8.5

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

Scan your dependencies

Page 10 of 11

5.6.3beta

Fixes and enhancements

* Add timeout argument to `cmd()`
* Remove symlink first, to avoid boring exceptions
* Add timeout to juju status !

5.6.0beta

Features

* Add function `validation.valid_int()`

Fixes and enhancements

* Add constants to `juju` module
* Juju bootstrap will print time as int
* Add `makedirs` argument to some methods of the objects of `serialization`
* Add user argument to function `subprocess.cmd`
* Add path argument to `subprocess.make`
* Add extra_args (list) to function `subprocess.rsync`
* Fix `juju`, `serialization`, `subprocess` modules, update tests
* Function subprocess.cmd : Handle `logging.Logger` as log, improve docstring, add retry loop
* Upgrade `relation_` methods

5.5.0beta

Minor compatibility breaks

* Move all django template tags into module `pytooblox_tags`
* Move `juju` functions to the `Environment` class

Features

* Add `console.choice()` (by kyouko-taiga)
* Add function `serialization.to_file` and use it to improve `PickeableObject` and `JsoneableObject` write methods.

Fixes and enhancements

* Add missing MANIFEST.in
* Add new django-related modules
* Add some django mixins + template tags
* Make class `django.models.GoogleMapsMixin` more generic
* Add cli_output argument to `subprocess.cmd`
* Add size_only argument to `subprocess.rsync`
* Do not add hashlib to requirements if already part of the stdlib
* Fix headers + rest markup + update title
* Enhance function `ffmpeg.encode`
* Call log more often

5.4.19beta

Deprecated

* `flask.get_request_data` replaced by `network.http.get_request_data`

Minor compatibility breaks

* Split `django` module into submodules
* Rename `SmartModel` to `AbsoluteUrlMixin`

Features

* Embed `smpte2022lib`
* Add entry points (`socket-fec-generator` + ` twisted-fec-generator`)
* Add commit and release scripts to make it more securely (run tests before, check sphinx ...)
* Add module `network.http` and classes `juju.SimulatedUnit(s)`
* Add module `django.templatetags` with getattribute function
* Add class `django.models.SaveInstanceFilesMixin`
* Add function `django.forms.update_widget_attributes`

Fixes and enhancements

* Lighter list of dependencies
* Add `--extra-...` flags to install dependencies for the extra features/modules.
* Filter packages to avoid installing tests module !
* Fix `setup.py` to avoid removing tests from packages list if it did not exist.
* Add kwargs to `serialization.object2json` -> `json.dumps`
* `map_marker` : Convert to unicode sooner (to handle special field class)
* `django.forms.SmartModelForm` : Attributes & replacement class applied depending of the form field's class
* Add fill option to `collections.pygal_deque.list()`
* Replace range by xrange, values by itervalues, ...
* Handle `datetime.date` class (function `datetime.dateime2epoch`)
* Add suffix parameter to `AbsoluteUrlMixin.get_absolute_url`
* Ensure import from future of great things
* Fix docstrings

Example usage:


sudo python setup.py install --help
sudo python setup.py install --extra-flask

5.0.0beta

Compatibility breaks

* Remove `py_` prefix of all modules & paths
* Change license (GNU GPLv3 -> EUPL 1.1)

Features

* Add module `mongo`

Fixes and enhancements

* Use absolute imports
* Update classifiers
* Update README.rst

4.8.7beta

Minor compatibility breaks

* Rename `duration2secs` -> `total_seconds`
* Rename `get_request_json` -> `get_request_data`

Features

* Python 3 support
* Add module `py_collections`
* Add module `py_django`
* Add function `json_response2dict`
* Add function `make`
* Add function `ssh`
* Greatly improve module `py_juju`
* Greatly improve module `py_serialization`

Fixes and enhancements

* Update README.rst
* Update function `get_request_data`
* Update function `map_exceptions`
* Update function `runtests`
* Update `setup.py`

Page 10 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.