This is a simple python package to generate random english words
Project description
random-word
This is a simple python package to generate random English words. If you need help after reading the below, please find me on Twitter at @vaibhavsingh97.
If you love the package, please :star2: the repo.
Installation
You should be able to install using easy_install
or pip
in the usual ways:
$ easy_install random-word
$ pip install random-word
Or clone this repository and run:
$ python3 setup.py install
Or place the random-word
folder that you downloaded somewhere where your scripts can access it.
Basic Usage
👋 This package will now, by default, fetch the random word from local database
from random_word import RandomWords
r = RandomWords()
# Return a single random word
r.get_random_word()
Different services are available as a part of the random word package, which fetches random words from various API providers. Please check the Services
section for more details.
Services
Development
Assuming that you have Python
and pipenv
installed, set up your environment and install the required dependencies like this instead of the pip install random-word
defined above:
$ git clone https://github.com/vaibhavsingh97/random-word.git
$ cd random-word
$ make init
Add API Key in random_word
directory defining API Key in config.yml
. If you don't have an API key, then request your API key [here][wornikWebsiteLink]
API_KEY = "<API KEY>"
To check your desired changes, you can install your package locally.
$ pip install -e .
Issues
You can report the bugs at the issue tracker
License
Built with ♥ by Vaibhav Singh(@vaibhavsingh97) under MIT License
You can find a copy of the License at https://vaibhavsingh97.mit-license.org/
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
Built Distribution
File details
Details for the file Random Word-1.0.11.tar.gz
.
File metadata
- Download URL: Random Word-1.0.11.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a4845dd17bec140ef258b54a073258f89c487aa61387b7984493216a084e77 |
|
MD5 | 37d8c041e8511d21181d1a07a15f7292 |
|
BLAKE2b-256 | 594056670c6473fe9933d22ebe6084008866221c2870cbfde19f70bb9995df42 |
File details
Details for the file Random_Word-1.0.11-py3-none-any.whl
.
File metadata
- Download URL: Random_Word-1.0.11-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23b146dfc530c57e4f416a5aa8b43a1b93512dc470bc66fa22b54ad32d50572f |
|
MD5 | 79b9b49dd3e5db13ea4c5f8a1bd0667d |
|
BLAKE2b-256 | fdedf20c4cc602e0b4618c2c3998fd028d46daa639f92b2eebeb7fb1cc5cb097 |