Ubelt

Latest version: v1.3.5

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

Scan your dependencies

Page 4 of 11

0.10.0

Added
* new hashing 36-character base with alias (alphanum / abc123 / 36)
* Added "compact" argument to `ub.repr2`
* added candidate utilities: `named_product`, `varied_values` to `util_dict`
* added candidate utilities: `compatible` to `util_func`
* Added `util_indexable` and `IndexableWalker` (ported from kwcoco)
* Added `util_futures` with `ub.JobPool` and `ub.Executor` (ported from kwcoco)
* Added `util_download_manager` with simple implementation of `ub.DownloadManager`
* Added candidate functions to `ubelt` proper

Fixed
* `ubelt.download` now errors earlier if the parent directory does not exist
* PyTest no longer throws warnings
* Fixed issue with `download` and ByteIO objects in 3.8
* Bug in Python 3.8+ on win32 that did not account for the change on
`os.readlink` behavior


Changed

* Modified corner cases in `ub.repr2` to move towards behavior that is easier
to reason about.

* Remove support for Python 3.4

0.9.5

Added

* `blake3` is now an optional hasher

Changed

* `ubelt.hash_data` can now hash dictionaries and sets by default.

* increased test speed

* Internal change in how external hashers are maintained.


Fixes

* On windows colorama init is no longer called if it was ever initialized
before. This fixes rare infinite recursion bugs when using pytest.

0.9.4

Added

* Added `maxbytes` parameter to `hash_file` to allow for only hashing a prefix.

Fixed

* Docs seem to be building correctly now


Changed

* Made import time 13x faster (was 109680, is now 8120) by using lazy
external type registration in `util_hash` and removing other eager imports.

* Removed import dependency on six. There is still a runtime dependency, but we
are moving away from six. This is a first step to deprecating Python2 support

* Changed default of "blocksize" in `hash_file` to `2 ** 20` based on benchmarks.

* Removing Travis-CI, will soon migrate to Circle-CI

0.9.3

0.9.2

Added
* `ub.repr2` now accept type name strings at register time (which makes it
easier to lazy-load heavy libraries)
* `ub.repr2` now handles pandas.DataFrame objects by default
* `ub.repr2` now accepts the `align` keyword arg, which will align dictionary kv separators.
* functions in `ub.util_color` now respects a global `NO_COLOR` flag which
prevents ANSI coloration.

Changed
* `ProgIter.step` now respects update freq, and will not update the estimates
if too few iterations have passed. This prevents `ub.download` from
generating extremely large amounts of standard out.
* `ub.Cacher` now reports the file size of the cache file.
* `ub.Cacher` now defaults to the latest pickle protocol (-1), which may cause
compatibility issues.

Fixed
* `ProgIter` now correctly checks if it needs to displays a message on every iteration.
* Fixed uninitialized `_cursor_at_newline ` variable in `ProgIter`.

0.9.1

Changed
* `ub.repr2` now encodes inf and nan as `float('inf')` and `float('nan')` to
allow output to be evaluated.
* `ub.grab_data` now uses the hasher name in the cached hash stamp file.

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.