{"id":19664422,"url":"https://github.com/ljnath/pyrandomstring","last_synced_at":"2025-02-27T03:42:33.648Z","repository":{"id":62582965,"uuid":"145430503","full_name":"ljnath/PyRandomString","owner":"ljnath","description":"Python library to generate N random strings of M length","archived":false,"fork":false,"pushed_at":"2023-11-16T08:33:44.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T02:19:39.379Z","etag":null,"topics":["number-generator","password","password-generator","pypi","pypi-packages","python-library","python3","random","random-generation","random-string","random-string-generator","random-string-generators","randomstring","randomstringsgenerator","randomstringutils","string-generator","string-manipulation","username-generator"],"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/ljnath.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2018-08-20T14:43:53.000Z","updated_at":"2023-11-07T06:57:11.000Z","dependencies_parsed_at":"2023-02-08T20:01:09.112Z","dependency_job_id":null,"html_url":"https://github.com/ljnath/PyRandomString","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FPyRandomString","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FPyRandomString/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FPyRandomString/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FPyRandomString/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljnath","download_url":"https://codeload.github.com/ljnath/PyRandomString/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240974302,"owners_count":19887290,"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","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":["number-generator","password","password-generator","pypi","pypi-packages","python-library","python3","random","random-generation","random-string","random-string-generator","random-string-generators","randomstring","randomstringsgenerator","randomstringutils","string-generator","string-manipulation","username-generator"],"created_at":"2024-11-11T16:17:46.012Z","updated_at":"2025-02-27T03:42:33.620Z","avatar_url":"https://github.com/ljnath.png","language":"Python","readme":"# PyRandomString\n### Version : 0.0.6\n\nAuthor : Lakhya Jyoti Nath (ljnath)\u003cbr\u003e\nDate : June 2019 - January 2023\u003cbr\u003e\nEmail : ljnath@ljnath.com\u003cbr\u003e\nWebsite : https://www.ljnath.com\n\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyrandomstring)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/pyrandomstring)\n![PyPI - Status](https://img.shields.io/pypi/status/pyrandomstring)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/pyrandomstring)\n![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/ljnath/PyRandomString)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ljnath/PyRandomString/python-package.yml)\n[![Code Coverage][codecov-image]][codecov-link]\n[![PyPI Version][pypi-image]][pypi-link]\n![License][license-image-mit]\n\n\n\n## Introduction\nPyRandomString is a python library to generate N random list of string of M length\nIt is parameterized to generate strings of random number and length which is returned as a list. It can be used to generate a large number of numbers, strings etc.\n\n## Parameters\n* **count** : *Integer - Total number of strings to be generated (default is 10). Not applicable for get_string() method*\n* **max_length** : *Integer - Maximum length of each generated string (default is 10)*\n* **random_length** : *Boolean choice - if the length of each word should be random or not. Incase of random length the maximum value is 'max_length'*\n* **symbols** : *String - Custom symbols which you want to use during random string generation. It should be a subset of the supported symbols and it is applicable only when the 'string_type' is of type 'SYMBOLS' or '_WITH_SYMBOLS'*\n* **string_type** : *PyRandomString.StringType - Type of characters to be used for generating random strings*\n    * **NUMERIC** : *0123456789*\n    * **SYMBOLS** : *\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[\\]^_`{|}~*\n    * **ALPHABET_LOWERCASE** : *abcdefghijklmnopqrstuvwxyz*\n    * **ALPHABET_UPPERCASE** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ*\n    * **ALPHABET_ALL_CASE** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ*\n    * **ALPHA_NUMERIC_LOWERCASE** : *abcdefghijklmnopqrstuvwxyz0123456789*\n    * **ALPHA_NUMERIC_UPPERCASE** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*\n    * **ALPHA_NUMERIC_ALL_CASE** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*\n    * **ALPHABET_LOWERCASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyz\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[\\]^_`{|}~*\n    * **ALPHABET_UPPERCASE_WITH_SYMBOLS** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[\\]^_`{|}~*\n    * **ALPHABET_ALL_CASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[\\]^_`{|}~*\n    * **ALPHA_NUMERIC_LOWERCASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyz0123456789\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[\\]^_`{|}~*\n    * **ALPHA_NUMERIC_UPPERCASE_WITH_SYMBOLS** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[\\]^_`{|}~*\n    * **ALPHA_NUMERIC_ALL_CASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[\\]^_`{|}~*\n    \n\n## How to use\n\n```\nimport PyRandomString\n\npy_random_string = PyRandomString.RandomString()\n\n## calling method to get a single random string\nrandom_string = py_random_string.get_string(string_type=PyRandomString.StringType.ALPHA_NUMERIC_ALL_CASE, random_length=False, max_length=10)\nprint('Single random string is {}'.format(random_string))\n\n## calling method to get a single random string with custom symbols\nrandom_string = py_random_string.get_string(string_type=PyRandomString.StringType.ALPHA_NUMERIC_ALL_CASE_WITH_SYMBOLS, random_length=False, max_length=10, symbols='+-*#$%^\u0026')\nprint('Single random string with custom symbol is {}'.format(random_string))\n\n## calling method to get a list of random string\nrandom_strings = py_random_string.get_strings(string_type=PyRandomString.StringType.ALPHA_NUMERIC_ALL_CASE_WITH_SYMBOLS, random_length=False, max_length=10, count=5)\nprint('Following are the generated random strings \\n{}'.format('\\n'.join(random_strings)))\n\n## calling method to get a list of random string and forcing to use characters of each type\nrandom_strings = py_random_string.get_strings(string_type=PyRandomString.StringType.ALPHA_NUMERIC_ALL_CASE_WITH_SYMBOLS, random_length=False, max_length=10, count=5, must_include_all_type=True)\nprint('Following are the generated random strings \\n{}'.format('\\n'.join(random_strings)))\n\n```\n\n\n[pypi-image]: https://img.shields.io/pypi/v/pyrandomstring.svg\n[pypi-link]: https://pypi.org/project/pyrandomstring/\n[license-image-mit]: https://img.shields.io/badge/license-MIT-orange.svg\n[snyk-image]: https://snyk.io//test/github/ljnath/PyRandomString/badge.svg?targetFile=requirements.txt\n[snyk-link]: https://snyk.io//test/github/ljnath/PyRandomString?targetFile=requirements.txt\n[codecov-image]: https://codecov.io/gh/ljnath/pyrandomstring/branch/master/graph/badge.svg\n[codecov-link]: https://codecov.io/gh/ljnath/PyRandomString\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljnath%2Fpyrandomstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljnath%2Fpyrandomstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljnath%2Fpyrandomstring/lists"}