Python module to generate a random pair of English words
Project description
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/*
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
rand_wordpair-0.0.1.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file rand_wordpair-0.0.1.tar.gz
.
File metadata
- Download URL: rand_wordpair-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9a44cfd3acb51232d39fac0b631484ba41163843b08187cb7f2a67b00fb420f |
|
MD5 | d0a37be76e7da3927fee3441d47f2a45 |
|
BLAKE2b-256 | 1ecc62b93cb604b5d7c51201ec82bdd1c080bd5648743b0e1e59365fb19e7d67 |
File details
Details for the file rand_wordpair-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: rand_wordpair-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 232892b561100718e76367d8c343902900ce8022e0b2260ff9f85d6fc662d983 |
|
MD5 | 6a68a0eaeadbd5d63e3a2a98a764aa99 |
|
BLAKE2b-256 | b216f9750b1893c322124380b42baec7d7902d641ea15b1ecb39ad047261537e |