{"id":19175073,"url":"https://github.com/paul-wolf/strgen","last_synced_at":"2026-02-25T02:31:05.502Z","repository":{"id":12888700,"uuid":"15565400","full_name":"paul-wolf/strgen","owner":"paul-wolf","description":"A Python module for a template language that generates randomized data","archived":false,"fork":false,"pushed_at":"2021-03-20T13:26:22.000Z","size":215,"stargazers_count":34,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-08T02:20:43.246Z","etag":null,"topics":["character-set","python","random","random-generation","random-string","randomizer","regular-expression","string-generator","template-language"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paul-wolf.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.txt","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":"2014-01-01T14:46:58.000Z","updated_at":"2023-08-25T22:55:39.000Z","dependencies_parsed_at":"2022-09-17T05:40:32.313Z","dependency_job_id":null,"html_url":"https://github.com/paul-wolf/strgen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/paul-wolf/strgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paul-wolf%2Fstrgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paul-wolf%2Fstrgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paul-wolf%2Fstrgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paul-wolf%2Fstrgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paul-wolf","download_url":"https://codeload.github.com/paul-wolf/strgen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paul-wolf%2Fstrgen/sbom","scorecard":{"id":722878,"data":{"date":"2025-08-11","repo":{"name":"github.com/paul-wolf/strgen","commit":"a23f6343106fc0fc37f35d17ccf9f8cc9060cfda"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"Code-Review","score":0,"reason":"Found 1/29 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.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":"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/main.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/paul-wolf/strgen/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/paul-wolf/strgen/main.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:23","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 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: BSD 3-Clause \"New\" or \"Revised\" 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":"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":"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 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-22T11:54:12.636Z","repository_id":12888700,"created_at":"2025-08-22T11:54:12.639Z","updated_at":"2025-08-22T11:54:12.639Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29809086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","response_time":61,"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":["character-set","python","random","random-generation","random-string","randomizer","regular-expression","string-generator","template-language"],"created_at":"2024-11-09T10:20:51.899Z","updated_at":"2026-02-25T02:31:05.445Z","avatar_url":"https://github.com/paul-wolf.png","language":"Python","readme":"strgen\n======\n\n|Python package| |RTD build|\n\n.. image:: https://img.shields.io/pypi/pyversions/StringGenerator?color=brightgreen\n   :alt: PyPI - Python Version\n\n.. image:: https://badge.fury.io/py/StringGenerator.svg\n    :target: https://badge.fury.io/py/StringGenerator\n    :alt: PyPi Version\n\n      \nGenerate test data, unique ids, passwords, vouchers or other randomized\ntextual data very quickly using a template language. The template\nlanguage is superficially similar to regular expressions but instead of\ndefining how to match or capture strings, it defines how to generate\nrandomized strings. A very simple invocation to produce a random string\nwith word characters of 30 characters length:\n\n.. code:: python\n\n   from strgen import StringGenerator as SG\n   SG(r\"[\\w]{30}\").render()\n   'wQjLVRIj1sjjslORpqLJyDObaCnDR2'\n\n`Full documentation \u003chttps://strgen.readthedocs.io\u003e`__\n\nThe current package requires Python 3.6 or higher. Use version 0.3.4 or\nearlier if you want to use Python 2.7 or an earlier Python 3 version.\n\nNB: with version 0.4.2, the preferred method for generating a unique\nlist is ``StringGenerator.render_set()`` instead of ``render_list()``.\nGenerate 50000 unique secure tokens in a few seconds:\n\n.. code:: python\n\n   secure_tokens = SG(\"[\\p\\w]{32}\").render_set(50000)\n\n``render_set()`` does not support a progress callback.\n\nThere is a rich feature set to randomize strings in situ or include\nexternal data.\n\nThe purpose of this module is to save the Python developer from having\nto write verbose code around the same pattern every time to generate\npasswords, keys, tokens, test data, etc. of this sort:\n\n.. code:: python\n\n   my_secret_key = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(30))\n\nthat is:\n\n1. Hard to read even at this simplistic level.\n\n2. Hard to safely change quickly. Even modest additions to the\n   requirements need unreasonably verbose solutions.\n\n3. Doesn’t use safe encryption standards.\n\n4. Doesn’t provide the implied minimal guarantees of character\n   occurance.\n\n5. Hard to track back to requirements (“must be between x and y in\n   length and have characters from sets Q, R and S”).\n\nThe template uses short forms similar to those of regular expressions.\nAn example template for generating a strong password:\n\n::\n\n    [\\w\\p]{20}\n\nwill generate something like the following:\n\n::\n\n    P{:45Ec5$3)2!I68x`{6\n\nGuarantee at least two “special” characters in a string:\n\n::\n\n    [\\w\\p]{10}\u0026[\\p]{2}\n\nYou can also generate useful test data, like fake emails with plenty of\nvariation:\n\n::\n\n    [\\c]{10}.[\\c]{5:10}@[\\c]{3:12}.(com|net|org)\n\nRequirements\n------------\n\nFrom version 0.4.0, support for Python 2 is dropped. If you still need\nsupport for Python 2, use version 0.3.4.\n\nThere are no dependencies beyond the Python Standard Library.\n\nInstallation\n------------\n\nInstall as standard for Python packages from PyPi:\n\n.. code:: shell\n\n   pip install StringGenerator\n\nLicense\n-------\n\nReleased under the BSD license.\n\nAcknowledgements\n----------------\n\nThanks to Robert LeBlanc who caught some important errors in escaping\nspecial characters. Thanks to Andreas Motl for the progress counter.\n\nOriginal Author: paul.wolf@yewleaf.com\n\n.. |Python package| image:: https://github.com/paul-wolf/strgen/actions/workflows/main.yml/badge.svg\n   :target: https://github.com/paul-wolf/strgen/actions/workflows/main.yml\n\n.. |RTD build| image:: https://readthedocs.org/projects/strgen/badge/?version=latest\n   :target: https://strgen.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n            \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul-wolf%2Fstrgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaul-wolf%2Fstrgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul-wolf%2Fstrgen/lists"}