Metadata-Version: 2.4
Name: very-safe
Version: 0.1.0
Summary: The safest Python package ever created. It never crashes.
Author: robert-ish
License-Expression: MIT
Project-URL: Homepage, https://github.com/robert-ish/very_safe
Project-URL: Repository, https://github.com/robert-ish/very_safe
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# verysafe
very-safe is a library that has a function to execute functions very safely!
yeah thats it
## Installation
### Requirements
python >= 3.7
---

```bash
pip install very-safe
```
## Functions
### very_safe.very_safe(func, *args)
Main function.
Handles a function, if it fails, tries to give an error message with 5 different methods before passing.
### very_safe.safe_print(error_message)
Tries to print error_message with 5 different methods before passing!
- method 1: print()
- method 2: true_print() (builtins print stored when importing)
- method 3: sys.stdout.write() + sys.stdout.flush()
- method 4: os.write()
- method 5: save to file (error_log.txt)
### very_safe.safe_name(obj)
Tries to get a name from obj.
Uses 3 different methods before fallback:
- method 1: getattr() the name, default to str(obj)
- method 2: str(obj)
- method 3: repr(obj)
### License
MIT
