Metadata-Version: 2.1
Name: safeeval
Version: 0.0.6
Summary: Safely evaluates simple python expressions
Home-page: https://github.com/viur-framework/safeeval
Author: Mausbrand Informationssysteme GmbH
Author-email: team@viur.dev
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Interpreters
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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

* **Tobias Steinrücken** - *Initial work* - [Mausbrand Informationsysteme GmbH](https://github.com/viur-framework/safeeval)
* **Stefan Kögl** - *Packaging, callable support, docstrings* - [Mausbrand Informationsysteme GmbH](https://github.com/viur-framework/safeeval) 

See also the list of [contributors](https://github.com/viur-framework/safeeval/blob/master/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
