Torch-snippets

Latest version: v0.550

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

Scan your dependencies

Page 6 of 8

0.512

๐Ÿž `attach_hooks` will accept any custom hook

0.511

๐ŸŽ‰ Make `markup2.AD.__repr__` the summary
๐ŸŽ‰ Expose `markup2.AD` as `AD2`
๐ŸŽ‰ Make `icecream` a requirement
๐ŸŽ‰ Min python is 3.8

0.510

๐ŸŽ‰ New IO hooks system in `torch_snippets.trainer.hooks`
๐ŸŽ‰ Updated markup2.AD.summary and add print_summary methods

0.509

๐ŸŽ‰ Experimental `AD` in torch_snippets.markup2 that infers variable names E.g. - `(p=10; AD(p) == {'p': 10})`
๐Ÿž `isin` will not add +1 (useful for both absolute and relative boxes now)
๐Ÿž `write_json` will support numpy, torch and AttrDict

0.508

๐ŸŽ‰ add `find_address` to `AttrDict` that can return all path locations for a specific key
๐ŸŽ‰ add `summary` to `AttrDict` that can give an outline of the dictionary
๐ŸŽ‰ add `write_summary` to `AttrDict` that writes the summary to a textfile
๐ŸŽ‰ `show` can now show bb colors `{"r": (255, 0, 0), "g": (0, 255, 0), "b": (0, 0, 255), "y": (255, 0, 255)}` if `df` has column called `color`
๐ŸŽ‰ `AD` is an alias for `AttrDict`
๐ŸŽ‰ `AD` can directly consume kwargs

0.507

๐Ÿงน import only important functins from `dates.py`
๐ŸŽ‰ add `backup_all_notebooks` that backs up every notebook present in a specific folder
๐ŸŽ‰ `reset_logger` can disable stdout logging if needed, using `disable_stdout=True` kwarg (False by default)
`common_items` will take a list of folders and return common stems from the folders
images will show a black border when grid is True

Page 6 of 8

ยฉ 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.