{"id":13551190,"url":"https://github.com/lukew3/mathgenerator","last_synced_at":"2026-01-17T17:07:10.836Z","repository":{"id":45252454,"uuid":"288872071","full_name":"lukew3/mathgenerator","owner":"lukew3","description":"A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.","archived":false,"fork":false,"pushed_at":"2025-06-24T03:09:58.000Z","size":9110,"stargazers_count":713,"open_issues_count":35,"forks_count":184,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-09-25T06:39:19.775Z","etag":null,"topics":["contributions-welcome","education","generator","learning","math","mathematics","maths","python","python3"],"latest_commit_sha":null,"homepage":"https://lukew3.github.io/mathgenerator","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukew3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-20T01:05:40.000Z","updated_at":"2025-09-22T06:28:55.000Z","dependencies_parsed_at":"2024-04-14T15:51:42.539Z","dependency_job_id":null,"html_url":"https://github.com/lukew3/mathgenerator","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/lukew3/mathgenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukew3%2Fmathgenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukew3%2Fmathgenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukew3%2Fmathgenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukew3%2Fmathgenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukew3","download_url":"https://codeload.github.com/lukew3/mathgenerator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukew3%2Fmathgenerator/sbom","scorecard":{"id":604901,"data":{"date":"2025-08-11","repo":{"name":"github.com/lukew3/mathgenerator","commit":"b3c584db4bdcf9f1ceb4cf8bf915ee838225f9f0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 8/30 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/gen-gh-pages-data.yml:1","Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen-gh-pages-data.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/gen-gh-pages-data.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen-gh-pages-data.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/gen-gh-pages-data.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen-gh-pages-data.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/gen-gh-pages-data.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gen-gh-pages-data.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/gen-gh-pages-data.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/tests.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/lukew3/mathgenerator/tests.yaml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/gen-gh-pages-data.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/gen-gh-pages-data.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-5vgj-ggm4-fg62","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T01:21:09.024Z","repository_id":45252454,"created_at":"2025-08-21T01:21:09.024Z","updated_at":"2025-08-21T01:21:09.024Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007457,"owners_count":26084313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contributions-welcome","education","generator","learning","math","mathematics","maths","python","python3"],"created_at":"2024-08-01T12:01:43.905Z","updated_at":"2025-10-11T14:30:32.646Z","avatar_url":"https://github.com/lukew3.png","language":"Python","readme":"# mathgenerator\n\n\u003e [!WARNING]\n\u003e I (lukew3), am no longer interested in maintaining this project. If you have a use case for this project and have the abilities to grow it and ensure/improve it's quality, email me at lukew25073@gmail.com and I will consider adding you as a maintainer. Thanks!\n\nA math problem generator, created for the purpose of giving teachers and students the means to easily get access to random math exercises to suit their needs.\n\nTo try out generators, go to \u003chttps://mathgenerator-demo.netlify.app\u003e\n\nSee [CONTRIBUTING.md](https://github.com/lukew3/mathgenerator/blob/main/CONTRIBUTING.md) for information about how to contribute.\n\n## Table of Contents\n* [Installation](#installation)\n* [Usage](#usage)\n* [Documentation](#documentation)\n\n## Installation\n\nThe project can be install via pip\n\n```bash\npip install mathgenerator\n```\n\n## Usage\nHere is an example of how you would generate an addition problem:\n\n```python\nimport mathgenerator\n\n#generate an addition problem\nproblem, solution = mathgenerator.addition()\n\n#another way to generate an addition problem using genById()\nproblem, solution = mathgenerator.genById(0)\n```\nYou may prefer to use `import mathgenerator as mg` and run functions like `mg.addition()` so that you don't have to type as much.\n\u003c!--\n### Creating a worksheet\nIf you wish to create a worksheet, you can use the [worksheetgen](https://github.com/lukew3/worksheetgen) package. Install this with `pip install worksheetgen`. Here is an example of how a worksheet would be generated.\n```\nfrom mathgenerator import mathgen\nfrom worksheetgen.wg import Worksheet\n\nws = Worksheet(\"Worksheet title\")\nwith ws.section('Section 1', description='These are instructions')\n\t# Writes 10 problems generated with id 1, [0] at the end specifies to take problem, and not solution.\n\tfor _ in range(10):\n\t\tws.add_problem(mathgen.genById(1)[0])\nws.write_pdf()\n```\nThis creates the pdf `ws.pdf` in your current directory\n--\u003e\nProblem/solution pairs are generated with either:\n* `mathgenerator.\u003cgenerator_name\u003e()` - generates a problem, solution set from the given generator name.\n* `mathgenerator.genById(id)` - generates a problem, solution set with generator id provided by the `id` parameter\n\n\u003c!--\n#### `format` kwarg\n* Pass `format=latex` to return problem and solution set as latex. If latex is not available for that generator, the problem will return the string \"Latex unavailable\"\n* Pass `format=raw` to return just the raw data for each generator. An array of each variable necessary to the generator is returned.\n* If you don't pass a value to the format kwarg, the generator will return a problem and answer in asciimath format.\n--\u003e\nYou can also use `getGenList()` to return a list of all generators included in the library in the format:\n```\n[funcname, subjectname]\n```\n\n## Documentation\nDocumentation can be found at https://lukew3.github.io/mathgenerator\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukew3%2Fmathgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukew3%2Fmathgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukew3%2Fmathgenerator/lists"}