Downloading and Installation¶
Asteval is a pure python module with no required dependencies outside of the standard library. Asteval will make use of the numpy module if available. The test suite requires the pytest module.
The latest stable version of asteval is 0.9.25.
Versions 0.9.21 and later support and are tested with Python 3.6 through 3.9. Python 3.6 will be supported until at least its official end of life (December 2021). No released version supports Python 3.10 yet.
Versions 0.9.18, 0.9.19, and 0.9.20 supported and were tested with Python 3.5 through 3.8.
Version 0.9.17 was the last version to support Python 2.7.
Download and Installation¶
The latest stable version of asteval is 0.9.25 and is available at PyPI or as a conda package. You should be able to install asteval with:
pip install asteval
It may also be available on some conda channels, including conda-forge, but as it is a pure Python package with no dependencies or OS-specific extensions, using pip should be the preferred method on all platforms and environments.
The latest development version can be found at the github repository, and cloned with:
git clone http://github.com/newville/asteval.git
Installation from source on any platform is:
python setup.py install
The ASTEVAL code is distribution under the following license:
The MIT License Copyright (c) 2021 Matthew Newville, The University of Chicago Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.