{"id":18124598,"url":"https://github.com/alvarofpp/mre","last_synced_at":"2026-03-06T17:35:35.521Z","repository":{"id":45136301,"uuid":"156229997","full_name":"alvarofpp/mre","owner":"alvarofpp","description":"Maker Regular Expressions.","archived":false,"fork":false,"pushed_at":"2024-02-06T23:19:35.000Z","size":143,"stargazers_count":8,"open_issues_count":8,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T01:44:58.107Z","etag":null,"topics":["maker","python-3","regex","regular-expression"],"latest_commit_sha":null,"homepage":"","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/alvarofpp.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-11-05T14:21:50.000Z","updated_at":"2024-09-03T14:25:32.000Z","dependencies_parsed_at":"2024-02-07T00:27:49.740Z","dependency_job_id":"4660d49a-61ac-4d46-8f63-ccbedf336acd","html_url":"https://github.com/alvarofpp/mre","commit_stats":{"total_commits":117,"total_committers":14,"mean_commits":8.357142857142858,"dds":0.3931623931623932,"last_synced_commit":"025a5f10b92a0a4bf32d673509958b660871b2f6"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/alvarofpp/mre","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarofpp%2Fmre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarofpp%2Fmre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarofpp%2Fmre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarofpp%2Fmre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvarofpp","download_url":"https://codeload.github.com/alvarofpp/mre/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvarofpp%2Fmre/sbom","scorecard":{"id":187525,"data":{"date":"2025-08-11","repo":{"name":"github.com/alvarofpp/mre","commit":"406c22612dde56cfbbb29aa27491a535fd99771d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"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":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":"Code-Review","score":0,"reason":"Found 0/9 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/linters_and_tests.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.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":"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":"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":"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/linters_and_tests.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/alvarofpp/mre/linters_and_tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linters_and_tests.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/alvarofpp/mre/linters_and_tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/alvarofpp/mre/publish.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating python:3.10.1-slim-buster to python:3.10.1-slim-buster@sha256:90f5d50eea79a68c10c1af2b6d9cb8a5c7639bb2947be6aacce9ef9850788dd3","Warn: pipCommand not pinned by hash: Dockerfile:4","Warn: pipCommand not pinned by hash: Dockerfile:7","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   2 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":"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":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-5cpq-8wj7-hf2v","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: PYSEC-2023-254 / GHSA-jfhm-5ghh-2f97","Warn: Project is vulnerable to: GHSA-jm77-qphf-c4w8","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: GHSA-w7pp-m8wf-vj6r","Warn: Project is vulnerable to: GHSA-x4qr-2fvf-3mr5","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"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 25 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-16T20:04:24.604Z","repository_id":45136301,"created_at":"2025-08-16T20:04:24.604Z","updated_at":"2025-08-16T20:04:24.604Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30188290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T17:33:53.563Z","status":"ssl_error","status_checked_at":"2026-03-06T17:33:51.678Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["maker","python-3","regex","regular-expression"],"created_at":"2024-11-01T08:06:51.594Z","updated_at":"2026-03-06T17:35:35.332Z","avatar_url":"https://github.com/alvarofpp.png","language":"Python","readme":"# Maker Regular Expression\n\n\u003ca href=\"https://pypi.org/project/mre/\"\u003e\n  \u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/mre.svg\"\u003e\n\u003c/a\u003e\n\nThis is a simple package to make regular expressions in Python.\n\n```bash\npip install mre\n```\n\n- Test regex: [Regex101](https://regex101.com/);\n- [Regular expression operations](https://docs.python.org/3/library/re.html).\n\n## Documentation\n\n- [da-DK :denmark:](docs/da_DK.md) \u003csmall\u003e(v. 0.8)\u003c/small\u003e\n- [de-DE :de:](docs/de_DE.md) \u003csmall\u003e(v. 0.8)\u003c/small\u003e\n- [en-US :us:](docs/en_US.md) \u003csmall\u003e(v. 0.9)\u003c/small\u003e\n- [es-ES :es:](docs/es_ES.md) \u003csmall\u003e(v. 0.8)\u003c/small\u003e\n- [pt-BR :brazil:](docs/pt_BR.md) \u003csmall\u003e(v. 0.11)\u003c/small\u003e\n- [ru-RU :ru:](docs/ru_RU.md) \u003csmall\u003e(v. 0.8)\u003c/small\u003e\n- [uk-UA :ukraine:](docs/uk_UA.md) \u003csmall\u003e(v. 0.8)\u003c/small\u003e\n\n## Examples\n\n```python\nfrom mre import Regex, Group\n\nrgx_one = Regex(\"Hello world\")  # Hello world\nrgx_two = Regex(\"Hello\", \" world\")  # Hello world\nrgx_three = Regex(\"Hello\") + \" \" + Regex(\"world\")  # Hello world\nrgx_four = Regex('\u003c', Group('h[1-6]'), '\u003e')  # \u003c(h[1-6])\u003e\nrgx_five = Regex('\u003c', Regex.SLASH, 1, '\u003e')  # \u003c\\/\\1\u003e\n```\n\n```python\nfrom mre import Set\nfrom mre.helper import Range\n\n# All digits\ndigits = Set(Range(0, 9))\n# Add comment\ndigits = digits.comment('Get all digits')\n\n# Output: [0-9](?#Get all digits)\n```\n\n```python\nfrom mre import Regex, Set, Comment\n\n# All digits\ndigits = Set(Regex(\"0-9\"))\n# CEP comment\ncep_comment = Comment('Get zip code Brazil on input')\n# CEP regex\nrgx_cep = Regex(\n    digits.quantifier(5),\n    Regex(\"-\").quantifier(0, 1),\n    digits.quantifier(3),\n    cep_comment\n)\n\n# Output: [0-9]{5}-?[0-9]{3}(?#Get zip code Brazil on input)\n```\n\n## Tests\n\nTo test the package just run the following command:\n\n```shell\n# (first time only) Build the Docker image\nmake build\n\n# Run tests\nmake test\n\n# Run tests and check coverage\nmake test-coverage\n```\n\n## Contributing\n\nContributions are more than welcome. Fork, improve and make a pull request.\nFor bugs, ideas for improvement or other, please create an [issue][issues].\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n[issues]: https://github.com/alvarofpp/mre/issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarofpp%2Fmre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvarofpp%2Fmre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarofpp%2Fmre/lists"}