Skip to main content

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


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.24.tar.gz (39.5 kB view details)

Uploaded Source

File details

Details for the file asteval-0.9.24.tar.gz.

File metadata

  • Download URL: asteval-0.9.24.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10

File hashes

Hashes for asteval-0.9.24.tar.gz
Algorithm Hash digest
SHA256 6b440d043e06202ac9da8479fbe3b5704d5e11c48157ba9ea50e9c8b8a5d7ec7
MD5 9280041b27c30879c6c1a40b715b0cb5
BLAKE2b-256 df48a970eaba4d4d19ab98cecd7146fd652b1044ac0ca3554260de74a54fae69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page