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


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.1.1.tar.gz (93.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phrasegen-1.1.1-py3-none-any.whl (89.7 kB view details)

Uploaded Python 3

File details

Details for the file phrasegen-1.1.1.tar.gz.

File metadata

  • Download URL: phrasegen-1.1.1.tar.gz
  • Upload date:
  • Size: 93.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for phrasegen-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9329bccd999c07c5b69e28f6b4f31d1b3b13dfad43f0057f0847ba8ad1b9538c
MD5 69217afbf10e3dc29261987bb101961d
BLAKE2b-256 fd310cb546d55e478eda978b3fb15417a340cce71764b73a2085fe963050a4a9

See more details on using hashes here.

File details

Details for the file phrasegen-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: phrasegen-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 89.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for phrasegen-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b29cae17b0beff961f6d89178387e3f44c7b99ad91d13ee537f8de3d609b0edd
MD5 460897f5e7437f453a90158ddeb97409
BLAKE2b-256 5c16d55e6c68fb0d33f4b27c4813a6ad114e3bf14e90f56c39b9eef644b4025d

See more details on using hashes here.

Supported by

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