Ubelt

Latest version: v1.3.6

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

Scan your dependencies

Page 1 of 11

1.3.6

Added:
* Add `ub.IndexableWalker.diff`

Fixed:
* `ub.import_module_from_path` now correctly accepts `PathLike` objects.
* `ub.modname_to_modpath` fixed in cases where editable installs use type
annotations in their MAPPING definition.

Added
* Support for UNIX special permission (suid/sgid/svtx) codes in `Path.chmod`.

Changed
* Moved windows dependencies from requires to optional. Windows users that make
use of these will need to update their ubelt install or explicitly depend on
them as well.

1.3.5

Added:
* New wrapper around `pathlib.Path.chmod` in `ubelt.Path.chmod`. Can now
specify string codes like "u+x" or "+rw". Old stat logic works as it
previously did.


Changed:
* Allow the argument to `ubelt.cmd` to be a `PathLike` object, which we will
expect to be an executable.

Fixed
* `ub.modname_to_modpath` now handles cases where editable packages have modules where the name is different than the package.
* Fixed deprecated usage of `ast.Num`

1.3.4

Added
* Add backend option to `highlight_code` which can be "pygments" or "rich".
* Support for Python 3.12

Changed
* Improve speed of inplace dictionary set operations.

Fixed
* Align in the case of `nobraces=1` for `ubelt.urepr`.

1.3.3

Fixed

* Bug where the first call to `ub.hash_data` would error if it was given a
ndarray with object type.
* Actually exposed `ChDir`.

Changed
* Docs and typing improvements

Notes

* Skipped a release version due to a bad github tag.

1.3.0

Changed
* Removed experimental warning from `Path.copy` and `Path.move`; they are now well enough tested.
* The `util_format` submodule has been renamed to `util_repr`. The
`util_format` is now a deprecated alias for `util_repr`.
* Stub out merge methods for SetDict.
* Renamed `FormatterExtensions` to `ReprExtensions`, with the former now being a deprecated alias.
* `ubelt.cmd` now returns an object that ducktypes `subprocess.CompletedProcess`.
* `ubelt.cmd` now contains a `capture` argument which will disable capturing of output.
* `ubelt.cmd` ...detaching now only prints if verbosity is > 1

Fixed:
* Exposed `ChDir`.
* Removed usage of deprecated `pipes` module
* `ubelt.cmd` return dictionaries are now more consistent

Deprecated
* The `recreate` argument to `ensuredir`

1.2.4

Added
* Added `ChDir` to `util_path`.
* Add transient option to `JobPool` so references to futures are released after they are yielded to the user.
* Added "base32" as an option for `hash_data`. Note that it is unpadded, hence non-RFC compliant.
* Added `pattern` as a convenience option to `ubelt.Path.ls`.

Changed
* Updated vendored ProgIter to match progiter 1.3.0
* The download progress bar now gives more relevant information and updates less frequently.
* `IndexableWalker.allclose` can now take unwrapped objects.

Fixed
* `ubelt.cmd` now respects `cwd` when `system=True`.

Page 1 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.