Ubelt

Latest version: v1.3.5

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

Scan your dependencies

Page 6 of 11

0.8.4

Changed
* The following functions are now officially deprecated: `startfile`, `truepath`, `compressuser`, `editfile`, `platform_resource_dir`, `get_app_resource_dir`, and `ensure_app_resource_dir`, `dict_take`
* Improve docs
* `Timerit` and `ProgIter` are back, remove dependency on the external modules.

0.8.3

Changed
* `PythonPathContext` now works in more corner cases, although some rarer
corner cases will now break. This trade-off should be a net positive.

0.8.2

Added
* Added `dpath` as an argument to `ub.augpath`

Fixed
* Custom extensions for `ub.hash_data` are fixed. Previously they were not passed down more than a single level.
* The `convert` option for `ub.hash_data` was previously not hooked up.
* Correctly expose `dict_diff`
* Fixed issue in `ub.augpath` where `multidot` did not preserve the original extension

Changed
* `ub.Cacher` no longer ensures that the `dpath` exists on construction. This check is delayed until `save` is called.
* `ub.CacheStamp` now accepts the `enabled` keyword.
* `modpath_to_modname` now properly handles compiled modules with ABI tags.

0.8.0

Added
* Add `ub.dict_diff`, which removes keys from a dictionary similar to `set` difference.
* Add `ub.paragraph`, which helps with writing log messages
* Add some benchmarks
* Add lots more documentation.


Changed
* `ub.identity` now accepts `*args` and `**kwargs` and defaults the first argument to `None`, but still only returns the first argument.
* The `sort` kwarg of `ub.repr2` can now accept a callable, which will act as a key to the `sorted` function
* `ub.hash_data` now accepts the `extensions` kwarg, which allows the user to define how particular types are hashed.

Fixed
* Fix GH 53
* the `index` argument in `import_module_from_path` is now correctly used.

0.7.1

Fixed

* Fixed bug in `ub.dict_hist` when `ordered=True`. (half of the keys would be lost). Also effected `dict_take`.
* `platform_data_dir` now correctly raises an exception when the operating system is unknown.

0.7.0

Added
* Add `memoize_property`

Changed
* `ub.cmd` now reports `cwd` on exception
* Reworked requirements to minimize dependencies.
* The `xxhash` and `pygments` dependencies are now optional.
* The testing dependencies are now optional.

Page 6 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.