Safe, minimalistic evaluator of python expression using ast module
Project description
ASTEVAL provides a numpy-aware, safe(ish) ‘eval’ function Emphasis is on mathematical expressions, and so numpy ufuncs are used if available. Symbols are held in the Interpreter symbol table ‘symtable’: a simple dictionary supporting a simple, flat namespace. Expressions can be compiled into ast node for later evaluation, using the values in the symbol table current at evaluation time.
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 asteval-0.9.32.tar.gz.
File metadata
- Download URL: asteval-0.9.32.tar.gz
- Upload date:
- Size: 57.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bef25a973d378fda21c83a38c6292c4d0d94773f49f42073e69dbb19932bb74
|
|
| MD5 |
c991c9a55afdfca233dc228727ba9110
|
|
| BLAKE2b-256 |
0cb0679b5d61feefa6938f7d80e3a3ab8c8d6df76beac7a40d5d1fd09277cb9f
|
File details
Details for the file asteval-0.9.32-py3-none-any.whl.
File metadata
- Download URL: asteval-0.9.32-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d0da45a15f15eeb88bb53cf4c352591ccb00f00f81f74649fd7084519adc3fe
|
|
| MD5 |
045e1dfa897fad9a1684063adcbe75fa
|
|
| BLAKE2b-256 |
b0f92d6aed51125d4b5b7279ae98b51d9c9c906b8217269b117a000de50727a6
|