Get yes/no-like words.
Reason this release was yanked:
missing package upload
Project description
yes-no-words
Get yes/no-like words.
Inspired by: https://github.com/sindresorhus/yes-no-words
install
pip install yes-no-words
usage
import yes_no_words
yes_no_words.yes_random() # "yisss"
yes_no_words.no_random() # "absolutely not"
# test "truthy" words
yes_no_words.is_truthy("Yisss") # True
yes_no_words.is_truthy("nope") # False
# test "falsy" words
yes_no_words.is_falsy("certainly not") # True
api
.YES
Yes like words.
.NO
No like words.
.ALL
Both yes and no like words.
.yes_random() -> str
Random yes like words.
.no_random() -> str
Random no like words.
.all_random() -> str
Random yes or no like words.
.is_falsy(word_or_phrase: str) -> bool
Test a word to verify if it's falsy.
.is_truthy(word_or_phrase: str) -> bool
Test a word to verify if it's truthy.
license
Apache License 2.0 :copyright: Jeff Triplett
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
yes-no-words-2022.4.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for yes_no_words-2022.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27b15257a198398f44e5af7c53e7c94c250a24a93c8f2c71c7d9144c15064182 |
|
MD5 | 5cf336ec68b9c2595ce30791a84245dd |
|
BLAKE2b-256 | 65e9be65883129d3b7c2d3a834b0b591071931a26fbbe63b5e3407f42b9feb7f |