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
pip install ruid
or
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.
Metadata
Release files for ruid 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ruid-0.1.2.tar.gz | 1.5 kB | Without provenance | Details for ruid-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ruid-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ruid-0.1.2-py3-none-any.whl |
Total release size: 3.3 kB
Release files / ruid-0.1.2.tar.gz
| Download URL | ruid-0.1.2.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3492f5d7c18cf2330ada17d90ca041fa90e6698d232f69016e391637ad3300a
|
|
BLAKE2b-256 checksum How to use checksums |
c7643d10115b30acb793241b8aded3b1c6ec84226f47354dfc59e01b9949eb05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.1 CPython/3.10.12 Linux/5.15.0-1041-nvidia
|
Release files / ruid-0.1.2-py3-none-any.whl
| Download URL | ruid-0.1.2-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfcbc1c33c8baa3194e473eb9d8d1cf6768bd9a214becc79a7d3901ffe13380c
|
|
BLAKE2b-256 checksum How to use checksums |
5d6df4a96196f1f31e70c5f12ecedb88d369c212e752fb44c1004081ab2c4e87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.1 CPython/3.10.12 Linux/5.15.0-1041-nvidia
|
Security for ruid 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.