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
Metadata
Release files for yes-no-words 2022.4.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yes-no-words-2022.4.8.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yes_no_words-2022.4.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / yes-no-words-2022.4.8.tar.gz
| Download URL | yes-no-words-2022.4.8.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69fbc38d032edd65d15a3d0494b79094ca38fd576d920b4ef0e6a3d3b2337ef4
|
|
BLAKE2b-256 checksum How to use checksums |
5e9eda7c805ce176609dd65fb647a487f40dc574b2d1de438efcb1ab265503c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / yes_no_words-2022.4.8-py3-none-any.whl
| Download URL | yes_no_words-2022.4.8-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
231feef9861969f8577bfe75a0d42b4bfc34b56128dc72319d43a6c589e524c0
|
|
BLAKE2b-256 checksum How to use checksums |
4584bf15c58381a1005ed17d77be7081b2b644b4e8d55013161abbd483ab2725
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|