Pytoolbox

Latest version: v14.8.3

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

Scan your dependencies

Page 8 of 10

10.2.0

Compatibility breaks

* Add `EncodeStatistics` and refactor `FFmpeg.encode()`

Minor compatibility breaks

* Merge `django.template` tags & filters into 1 file
* Split `FFmpeg` class to `FFmpeg` + `FFprobe` classes

Features

* Add module `django.exceptions`
* Add `static_abspath` Django template tag
* Add class `django.forms.mixins.EnctypeMixin`
* Add class `django.models.mixins.AlwaysUpdateFieldsMixin`
* Add class `django.models.mixins.AutoForceInsertMixin`
* Add class `django.models.mixins.AutoUpdateFieldsMixin`
* Add class `django.models.mixins.MapUniqueTogetherIntegrityErrorToValidationErrorMixin`
* Add class `django.models.mixins.RelatedModelMixin`
* Add class `django.models.mixins.UpdatePreconditionsMixin`
* Add class `django.storage.ExpressTemporaryFileMixin`
* Add class `django.test.mixins.FormWizardMixin`
* Add class `django.views.mixins.InitialMixin`
* Add class `logging.ColorizeFilter`
* Add function `collections.flatten_dict`
* Add function `datetime.multiply_time`

Fixes and enhancements

* Avoid hardcoding `\n`
* Module `console`: Write to given stream
* Module `datetime`: Make API more consistent
* Module `multimedia.ffmpeg`:
* Split `FFmpeg` class in `FFmpeg` and `FFprobe`
* Add `EncodeState` & `EncodeStatistics` classes
* Do some analysis before launching `ffmpeg` subprocess
* Fix progress if sub-clipping
* Improve handling of `media` argument
* Miscellaneous improvements
* Module `subprocess`: Import Popen from psutil if available
* Refactor function `django.signals.create_site`

10.0.0

Compatibility breaks

* Method `multimedia.ffmpeg.FFmpeg.encode` always yields at start

Features

* Add some mixins in `rest_framework.v*.views.mixins`

Fixes and enhancements

* Add class `multimedia.ffmpeg.EncodingState`

9.7.2

Minor compatibility breaks

* Function `filesystem.get_bytes` returns a generator
* Rename all functions with `_to_` instead of `2` (e.g. `str2time` -> `str_to_time`)
* Rename some methods of the class `ffmpeg.FFmpeg`
* Change signature of `console` module's functions

Features

* Add module `comparison`
* Add module `regex`
* Add module `types`
* Add class `filesystem.TempStorage`
* Add function `exception.get_exception_with_traceback`
* Add function `humanize.natural_int_key`
* Add function `console.progress_bar`

Fixes and enhancements

* Add `streams` methods to `ffmpeg.FFmpeg`
* Improve `ffmpeg` module (add `Media` class for inputs/outputs)
* Improve `network.http.download_ext` (Can download in chunks + progress callback)
* Improve `filesystem.get_bytes` + `crypto.*` to read a file in chunks (if `chunk_size` is set)

9.4.2

Features

* Add module `humanize`
* Add module `django.models.query.mixins`
* Add module `django.test.runner.mixins`

Fixes and enhancements

* Add `__all__` to make the API explicit
* Add method `get_media_framerate` to `FFmpeg` class
* Add module `private` (with `_parse_kwargs_string`)
* `network` module: Cleaner usage of `string.format()`
* Refactor module `humanize` + add `naturalfilesize`
* Improve `humanize` functions to handle `[0-1]` range + big numbers

9.3.0beta

Compatibility breaks

* Refactor `multimedia` modules
* Rename module `django.templatetags.pytoolbox_tags` to `_filters`

Minor compatibility breaks

* Rename `django.forms` -> `django.forms.mixins`
* Rename `django.views` -> `django.views.mixins`

Features

* Add module `django.templatetags.pytoolbox_tags`
* Add module `multimedia.exif`
* Add some `django mixins`

Fixes and enhancements

* Fix unicode handling
* Function `datetime.total_seconds` now accept instance of `timedelta`
* Function `filesystem.from_template` can now use jinja2 to generate the content
* `timedelta` & `to_filesize` Django template filters now handle empty string input
* Add argument `create_out_directory` to method `multimedia.ffmpeg.FFmpeg.encode`
* Fix `multimedia.ffmpeg.FFmpeg.encode`: Create output directory before the subprocess
* Improve `multimedia.ffmpeg.FFmpeg.encode`: Handle process missing + simplify mocking

8.6.1beta

Fixes and enhancements

* Add function `multimedia.ffmpeg.get_subprocess`

Page 8 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.