A simple package for random words and sentences in the english language
Project description
Welcome To Wonderwords
Latest version: v1.0.6
Welcome to the readme. Here you can find basic info about what wonderwords is about.
Wonderwords is an open source project and python package that helps python developers add random words and sentences to their programs. Wonderwords has multiple functions which return random words, lists of random words and even random sentences. Please make sure to check out our full documentation at https://github.com/mrmaxguns/wonderwordsmodule/wiki/Wonderwords-Documentation.
Table of Contents
- Requirements
- Installation
- Importing Wonderwords
- Basic Usage
- License
- Contribution
- Usage documentation and sub-modules
Requirements
Wonderwords requires:
- At least python 3.6
- The random package (usually installed with python)
- importlib_resources OR importlib.resources
Installation
Please make sure you have met all of the requirements before installing the package
Since wonderwords is still experimental, you can only download this package from Test Pypi.
All the installation files can be found at https://test.pypi.org/wonderwords-mrmaxguns/.
To install from the command line, use pip:
pip install wonderwords
Please contact @mrmaxguns if you have trouble installing wonderwords.
Import
Please make sure you have installed wonderwords before importing it. To import wonderwords, use the following syntax:
import wonderwords
If an error occurs make sure you have installed wonderwords and that you do not have a python program also called wonderwords in the working directory.
Usage
For full usage instructions please visit the documentation.
from wonderwords import random_word
from wonderwords import random_sentence
rw = random_word.random_word()
rs = random_sentence.random_sentence()
# Get a random word
rw.word()
# Get a list of 5 random words
rw.words_list(5)
# Get a word that starts with c
rw.starts_with('c')
# Get a random bare-bone sentence
rs.bare_bone_sentence()
# Get a random bare-bone sentence with a direct object
rs.simple_sentence()
# Get a random bare-bone sentence with an adjective
rs.bare_bone_with_adjective()
# Get a random sentence with a subject, predicate, direct object and adjective
rs.sentence()
License
Contribution
If you want to contribute to this project, please contact @mrmaxguns (https://www.github.com/mrmaxguns). If you have any ideas or problems, we suggest you open an issue or contact us. We value support from the community, so please speak up.
Documentation
To visit the official documentation please visit: https://github.com/mrmaxguns/wonderwordsmodule/wiki/Wonderwords-Documentation
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
Hashes for wonderwords-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75a066ce292a2bda7fdb7e3263cbf7bdc5eeea210404ef4ad64815fcb96f2118 |
|
MD5 | a3c0ea6030ce733d6f8ad98e7303e467 |
|
BLAKE2b-256 | 0dd32f093f63278bf627b78e239df6f2b285c8db58755f59ede1de3b88db5066 |