Python package math_problem_generator
A python package for generating simple math problems. The package is only for generating the problems. There is no support for presentation or user interaction.
Examples
How to use the package.
# Import the package
from math_problem_generator import generator
# Generate 2 simple addition problems with
# 4 numbers between 1 and 10 to be added
p = generator.simple_problems(
"add",no_of_problems=2,min_number=1,max_number=10,numbers=4
)
# Print the math problems
print(p)
The code above should print something like this:
[
{'type': 'simple', 'operator': 'add', 'numbers': [5, 2, 3, 6], 'solution': 16, 'users_answer': None},
{'type': 'simple', 'operator': 'add', 'numbers': [6, 10, 10, 5], 'solution': 31, 'users_answer': None}]
]
Development
Setup virtual environment
python3 -m venv .venvsource .venv/bin/activatepip3 install -r requirements-dev.txtpip install -e src/pre-commit install
Leave virtual environment (when done)
deactivate
Metadata
Release files for math-problem-generator 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| math-problem-generator-0.0.3.tar.gz | 14.6 kB | Without provenance | Details for math-problem-generator-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| math_problem_generator-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for math_problem_generator-0.0.3-py3-none-any.whl |
Total release size: 29.7 kB
Release files / math-problem-generator-0.0.3.tar.gz
| Download URL | math-problem-generator-0.0.3.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33b9f0dbef45dd255d0012b2f175f8bd4adb87da6e0b8db31cb0fd34f46a05ab
|
|
BLAKE2b-256 checksum How to use checksums |
3b965684fd2b5b9c3269c82ee8b5e37ceb3b0c78d487063d129a1dc5f45cc2f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / math_problem_generator-0.0.3-py3-none-any.whl
| Download URL | math_problem_generator-0.0.3-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91849f83ea966963d77ecec72568ce04e0936746d9372296e2244405d843a0ad
|
|
BLAKE2b-256 checksum How to use checksums |
4cd52fe9e90d3b75a2ce4f5e46088127277034cf89cfe49a29732e6a96b708c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for math-problem-generator 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.