Pytoolbox

Latest version: v14.8.2

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

Scan your dependencies

Page 7 of 10

11.2.0

Features

* Add classes `types.Echo{Object,Dict}`
* Add classes `argparse.Help{ArgumentParser,Formatter}`

Fixes and enhancements

* Add docstrings and fix doctests
* Fix `django.forms.utils.get_instance`
* Update `FromPrivateKeyMixin` to fix call to fail with recent DRF

11.1.0

Minor compatibility breaks

* Update `git_clone_or_pull` to full clone by default

Features

* Add module `network.url`
* Add mixin `django.forms.mixins.CreatedByMixin`
* Add mixin `django.forms.mixins.StaffOnlyFieldsMixin`

Fixes and enhancements

* Add/fix docstrings and unit-tests
* Use `xrange` and `iter{items,keys,values}` under Python 2
* Replace `nose.tools` by `pytoolbox.unittest.asserts`
* Make `RequestMixin` more transparent
* `network.http.download_ext`: Pass `kwargs` to `iter_download_to_file`
* `django.views.mixins.AddRequestToFormKwargsMixin`: Check form "handles" request as `kwarg` based on its class

11.0.0

Compatibility breaks

* Remove ming module to cleanup build
* Remove `django.models.mixins.PublishedMixin` (not generic enough neither powerful enough)

Minor compatibility breaks

* Prefer path over filename (arguments convention)
* Replace `MapUniqueTogetherMixin` + `MapUniqueTogetherIntegrityErrorToValidationErrorMixin` by `BetterUniquenessErrorsMixin`.
* Move `CancellableDeleteView` to `django.views.base`

Features

* Generate documentation and publish on readthedocs.org
* Add mixin `django.models.mixins.BetterUniquenessErrorsMixin`

Fixes and enhancements

* Add/fix docstrings
* Update modules headers
* Make `django.views.mixins.ValidationErrorsMixin` more "generic"
* Too many to be listed here, https://github.com/davidfischer-ch/pytoolbox/compare/10.4.0...11.0.0

10.4.0

Not secure
Features

* Add module `django.models.metaclass`
* Add module `django.views.utils`
* Add module `enum`
* Add modules in `multimedia.exif`:
* `brand`
* `camera`
* `equipement`
* `image`
* `lens`
* `photo`
* `tag`
* Add module `rest_framework.metadata.mixins`
* Add mixin `django.models.mixins.PublicMetaMixin`
* Add decorator `decorators.cached_property`
* Add decorator `decorators.hybridmethod`
* Add functions in `django.models.utils`:
* `get_related_manager`
* `get_related_model`
* `try_get_field`
* Add function `types.get_properties`

Fixes and enhancements

* Handle 24h+ hour format in `datetime.str_to_datetime`
* Module `django.forms.utils` imports from `django.forms.utils` module
* Fix `ReloadMixin` popping update_fields!
* Refactor class `multimedia.exif.metadata.Metadata` (use newest classes)
* Split module `multimedia.ffmpeg`
* Fix `ffmpeg`'s' `mock` class

10.3.0

Compatibility breaks

* Remove module `rest_framework.v2`
* Refactor (optimize) `unittest.FilterByTagsMixin`

Minor compatibility breaks

* Rename module `exception` to `exceptions`
* Rename module `rest_framework.v3` to `rest_framework`
* Rename some attributes of `multimedia.ffmpeg` classes

Features

* Add many modules:
* `atlassian`
* `itertools`
* `module` (yes!)
* `selenium`
* `signals`
* `states`
* `string`
* `voluptuous`
* Add class `argparse.Range`
* Add function `argparse.multiple`
* Add function `collections.{merge_dicts, swap_dict_of_values}`
* Add decorator `decorators.run_once`
* Add modules and mixins in `django\*` module
* Add value `encoding.binary_type`
* Add function `humanize.naturalfrequency`
* Add function `types.isiterable`
* Add classes `types.{DummyObject,MissingType}`
* Add object `types.Missing instance of MissingType`
* Add mixins `unittest.{InMixin,InspectMixin}`
* Add class `unittest.Asserts`
* Add object `unittest.asserts`

Fixes and enhancements

* Countless fixes and enhancements
* Follow `os.path` import best practices
* Make `multimedia.ffmpeg` private functions public

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`

Page 7 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.