Skip to main content

Dead simple package for generating random Phrases

Reason this release was yanked:

includes nasty bug. want it? install. for normal dudes i prefer to yank it

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.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-py3-none-any.whl (89.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phrasegen-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.tar.gz
Algorithm Hash digest
SHA256 c850172c63527a182b1f18cf933f28b8bed2a7f923b115a316cf9f4f93a3c8d4
MD5 feec50e33d3df3cd0592833704e6dafd
BLAKE2b-256 8d75792b823988dec8539c00d541fdab43e103b3c6af3d1b7d9bb2d77d3aa650

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phrasegen-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-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ea65840f9fbb0f83f7b0a5d958461d185faaee789b447b42e4fe9050b29b07
MD5 14ad25bd2d0a93b2a0dcf7ecc7e77f07
BLAKE2b-256 ed4009da7419e4597570a0cdc61e865ed73e4e36242d12b947aeb8c6efccf253

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