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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file EvalSafe-1.tar.gz.
File metadata
- Download URL: EvalSafe-1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.8.2 requests/2.25.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
688bc5d34e21961798cc252bd4e0275a1c7c44a445370a1ded0481f5350fe140
|
|
| MD5 |
41a6a71428f7aaa6896b914e55a30d10
|
|
| BLAKE2b-256 |
4429e31b708010b8b96449d98ee2ff65f8e048a88c32434f35854837fa8ba9b7
|
File details
Details for the file EvalSafe-1-py3-none-any.whl.
File metadata
- Download URL: EvalSafe-1-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.8.2 requests/2.25.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f920c55d7439be440671da3bd38ea33c60319d0e0894d4bfa94ef3bc75c65b4
|
|
| MD5 |
ee12cb161cafd1bbeeef2aae23c7ff96
|
|
| BLAKE2b-256 |
3656086295125f6b46cdebd9b75b50327cfd8b2ce3eece1c6df2417bbdbf8ed3
|