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

Uploaded Source

File details

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

File metadata

  • Download URL: asteval-0.9.13.tar.gz
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for asteval-0.9.13.tar.gz
Algorithm Hash digest
SHA256 8faf9f92b2b0d2ed376dc149d6bab2e01f614f6994722be9c16f982cbdd07c99
MD5 14e2076ce3dcc576f049221e224423ab
BLAKE2b-256 bc9c3958025163ecc1f38fab5a90da71c1939a99eabadb3a3e581c742048ce04

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