Ubelt

Latest version: v1.3.5

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

Scan your dependencies

Page 7 of 11

0.6.3

Added
* new tests
* add `util_stream`

Fixed
* Fixed issue in `ub.download` with bad content header urls

0.6.2

Added
* `ub.platform_cache_dir` and `ub.platform_config_dir` now respect XDG environs on Linux systems.

Changed
* `ub.download` can now accept `fpath` as either a file path or a `io.BytesIO` object
* `ub.FormatterExtensions.register` can now accept a type or tuple of types.

Deprecated
* `ub.platform_resource_dir` is deprecated in favor of `ub.platform_config_dir`.

0.6.1

Changed
* `ub.repr2` now accepts negative values for `newlines`, which means use newlines until the current height is only `-newline`.
* `ub.repr2` now keeps track of nesting depth from the bottom
* Make result `ub.memoize_method` appear more like a bound method.


Added
* Add custom extensions to `ub.repr2` and expose `ub.FormatterExtensions`
* Add `dict_isect` to `util_dict`.


Fixed
* Fixed misspelling in docs
* Fixed misspelled detach kwarg in `ub.cmd` (the old `detatch` argument is now deprecated and will be removed)

0.6.0

Added
* Add class variable `FORCE_DISABLE` to `ub.Cacher`
* Add the `xxhash` algorithm as an option to `ub.hash_data`
* Add `ub.peek` - 4-letter syntactic sugar for `lambda x: next(iter(x))`

0.5.3

Added
* Add `key` to `ub.find_duplicates`

Changed
* Renamed first argument of `ub.chunks` from sequence to items
* Improved type hints in google-style docstrings
* `ub.cmd` verbose >= 3 now uses nicer Unicode characters if possible

Fixed
* Fixed GH41

0.5.2

Added
* Add verbose flag to `ub.CacheStamp`

Changed
* `ub.group_items` argument names have changed, and it can now take a callable as the second argument. The `sorted_` argument is now deprecated.
* Symlink now reports location of old target when the new target does not match
* Docstrings now uses `PathLike` as the type for arguments and attributes that should be considered paths (note strings are still accepted).
* `ub.download` will now keep a potentially corrupted file if the hash does not match.
* `ub.grabdata` will compute the hash of an existing file on disk if the .hash stamp is missing to try and avoid re-downloading the file.
* Improved efficiency of `ub.argmax`

Page 7 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.