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

Uploaded Source

File details

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

File metadata

  • Download URL: asteval-0.9.14.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for asteval-0.9.14.tar.gz
Algorithm Hash digest
SHA256 7c81fee6707a7a28e8beae891b858535a7e61f9ce275a0a4cf5f428fbc934cb8
MD5 62a03cadf172cbbf09e1567c655a2aee
BLAKE2b-256 eea1c6273e6cbebe0b9e2e620ae78d535cdf0e4b972656f3271590cd0fa8b6de

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