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

Uploaded Source

File details

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

File metadata

  • Download URL: asteval-0.9.9.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asteval-0.9.9.tar.gz
Algorithm Hash digest
SHA256 ca0c8bb2e7ae305f1a073dc6ed9c1c050943a7e32821f8486230cd645db3888f
MD5 7df73ee495b9965b205171a6fb6f3dbe
BLAKE2b-256 b46458d1ef4d95c1ebe57d21f897a82b74b2670083b993701c8c0a047762ab4a

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