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 hashes)
Built Distribution
Close
Hashes for rand_wordpair-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 232892b561100718e76367d8c343902900ce8022e0b2260ff9f85d6fc662d983 |
|
MD5 | 6a68a0eaeadbd5d63e3a2a98a764aa99 |
|
BLAKE2b-256 | b216f9750b1893c322124380b42baec7d7902d641ea15b1ecb39ad047261537e |