SkillAgentSearch skills...

Safeeval

Safely evaluate simple expressions from untrusted sources

Install / Use

/learn @viur-framework/Safeeval
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

safeeval

Safely evaluate an expression from an untrusted party

Getting Started

Simply install via pip:

pip install safeeval

Prerequisites

No dependencies are required.

Example

Simple Comparision:

import safeeval
ast = safeeval.SafeEval.parse("x == y")
res = safeeval.SafeEval.evalAst(ast, {"x": 4, "y": 3)
print("res", res)

More examples can be found in tests directory.

Contributing

Write issues and provide patches via PRs on github.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated9mo ago
Forks0

Languages

Python

Security Score

77/100

Audited on Jun 6, 2025

No findings