EvalSafe-1
توضیحات
Calculate expressions in a string using eval without security threats!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | EvalSafe-1 |
| نام | EvalSafe |
| نسخه کتابخانه | 1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Zedikon |
| ایمیل نویسنده | mrzedikon@gmail.com |
| آدرس صفحه اصلی | https://github.com/Zedikon/EvalSafe |
| آدرس اینترنتی | https://pypi.org/project/EvalSafe/ |
| مجوز | - |
# EvalSafe
EvalSafe is my small library for python. It's library help you with Calculate expressions in a string using eval without security threats.
(I do not know who needs it, I did it out of boredom)
# Example of using
## If digital data is entered
```import evalsafe```
```print(evalsafe.evals("5 + 5 + 5"))```
**Result: 15**
## If a command from python is entered
```import evalsafe```
```print(evalsafe.evals("print('text')"))```
**Result: Error, incorrect value entered!**
نحوه نصب
نصب پکیج whl EvalSafe-1:
pip install EvalSafe-1.whl
نصب پکیج tar.gz EvalSafe-1:
pip install EvalSafe-1.tar.gz