BSD Ports

math/py-asteval 1.0.10 NetBSD

Safe, minimalistic expression evaluator using ast module

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
6998d0c3fd
License
mit
Categories
math, python
Package size
52.7 KiB, 270.1 KiB installed

Description

ASTEVAL is a safe(ish) evaluator of Python expressions and statements, using Python's ast module. The idea is to provide a simple, safe, and robust miniature mathematical language that can handle user-input. The emphasis here is on mathematical expressions, and so many functions from numpy are imported and used if available.

In the other systems

SystemPortVersion
NetBSDmath/py-asteval1.0.10
DragonFlydevel/py-asteval1.0.5_1

Install

Binary package:

pkgin install py311-asteval

From pkgsrc:

cd /usr/pkgsrc/math/py-asteval && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.0.10
NetBSD 10.1 aarch641.0.9
SmartOS / illumos x86_641.0.10
macOS 15 arm641.0.10

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-asteval-1.0.10, py313-asteval-1.0.10, py314-asteval-1.0.10

Commit history 1

DateCommitCreditsLog message
6998d0c3fd adam py-asteval: updated to 1.0.10
1.0.10 Fix comprehension loop variables leaking into the symbol table Reject assignment to unsafe attribute, including all "dunder" attributes Update security advisory guidelines in SECURITY.md Add CodeQL analysis workflow configuration Fix typo raising exception where node is not defined Use ndarray.reshape instead of assigning to ndarray.shape to avoid NumPy deprecation. Add some testing of implemented/non-implemented nodes Update docs to use breeze theme