Skip to main content

Get yes/no-like words.

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


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.7.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yes_no_words-2022.4.7-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file yes-no-words-2022.4.7.tar.gz.

File metadata

  • Download URL: yes-no-words-2022.4.7.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for yes-no-words-2022.4.7.tar.gz
Algorithm Hash digest
SHA256 64ef1c11f79eaa285db234f06b339c15f808df616f0e1ab72660841eb52edee9
MD5 28598be2600db07da5e63a8972c9ea1b
BLAKE2b-256 cd3f58b7b3f54145bb52079eba3940564f3e25206e68d70eefb4d1d19be1f1aa

See more details on using hashes here.

File details

Details for the file yes_no_words-2022.4.7-py3-none-any.whl.

File metadata

File hashes

Hashes for yes_no_words-2022.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ce59a2b94c28e6948db482f311a34b9fe2115f21ba30e5e8d899f1e289b102b5
MD5 2d2194951a096b8be0320fbdf7c22ca4
BLAKE2b-256 1d9bc47a5164cbcdad603331efec66d9b2604d51e0ee1bed0d47c85c03cb0d69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page