Observed since 21 Oct, 09:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A number-type-agnostic calculator.
A Python3 library that parses strings representing mathematical expressions. The Calculator takes a converter by which means you can specify numerical types other than regular base 10 numbers. There is one converter available: roman.
Using pip:
pip install agnostic-calculator
Manually:
git clone git@github.com:carawarner/calculator.git
cd calculator/calculator
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
This libary uses pytest, a powerful but lightweight testing tool for Python.
cd calculator
pytest
WARNING: Don't use agnostic-calculator in production. The calculator library calls Python's eval() on user input. It's not safe.
from calculator.calculator import Calculator
import calculator.converters.roman as converter
calculator = Calculator(converter)
result = calculator.evaluate(expression)
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.1.0 | 5 Jun 2018 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:58531fcad0d0995d203c6d93d1cb31887fc4a4972227e36cf7b813653e1c8ee4