A library for creating memorable strings.
Project description
Memorable
A library for generating memorable strings.
Usage
import memorable
memorable.name()
# lue-the-jealously-happy-go-lucky
memorable.action()
# eat-a-pretty-payment
memorable.thing()
# cleverly-neglected-talk
memorable.code_phrase()
# amused-chilly-minestrone-distribute
Advanced usage
It is possible to generate strings focusing on a specific theme.
for kind in memorable.NounTypes:
phrase = memorable.thing(kind=kind)
print(f'{kind.value}: {phrase}')
# alcohols: wonderfully-overdue-beer
# animals: uncritically-thoughtful-octopus
# elements: vividly-mindless-chromium
# foods: jubilantly-snappy-stew
# fruits: poorly-handmade-kiwano
# geographies: quaintly-mountainous-beach
# households: hurriedly-ready-zester
# investments: meticulously-variable-bitcoin
# literature: madly-bogus-ode
# mythical: readily-general-centaur
# occupations: casually-tinted-data-scientist
# organs: nightly-splendid-lungs
# places: casually-definitive-farm
# relations: later-ready-babushka
# rocks: slavishly-hot-picrite
# royalty: fast-loyal-despot
# tools: unnecessarily-unripe-needle-nose
# transports: hollowly-cheerful-pickup
# trees: never-offbeat-fir
# vegtables: naively-happy-bitter-melon
# water_bodies: upliftingly-flickering-wadi
If memorable
is being used to generate ids and you'd like to reduce the
frequency of collisions (you should expect some collisions) it's possible
to request some extra characters tacked on the end to make them less common.
memorable.action(extra_characters=4)
# demand-the-hidden-bread-machine-gths
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
memorable-1.0.3.tar.gz
(43.8 kB
view hashes)
Built Distribution
memorable-1.0.3-py3-none-any.whl
(46.7 kB
view hashes)
Close
Hashes for memorable-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86a9da2dd3fa32a071f70034043c5a6181d3c78c42bf73aac7edc462db9b7ec5 |
|
MD5 | 0f0713315e3890e7ef5c8651f64992d7 |
|
BLAKE2b-256 | 96c403c9128653abaa447deab44de67ed5ff4965d557ba3c2c972b08fd112ffa |