Skip to main content

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 details)

Uploaded Source

Built Distribution

memorable-1.0.3-py3-none-any.whl (46.7 kB view details)

Uploaded Python 3

File details

Details for the file memorable-1.0.3.tar.gz.

File metadata

  • Download URL: memorable-1.0.3.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.9.8 Linux/5.13.0-39-generic

File hashes

Hashes for memorable-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fa3b003f613e938453c47d5158cdaf1af2279717815ae785e51466f698c49b21
MD5 dd860bcd05d9247e4330077e34eb403a
BLAKE2b-256 f27ca4514be6340cce851b8da9b2def5dcbbce75966568dc436e9a3160ebf18f

See more details on using hashes here.

File details

Details for the file memorable-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: memorable-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 46.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.9.8 Linux/5.13.0-39-generic

File hashes

Hashes for memorable-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86a9da2dd3fa32a071f70034043c5a6181d3c78c42bf73aac7edc462db9b7ec5
MD5 0f0713315e3890e7ef5c8651f64992d7
BLAKE2b-256 96c403c9128653abaa447deab44de67ed5ff4965d557ba3c2c972b08fd112ffa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page