Pytoolbox

Latest version: v14.8.2

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

Scan your dependencies

Page 8 of 10

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`

8.6.0beta

Minor compatibility breaks

* Rename module `django.models` -> `django.models.mixins`

Features

* Add module `django.models.fields`
* Add class `validation.CleanAttributesMixin`
* Add class `validation.StrongTypedMixin`
* Add class `django.forms.RequestMixin`
* Add class `django.views.AddRequestToFormKwargsMixin`
* Add class `django.views.LoggedCookieMixin`
* Add class `unittest.AwareTearDownMixin`
* Add function `subprocess.git_add_submodule`
* Add function `network.http.download_ext`
* Add function `datetime.parts_to_time`

Fixes and enhancements

* Add some classes in module `exception`
* Add module `django.urls` with utility regular expressions
* Improve `crypto.githash` to handle reading data from a file
* Fix `SaveInstanceFilesMixin` (use .pk instead of .id)
* Improve `datetime.str2time` to handle microseconds
* Improve `filesystem.try_remove` to handle directories (when `recursive=True`)
* Improve `multimedia.ffprobe.get_media_duration` (return None in case of error)
* `StrongTypedMixin`: Allow setting arg to the default value (if set)
* Split `HelpTextToPlaceholderMixin` logic to allow modify behavior by inheritance
* Fix `multimedia.ffmpeg.encode` (convert default_in_duration to time)
* Fix `multimedia.ffmpeg.encode` (may return None - out_duration)
* Fix `multimedia.ffmpeg.encode` (skip broken out duration)
* Improve `multimedia.ffprobe.get_media_duration` to handle media info dict

Page 8 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.