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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asteval-0.9.31-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asteval-0.9.31.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for asteval-0.9.31.tar.gz
Algorithm Hash digest
SHA256 a2da066b6696dba9835c5f7dec63e0ffb5bd2b4e3bb5f0b9a604aeafb17d833d
MD5 912a93098a40523cd5b052c7766313b8
BLAKE2b-256 807e89beb152649fb53d9f56ee2a4bf92b88bfc6fb62872be657872a140db7dc

See more details on using hashes here.

File details

Details for the file asteval-0.9.31-py3-none-any.whl.

File metadata

  • Download URL: asteval-0.9.31-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for asteval-0.9.31-py3-none-any.whl
Algorithm Hash digest
SHA256 2761750c184d97707c292b62df3b10e330a809a2201721acc435a2b89a114263
MD5 8f9a293a522297389dcab0d71d33602f
BLAKE2b-256 0534bdb51767967cb29302ee7dfe95662b057af7f23c62dd1967fc4b373656aa

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