{"id":21599433,"url":"https://github.com/abichinger/genrex","last_synced_at":"2025-10-08T19:07:46.125Z","repository":{"id":57433677,"uuid":"308683157","full_name":"abichinger/genrex","owner":"abichinger","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-01T21:11:17.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-12T17:29:06.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/abichinger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T16:18:23.000Z","updated_at":"2020-12-14T09:19:33.000Z","dependencies_parsed_at":"2022-08-28T03:01:51.151Z","dependency_job_id":null,"html_url":"https://github.com/abichinger/genrex","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/abichinger/genrex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abichinger%2Fgenrex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abichinger%2Fgenrex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abichinger%2Fgenrex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abichinger%2Fgenrex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abichinger","download_url":"https://codeload.github.com/abichinger/genrex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abichinger%2Fgenrex/sbom","scorecard":{"id":161040,"data":{"date":"2025-08-11","repo":{"name":"github.com/abichinger/genrex","commit":"95d92153e5ece21ed2021860390b121db8df7887"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml: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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/abichinger/genrex/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/abichinger/genrex/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/abichinger/genrex/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/abichinger/genrex/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/abichinger/genrex/test.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:29","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned","Info:   0 out of   1 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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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"}}]},"last_synced_at":"2025-08-16T13:26:08.423Z","repository_id":57433677,"created_at":"2025-08-16T13:26:08.423Z","updated_at":"2025-08-16T13:26:08.423Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000701,"owners_count":26082805,"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-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2024-11-24T18:15:21.596Z","updated_at":"2025-10-08T19:07:46.109Z","avatar_url":"https://github.com/abichinger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Genrex\n\nGenrex generates matching strings to a given regular expressions.\n\n### Usecases\n- generate test data\n- calculate the cardinality of a regular expression.\n\n# Quickstart\n\n## Requirements\n\n- Pyhton 3.x\n\n## Install\n\n```\npip install genrex\n```\n\n## First Steps\n\n```python\nimport genrex\n\nemails = genrex.parse(r'(John|Jane)\\.(Doe|Smith)@(gmail|outlook|protonmail)\\.com')\n\nprint('random email address: ', emails.random())\nprint('first email address: ', emails[0])\nprint('number of email addresses: ', len(emails))\n\nprint('')\n[print(email) for email in emails] #print all emails\n\n```\n\nOutput:\n```\nrandom email address:  Jane.Doe@gmail.com\nfirst email address:  John.Doe@gmail.com\nnumber of email addresses:  12\n\nJohn.Doe@gmail.com\nJane.Doe@gmail.com\nJohn.Smith@gmail.com\nJane.Smith@gmail.com\nJohn.Doe@outlook.com\nJane.Doe@outlook.com\nJohn.Smith@outlook.com\nJane.Smith@outlook.com\nJohn.Doe@protonmail.com\nJane.Doe@protonmail.com\nJohn.Smith@protonmail.com\nJane.Smith@protonmail.com\n```\n\n# Features\n\n### Supported Regular Expression Syntax\n\n- [x] ```.```\n- [x] ```*```\n- [x] ```+```\n- [x] ```?```\n- [x] ```{m}```\n- [x] ```{m,n}```\n- [x] ```|``` - Branch\n- [x] ```[...]``` - Set\n- [x] ```(...)``` - Group\n- [ ] ```\\d```, ```\\s```, ... - Categories\n\n# TODO\n\n- support re flags (e.g. [```re.ASCII```](https://docs.python.org/3/library/re.html#re.ASCII))\n\n# Alternatives\n| Package | License|\n| ------- |:------:|\n| [exrex](https://github.com/asciimoo/exrex) | AGPL-3.0 |\n| [rstr](https://github.com/leapfrogonline/rstr) | BSD |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabichinger%2Fgenrex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabichinger%2Fgenrex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabichinger%2Fgenrex/lists"}