Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/asteval/__init__.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
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.13
13 last update: 2018-Sept-29
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, valid_symbol_name, make_symbol_table,
22 get_ast_names)
23from ._version import get_versions
25__all__ = ['Interpreter', 'NameFinder', 'valid_symbol_name',
26 'make_symbol_table', 'get_ast_names']
28__version__ = get_versions()['version']
29del get_versions