Skip to main content

This is a simple python package to generate random english words

Project description

random-word

Build PyPI version PyPI - Python Version PyPI - Status Downloads License: MIT

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


Download files

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

Source Distribution

random_word-1.0.12.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

random_word-1.0.12-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file random_word-1.0.12.tar.gz.

File metadata

  • Download URL: random_word-1.0.12.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

File hashes

Hashes for random_word-1.0.12.tar.gz
Algorithm Hash digest
SHA256 cca318a3730d6512e166d53fdd59a22fc0cc6131eba76be735e71572a85bd96f
MD5 f75570c81e673ddd53322abe3dc9c4e6
BLAKE2b-256 7cd6688512ff82e9c5375f04f609a5abb4b09746690562f06c3b3e2b7661584e

See more details on using hashes here.

File details

Details for the file random_word-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: random_word-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0

File hashes

Hashes for random_word-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 298710272501332a4ae09d37b47f33b41e4052e9ffbcb201d454abc16c148c37
MD5 d27ef857a524905ef7336b0e421c4289
BLAKE2b-256 306d3c57fed7500df33f2ac50754705e94c00a398cf1c80b7f13f94baf7809bb

See more details on using hashes here.

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