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.15.tar.gz
(53.0 kB
view details)
File details
Details for the file asteval-0.9.15.tar.gz.
File metadata
- Download URL: asteval-0.9.15.tar.gz
- Upload date:
- Size: 53.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10445b8e8cc748f4b44148b2c3b9a1d5042cf0a84a110525193fb156e1de8205
|
|
| MD5 |
80ff07e20efe2fb56ac4fd6ac894181f
|
|
| BLAKE2b-256 |
540b57690c5cddcc0893ac71c21ede4b715bba38b8d8eb3a3a99516e3f431e4c
|