Skip to main content

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='+'))

Release files for phrasegen 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phrasegen 1.1.2
File Size Uploaded
phrasegen-1.1.2.tar.gz 93.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phrasegen 1.1.2
File Interpreter ABI Platform
phrasegen-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 183.7 kB

Release files / phrasegen-1.1.2.tar.gz

Download URL phrasegen-1.1.2.tar.gz
Size 93.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c72a6dc72b4769bae5a7626e2b03fdc6b36cb18428dee3d5199ce169d93dc558
BLAKE2b-256 checksum
How to use checksums
cacd3a6e8c5b196b59cde7906b476f9eb6a68e7230c92700f08f1729e507ed07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / phrasegen-1.1.2-py3-none-any.whl

Download URL phrasegen-1.1.2-py3-none-any.whl
Size 90.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b3c0de2173d380f16fc10530d5ef5a421e5dbf01b174843897e3eb75e4a30de
BLAKE2b-256 checksum
How to use checksums
3cf297b7c3c5647f89797fd7dc71302b017cce3336e914ab68cb4545ef5bea64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page