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
asteval-0.9.12.tar.gz
(50.7 kB
view details)
File details
Details for the file asteval-0.9.12.tar.gz.
File metadata
- Download URL: asteval-0.9.12.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38f3b0592cae7e7f65adc687e37aad1824a8e518245603a29ec33258277e779b
|
|
| MD5 |
1db193c2c20f4ab41a2ea325940e7712
|
|
| BLAKE2b-256 |
6f6b63b958aef9e2b155450d3059756e68d54ead0898b67a793a7ab79ccbbabd
|