Torch-snippets

Latest version: v0.553

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

Scan your dependencies

Page 7 of 8

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

0.506

Info, Debug, Warn and Excep will format ouputs separated by a `;` when args are passed
`notify_waiting` is a new function that letting you know some process is running for an unknown amount of time
optional `delay` during `shutdown_current_notebook`
Info, Debug, Warn and Excep will all have `X_mode` and `in_X_mode` functions much like in_debug_mode and debug_mode
`__init__` will auto pull from logger now
Better non-linear `Timer` (and `Report` and `track2`)

0.505

🧹 `Info`, `Debug`, `Warn` and `Excep` will accept args (instead of a single arg)
🧹 `show` will show h4 headers instead of h2 for dataframe titles

0.504

🧹 `phasify` loads by default
🧹 `show_big_dataframe` can show more rows
πŸŽ‰ add a new submodule `trainer.hooks`
🧹 `show` delegated kwargs to `plt.imshow` for a better readme
πŸŽ‰ `batchify` can batchify multiple containers at once
πŸŽ‰ `cat_with_padding` new function in `torch_loader`
🧹 `L` is json compatible
🐞 `BB` will not decide if something is relative/absolute
πŸŽ‰ `__contains__` for config
πŸŽ‰ `to` works on `AttrDict`
πŸ‘ΆπŸΌ `track2` is a better version of `track` uses corouties
πŸ‘ΆπŸΌ `debug_mode` temporarily activates `DEBUG` mode on
πŸ‘ΆπŸΌ `if in_debug_mode():` lets you know if `DEBUG` mode is on
🧹 `reset_logger` can accept lowercase levels also
🧹 `dumpdill` will return a Path after dumping

0.503

bugfix in `loader.show`
add `today` function to dates
add `are_equal_dates` to dates
add dpi option to pdf

Page 7 of 8

Β© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.