Name | ruid JSON |
Version |
0.1.2
JSON |
| download |
home_page | https://github.com/kashifpk/ruid |
Summary | Reasonably unique and readable identifier generator |
upload_time | 2024-08-30 23:44:19 |
maintainer | None |
docs_url | None |
author | Kashif Iftikhar |
requires_python | <4.0,>=3.8 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Description
Generates reasonably unique (slim chance of duplicates) and readable (avoids characters that look similar) fixed width string identifiers. These identifiers are useful as API tokens, database record identifiers (primary keys, etc) among other things.
## Installation
```shell
pip install ruid
```
or
```shell
poetry add ruid
```
## Length considerations
- The function uses current date and time to determine part of the random string. This has the advantage of ensuring fewer collisions at different timestamps but also means that a length of 6 would result in same token generated within the same second.
- A reasonable default length of 10 ensures more than 6 million tokens per second.
- Length of 7 or less discards the datetime logic and just generates a random token.
Raw data
{
"_id": null,
"home_page": "https://github.com/kashifpk/ruid",
"name": "ruid",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Kashif Iftikhar",
"author_email": "kashif@compulife.com.pk",
"download_url": "https://files.pythonhosted.org/packages/c7/64/3d10115b30acb793241b8aded3b1c6ec84226f47354dfc59e01b9949eb05/ruid-0.1.2.tar.gz",
"platform": null,
"description": "# Description\n\nGenerates reasonably unique (slim chance of duplicates) and readable (avoids characters that look similar) fixed width string identifiers. These identifiers are useful as API tokens, database record identifiers (primary keys, etc) among other things.\n\n## Installation\n\n```shell\npip install ruid\n```\n\nor\n\n```shell\npoetry add ruid\n```\n\n## Length considerations\n\n- The function uses current date and time to determine part of the random string. This has the advantage of ensuring fewer collisions at different timestamps but also means that a length of 6 would result in same token generated within the same second.\n- A reasonable default length of 10 ensures more than 6 million tokens per second.\n- Length of 7 or less discards the datetime logic and just generates a random token.\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Reasonably unique and readable identifier generator",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/kashifpk/ruid",
"Repository": "https://github.com/kashifpk/ruid"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5d6df4a96196f1f31e70c5f12ecedb88d369c212e752fb44c1004081ab2c4e87",
"md5": "dc137224591f66fc2d1d3f2695a4cd92",
"sha256": "dfcbc1c33c8baa3194e473eb9d8d1cf6768bd9a214becc79a7d3901ffe13380c"
},
"downloads": -1,
"filename": "ruid-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dc137224591f66fc2d1d3f2695a4cd92",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 1812,
"upload_time": "2024-08-30T23:44:18",
"upload_time_iso_8601": "2024-08-30T23:44:18.122438Z",
"url": "https://files.pythonhosted.org/packages/5d/6d/f4a96196f1f31e70c5f12ecedb88d369c212e752fb44c1004081ab2c4e87/ruid-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c7643d10115b30acb793241b8aded3b1c6ec84226f47354dfc59e01b9949eb05",
"md5": "839ba5d1b6d2878a6e611255782887c2",
"sha256": "a3492f5d7c18cf2330ada17d90ca041fa90e6698d232f69016e391637ad3300a"
},
"downloads": -1,
"filename": "ruid-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "839ba5d1b6d2878a6e611255782887c2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 1453,
"upload_time": "2024-08-30T23:44:19",
"upload_time_iso_8601": "2024-08-30T23:44:19.494045Z",
"url": "https://files.pythonhosted.org/packages/c7/64/3d10115b30acb793241b8aded3b1c6ec84226f47354dfc59e01b9949eb05/ruid-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-30 23:44:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kashifpk",
"github_project": "ruid",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ruid"
}