Skip to main content

A simple python library that gives you a certain amount of random words.

Project description

RandomWord Description

randomword is a simple python library that chooses a random word from dwyl's list of English words. Unlike other libraries, there is no API. This library can be used without internet access.

Usage

import randomword

random_word = randomword.get_random_word()
# importing randomword and then doing randomword.randomword.get_random_word() is also applicable.
print(f"My favorite word in the dictionary is {random_word}.")

multiple_random_words = randomword.get_random_word(2)
print(f"If I had to choose, I would say my top two favorite words are {multiple_random_words[0]} and {multiple_random_words[1]}.")

Output

My favorite word in the dictionary is unutilized.
If I had to choose, I would say my top two favorite words are barhopped and passionful.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for randomword, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size randomword-1.0.2-py3-none-any.whl (1.2 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size randomword-1.0.2.tar.gz (1.1 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page