Skip to main content

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


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)

Uploaded Source

Built Distribution

rand_wordpair-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page