Metadata-Version: 2.1
Name: sheval
Version: 1.0.4
Summary: Safely evaluate mathematical and logical expressions.
Home-page: https://gitlab.com/deepadmax/deval
License: GPL-3.0-or-later
Author: Maximillian Strand
Author-email: maxi@millian.se
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Project-URL: Repository, https://gitlab.com/deepadmax/deval
Description-Content-Type: text/markdown

# 🐴 sheval

Safely evaluate mathematical and logical expressions. Most operations are supported.

### Whitelisted data types
For security, only certain data types are allowed:<br>
`str`, `int`, `float`, `complex`, `list`, `tuple`, `set`, `dict`, `bool`, `bytes`, `NoneType`

## Example

```py
from sheval import sheval

_locals = dict(x=3, y=1, z=4)

sheval('x > y <= z', _locals)
```
