### Installing randomname Python Package Source: https://github.com/beasteers/randomname/blob/main/README.md This command installs the 'randomname' Python package using pip, the standard package installer for Python. It makes the 'randomname' command-line tool and library available for use on the system. ```bash pip install randomname ``` -------------------------------- ### Generating Default Adjective-Noun IDs via CLI Source: https://github.com/beasteers/randomname/blob/main/README.md This command demonstrates the basic usage of the 'randomname' command-line tool to generate unique IDs. By default, `randomname get` produces a hyphenated combination of an adjective and a noun, providing a memorable identifier. ```bash randomname get ``` -------------------------------- ### Generating IDs with Multiple Categories (CLI) Source: https://github.com/beasteers/randomname/blob/main/README.md This command demonstrates generating an ID using multiple word categories. It combines verbs from 'art' or 'thought', an adjective from 'sound', and a noun from 'apex_predators', showcasing the flexibility of the `generate` subcommand to create complex, multi-part identifiers. ```bash randomname generate v/art,v/thought a/sound n/apex_predators ``` -------------------------------- ### Generating Random Names Programmatically (Python) Source: https://github.com/beasteers/randomname/blob/main/README.md This Python snippet demonstrates how to use the `randomname` library to generate names within a script. It shows generating a name using all default categories, specifying a subset of categories for adjectives and nouns, and using the more flexible `generate` method with mixed category types. It also illustrates how to access the available adjective and noun categories. ```python import randomname # generate name using all categories name = randomname.get_name() # or specify a subset of the categories name = randomname.get_name(adj=('music_theory',), noun=('cats', 'food')) # or - you can take a bit more liberty about name = randomname.generate( 'v/fire', 'adj/music_theory', ('n/cats', 'n/food')) # these contain the available groups print('adjective categories:', randomname.ADJECTIVES) print('noun categories:', randomname.NOUNS) ``` -------------------------------- ### Generating IDs with Specific Adjective-Noun Categories (CLI) Source: https://github.com/beasteers/randomname/blob/main/README.md This command shows how to generate an ID by specifying particular sub-categories for adjectives and nouns. The first argument `weather` limits the adjective to the 'weather' category, and `shopping,cats` limits the noun to either 'shopping' or 'cats' categories, allowing for more controlled ID generation. ```bash randomname get weather shopping,cats ``` -------------------------------- ### Generating IDs with Custom Format (CLI) Source: https://github.com/beasteers/randomname/blob/main/README.md This command illustrates how to define a custom format for the generated ID using the `generate` subcommand. It specifies that the ID should consist of an adjective from the 'sound' category followed by a noun from the 'apex_predators' category, separated by a hyphen. ```bash randomname generate adj/sound n/apex_predators ``` -------------------------------- ### Generating IDs with Custom Words and Categories (CLI) Source: https://github.com/beasteers/randomname/blob/main/README.md This command shows how to incorporate custom, user-defined words directly into the generated ID alongside category-based words. Here, 'cat' is included as a literal string, appended after a verb from 'fire', an adjective from 'music_theory', and a noun from 'cats'. ```bash randomname generate v/fire a/music_theory n/cats cat ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.