Skip to main content

py-unique-names-generator

Generate unique and memorable name strings

Prerequisites

Python 3.6 or greater.

Installation

$ pip install unique-names-generator

Usage

In [1]: from unique_names_generator import get_random_name

In [2]: get_random_name()
Out[2]: 'Pink Dragon'

Parameters

combo - List of lists

The package comes with a bunch of random names as lists. By default, we use a color and animal to generate a random name. Other lists are ADJECTIVES, ANIMALS, COLORS, COUNTRIES, LANGUAGES, NAMES, STAR_WARS.

In [1]: from unique_names_generator import get_random_name
In [2]: from unique_names_generator.data import ADJECTIVES, STAR_WARS

In [3]: get_random_name(combo=[ADJECTIVES, STAR_WARS])
Out[3]: 'Furious Yoda'

separator - A string, default is blank space

In [1]: from unique_names_generator import get_random_name
In [2]: from unique_names_generator.data import ADJECTIVES, NAMES

In [69]: get_random_name(combo=[ADJECTIVES, NAMES], separator="_")
Out[69]: 'Fun_Antonie'

style - A string, one of capital|lowercase|uppercase.

In [1]: from unique_names_generator import get_random_name
In [2]: from unique_names_generator.data import ADJECTIVES, NAMES

In [3]: get_random_name(separator="-", style="lowercase")
Out[3]: 'crimson-cat'

And, you can pass your own list of words. But let's face it, then this package would just be a function which randomly chooses a word from a list of strings. So its better to keep adding to the list here or fork it for your own use.

Metadata

Release files for unique-names-generator 1.0.1

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

Source distribution (sdist)

Source distribution for unique-names-generator 1.0.1
File Size Uploaded Provenance Actions
unique-names-generator-1.0.1.tar.gz 29.2 kB Without provenance Details for unique-names-generator-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unique-names-generator 1.0.1
File Interpreter ABI Platform Actions
unique_names_generator-1.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for unique_names_generator-1.0.1-py2.py3-none-any.whl

Total release size: 57.0 kB

Release files / unique-names-generator-1.0.1.tar.gz

Download URL unique-names-generator-1.0.1.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9b64630af372b9958f889f7197d719c68825dbd36797c2d9e03b93e431c9b182
BLAKE2b-256 checksum
How to use checksums
e7a1778ecda84a8b64129ff4086e0a76d585a98c788f50b5b21e2aff0ddda862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.1

Release files / unique_names_generator-1.0.1-py2.py3-none-any.whl

Download URL unique_names_generator-1.0.1-py2.py3-none-any.whl
Size 27.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4c60c335fac848a572a9c7a9c44a1924d232967a6d1cb2f115bf370e8fc918d6
BLAKE2b-256 checksum
How to use checksums
cb36ecfb2a584ee13b64a774a6a888726d35921fdf479a836f13d05502127dc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.1

Security for unique-names-generator 1.0.1

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.

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