Torch-snippets

Latest version: v0.547

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

Scan your dependencies

Page 1 of 7

0.546

🎉 Add profiler

0.545

🎉 environment variable `AD_SHOW_FULL_STRINGS` can be set to non-empty to show full strings in summary
🎉 better integration for unknown datatypes in `AD.summary`

0.544

🎉 Quality of life improvements in logging
🎉 Add support for `dataclass` in `AD`
🎉 DeepDiff integrated into `AD`. Now you can call x.diff(y) where x is `AD` and y is `AD`able
🎉 `AD.d` (no brackets, d is a property) to convert the object to dictionary
✨ `read_json` can also do json.loads if input is not a file path
✨ `json` is loaded by default on import *

0.540

✨ Made all imports lazy for a faster import experience

0.539

✨ set `AD_SHOW_TAB_STOPS` env variable to anything to print with tab-stops (only recommended to see on REPL. Default is good for storing files)
✨ `crop_from_bb` has `padding` (px,py,pX,pY)
🐞 minor bugfix in `AD`
🎉 `AD` has a `fetch2` which preserves json structure while fetching all the leafs of the same name
🎉 `AD` has a `flatten` which flattens all nested jsons into flat dictionary with '.' combined key names
🎉 `AD` has a `flatten_and_make_dataframe` which creates one column for each nesting
✨ `tryy` will store all its errors and can be accessed by calling `<func>.error_summary()`
🎉 torch snippets as a new cli function called `ts`, thanks to the wonderful `Typer`. Try
`ts time`
`ts zen-of python`
`ts zen-of c++`
`ts --help`

0.538.1

✨ slightly better error printing in `tryy`

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.