Calculate expressions in a string using eval without security threats!
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
EvalSafe-1.tar.gz
(1.7 kB
view hashes)
Built Distribution
EvalSafe-1-py3-none-any.whl
(1.8 kB
view hashes)