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
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-asteval | 1.0.5_1 |
| FreeBSD | devel/py-asteval | 1.0.10 |
| NetBSD | math/py-asteval | 1.0.10 |
| HardenedBSD | devel/py-asteval | 1.0.10 |
| GhostBSD | devel/py-asteval | 1.0.10 |
Install
Binary package:
pkg install py311-asteval
From DPorts:
cd /usr/dports/devel/py-asteval && make install clean