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='+'))
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phrasegen-1.1.2.tar.gz | 93.5 kB | Without provenance | Details for phrasegen-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phrasegen-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for phrasegen-1.1.2-py3-none-any.whl |
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
|
Security for phrasegen 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.