Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/asteval/__init__.py: 100%
4 statements
« prev ^ index » next coverage.py v7.2.6, created at 2023-05-28 06:19 +0000
« prev ^ index » next coverage.py v7.2.6, created at 2023-05-28 06:19 +0000
1"""
2 ASTEVAL provides a numpy-aware, safe(ish) "eval" function
4 Emphasis is on mathematical expressions, and so numpy ufuncs
5 are used if available. Symbols are held in the Interpreter
6 symbol table 'symtable': a simple dictionary supporting a
7 simple, flat namespace.
9 Expressions can be compiled into ast node for later evaluation,
10 using the values in the symbol table current at evaluation time.
12 version: 0.9.27
13 last update: 2022-Feb-05
14 License: MIT
15 Author: Matthew Newville <newville@cars.uchicago.edu>
16 Center for Advanced Radiation Sources,
17 The University of Chicago
18"""
20from .asteval import Interpreter
21from .astutils import (NameFinder, get_ast_names, make_symbol_table,
22 valid_symbol_name)
24from .version import version as __version__
26__all__ = ['Interpreter', 'NameFinder', 'valid_symbol_name',
27 'make_symbol_table', 'get_ast_names', '__version__']