Skip to main content

Named IDs

A Python module for generating human-readable unique identifiers.

Installation

pip install named_ids

Usage

The default size is "small" (adjective + noun). Here's how to use the module:

import named_ids

# Optional. Set a seed for reproducible results
random.seed(42)

# Optional. Only needed if you want to use a different size than the default (small)
named_ids.set("large")

# Generate ID
print(named_ids.next())

# Or just sample 
print(named_ids.sample()) # defaults to the one set
print(named_ids.sample("huge")) # can also set the size

next() ensures unique IDs by stepping through combinations sequentially. sample() provides random IDs without maintaining sequence.

Size Options

Name Pool Size Components Example
tiny 1,5 thousand noun queen
small 2 million adjective + noun red_queen
medium 2 billion adjective + noun + verb red_queen_bomb
large 624 billion adjective + noun + verb + adverb red_queen_bomb_carefully
huge 623 trillion number + adjective + noun + verb + adverb 371_red_queen_bomb_carefully

License

MIT

Metadata

Release files for named-ids 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for named-ids 0.1.0
File Size Uploaded Provenance
named_ids-0.1.0.tar.gz 20.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for named-ids 0.1.0
File Interpreter ABI Platform
named_ids-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.6 kB

Release files / named_ids-0.1.0.tar.gz

Download URL named_ids-0.1.0.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e27e5e20ea47a40fceb9cfc3f98091387ed0ea2d7e7de8d46320b5450e0fcef4
BLAKE2b-256 checksum
How to use checksums
a110d4906169eaa3d02f724ae99f89fd2351f77fd17ff07ea11610a6cb111b9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / named_ids-0.1.0-py3-none-any.whl

Download URL named_ids-0.1.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8f2fcdaa507d1d9d435baae7ff19a5527a992aa18e6baa7dd9de4246c5c756d
BLAKE2b-256 checksum
How to use checksums
cb2c43cb99bd33f6133891c2761a561ae1ceb4711c05556e2fa5f9529df75bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Security for named-ids 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page