Skip to main content

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


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 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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yes-no-words-2022.4.1.tar.gz
Algorithm Hash digest
SHA256 13e7392fa4fbc70026cec1b449a79d738b667786c80058d1e63ad419499e5c70
MD5 3543856c88780c6177925c8245d76e8a
BLAKE2b-256 fb92b47c966f4b990a6751a020dd05e0bcce24467083d92ede3810b27000d3af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yes_no_words-2022.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27b15257a198398f44e5af7c53e7c94c250a24a93c8f2c71c7d9144c15064182
MD5 5cf336ec68b9c2595ce30791a84245dd
BLAKE2b-256 65e9be65883129d3b7c2d3a834b0b591071931a26fbbe63b5e3407f42b9feb7f

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