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
from randomword 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
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
randomword-1.0.1.tar.gz
(1.1 MB
view hashes)
Built Distribution
Close
Hashes for randomword-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c51f7b2fe614148d88c939d47cea03a7bbd8f36a5b157bb9d037942cc86083 |
|
MD5 | 41d1dbe4d66ebf206bf2208e1d9a9fbb |
|
BLAKE2b-256 | 54b392a2856d7eb2eaf78e6cc5323b6e08b91daa2fa358a1d10671b646c12451 |