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!
Release files for EvalSafe 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| EvalSafe-1.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| EvalSafe-1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.5 kB
Release files / EvalSafe-1.tar.gz
| Download URL | EvalSafe-1.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
688bc5d34e21961798cc252bd4e0275a1c7c44a445370a1ded0481f5350fe140
|
|
BLAKE2b-256 checksum How to use checksums |
4429e31b708010b8b96449d98ee2ff65f8e048a88c32434f35854837fa8ba9b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / EvalSafe-1-py3-none-any.whl
| Download URL | EvalSafe-1-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f920c55d7439be440671da3bd38ea33c60319d0e0894d4bfa94ef3bc75c65b4
|
|
BLAKE2b-256 checksum How to use checksums |
3656086295125f6b46cdebd9b75b50327cfd8b2ce3eece1c6df2417bbdbf8ed3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|