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
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.2.tar.gz
(93.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
phrasegen-1.1.2-py3-none-any.whl
(90.2 kB
view details)
File details
Details for the file phrasegen-1.1.2.tar.gz.
File metadata
- Download URL: phrasegen-1.1.2.tar.gz
- Upload date:
- Size: 93.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c72a6dc72b4769bae5a7626e2b03fdc6b36cb18428dee3d5199ce169d93dc558
|
|
| MD5 |
b18a0d197800aa813d866751de14de43
|
|
| BLAKE2b-256 |
cacd3a6e8c5b196b59cde7906b476f9eb6a68e7230c92700f08f1729e507ed07
|
File details
Details for the file phrasegen-1.1.2-py3-none-any.whl.
File metadata
- Download URL: phrasegen-1.1.2-py3-none-any.whl
- Upload date:
- Size: 90.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b3c0de2173d380f16fc10530d5ef5a421e5dbf01b174843897e3eb75e4a30de
|
|
| MD5 |
ef6100f3f11dde52ef8301dae8ac156f
|
|
| BLAKE2b-256 |
3cf297b7c3c5647f89797fd7dc71302b017cce3336e914ab68cb4545ef5bea64
|