BSD Ports

devel/py-asteval 1.0.5_1 DragonFly

Safe, minimalistic evaluator of python expression using ast module

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
47.0 KiB, 243.4 KiB installed

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.

In the other systems

SystemPortVersion
DragonFlydevel/py-asteval1.0.5_1
FreeBSDdevel/py-asteval1.0.10
NetBSDmath/py-asteval1.0.10
HardenedBSDdevel/py-asteval1.0.10
GhostBSDdevel/py-asteval1.0.10

Install

Binary package:

pkg install py311-asteval

From DPorts:

cd /usr/dports/devel/py-asteval && make install clean

Dependencies

Run dependencies 2
Required by 1