Skip to main content

Dead simple package for generating random Phrases

Project description

Phrasegen: Little package for making phrases

Phrasegen is a package that can help you generate variable sized Random phrases.
We use word lists from one of the Trezor projects, thus, support multiple languages.

Installation

From PyPI

# Install the latest version with pip
pip install phrasegen

You can also Clone and install:

git clone https://github.com/NotStatilko/phrasegen
pip install ./phrasegen

Usage Example

from phrasegen import Generator

gen = Generator() # Generator() is a class provider for Word lists
print(gen.supported_languages) # ('ja', 'ru', 'cs', 'ko', 'zh_cn'...

# .generate() method just randomly select words from
# the list of words. Dead simple process.

print(gen.en.generate()) # 'poem flock future since whisper plate'
print(gen.it.generate()) # 'risultato molosso irlanda oasi scuro proroga'
print(gen.fr.generate()) # 'citrus najisto podzim podivit buchta prodej'

# V 'used+warm+coffee+fox+task+purity+light+neck'
print(gen.en.generate(count=8, separator='+'))

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phrasegen-1.0.tar.gz (93.2 kB view hashes)

Uploaded Source

Built Distribution

phrasegen-1.0-py3-none-any.whl (89.6 kB view hashes)

Uploaded Python 3

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