evalmath that can help you make a advanced calculator with simple code
Project description
EvalMath
Module that only have one fuction
Want to use eval as calculator but you fear that some user will hack you code?
Use evalmath!
Its quite simple
Usage
import evalmath
print(evalmath.calculate('3-4/8'))
import evalmath
question = str(input('Insert math question: '))
print(evalmath.calculate(question))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
evalmath-1.0.0.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file evalmath-1.0.0.tar.gz
.
File metadata
- Download URL: evalmath-1.0.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d26d15ffe5b71158bc108caa4ca9e906cfb2d169ab89116c3b5f6a58353a055e |
|
MD5 | 12eb23ab3c6323b331c0ce6b62e32980 |
|
BLAKE2b-256 | b3fbc7cacbecba8af459d74edf7f4f31e00dbb084f39315edb6668b49fa86b9f |
File details
Details for the file evalmath-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: evalmath-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41fd2b8d00216ecbb28334c2bb228ea70c18c91357faa5f9e0634634e0202daa |
|
MD5 | 1a96b7bc79ffa105703c566dc1bafb18 |
|
BLAKE2b-256 | 6386c9f976f869fa94f23d31d2b10b102df921eb3a51ef306360e8458055a307 |