rand_wordpair
Python module to generate a random pair of English words
Usage
To get a random pair of words:
from rand_wordpair import gen_pair
print(gen_pair()) # different every time, e.g. sudsy-pickup
To get a username-based code (e.g. for SD212 homework):
from rand_wordpair import show_user_code
show_user_code() # prints code wordpair to the screen
Dependencies
Uses nltk for and the WordNet database.
Build instructions
Follow this tutorial on packaging and this quickstart for setuptools.
Pip/conda/mamba packages needed:
build twine
To test:
python3 test.py
To build:
python3 -m build
To publish on pypi (requires account setup and api token):
python3 -m twine upload --repository testpypi dist/*
Metadata
Release files for rand-wordpair 0.0.1
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 | |
|---|---|---|---|---|
| rand_wordpair-0.0.1.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rand_wordpair-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / rand_wordpair-0.0.1.tar.gz
| Download URL | rand_wordpair-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9a44cfd3acb51232d39fac0b631484ba41163843b08187cb7f2a67b00fb420f
|
|
BLAKE2b-256 checksum How to use checksums |
1ecc62b93cb604b5d7c51201ec82bdd1c080bd5648743b0e1e59365fb19e7d67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Release files / rand_wordpair-0.0.1-py3-none-any.whl
| Download URL | rand_wordpair-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
232892b561100718e76367d8c343902900ce8022e0b2260ff9f85d6fc662d983
|
|
BLAKE2b-256 checksum How to use checksums |
b216f9750b1893c322124380b42baec7d7902d641ea15b1ecb39ad047261537e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Security for rand-wordpair 0.0.1
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.