# py2be <!-- omit in toc -->

[](https://opensource.org/licenses/BSD-3-Clause)
[](https://github.com/synesissoftware/py2be/releases/latest)
[](https://github.com/synesissoftware/py2be/commits/master)
[](https://badge.fury.io/py/py2be)
Simple Python library determining whether strings indicate truey or falsy values.
## Introduction
**to-be** is a library providing facilities for determine whether the truthyness of strings. It implemented in several languages: **py2be** is the **Python** implementation.
## Table of Contents <!-- omit in toc -->
- [Introduction](#introduction)
- [Terminology](#terminology)
- [Project Information](#project-information)
- [Where to get help](#where-to-get-help)
- [Contribution guidelines](#contribution-guidelines)
- [Dependencies](#dependencies)
- [Dev Dependencies](#dev-dependencies)
- [Related projects](#related-projects)
- [License](#license)
## Terminology
The term "*truthy*" is an unhelpfully overloaded term in the programming world, insofar as it is used to refer to the notion of "truthyness" - whether something can be _deemed to be_ interpretable as truth - and also the true side of that interpretation. In this library, the former interpretation is used, leaving us with the following terms:
* "*truthy*" - whether something can be can be _deemed to be_ interpretable as having truth;
* "*falsey*" - whether an object can be _deemed to be_ interpretable as being false;
* "*truey*" - whether an object can be _deemed to be_ interpretable as being true;
For example, consider the following **Python** program:
```Python
from py2be import (
string_is_falsey,
string_is_truey,
string_is_truthy,
)
s1 = "no"
s2 = "True"
s3 = "orange"
# "no" is validly truthy, and is falsey
assert string_is_falsey(s1)
assert !string_is_truey(s1)
assert string_is_truthy(s1)
# "True" is validly truthy, and is truey
assert !string_is_falsey(s2)
assert string_is_truey(s2)
assert string_is_truthy(s2)
# "orange" is not validly truthy, and is neither falsey nor truey
assert !string_is_falsey(s3)
assert !string_is_truey(s3)
assert !string_is_truthy(s3)
```
## Project Information
### Where to get help
[GitHub Page](https://github.com/synesissoftware/py2be "GitHub Page")
### Contribution guidelines
Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/py2be.
### Dependencies
**py2be** has no (non-development) dependencies.
#### Dev Dependencies
**py2be** has no (additional) development dependencies.
### Related projects
* [**to-be**](https://github.com/synesissoftware/to-be) (**C**);
* [**to_be.Ruby**](https://github.com/synesissoftware/to_be.Ruby);
* [**to-be.Rust**](https://github.com/synesissoftware/to-be.Rust);
### License
**py2be** is released under the 3-clause BSD license. See [LICENSE](./LICENSE) for details.
<!-- ########################### end of file ########################### -->
Raw data
{
"_id": null,
"home_page": "https://github.com/synesissoftware/diagnosticism.Python",
"name": "py2be",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "configuration environment string traits",
"author": "Matt Wilson",
"author_email": "matthew@synesis.com.au",
"download_url": "https://files.pythonhosted.org/packages/fe/35/9bf64f6585257f8a1dd9f3894703280d120737a5b42c25b15afe1ee083c4/py2be-0.0.3.tar.gz",
"platform": null,
"description": "# py2be <!-- omit in toc -->\n\n\n[](https://opensource.org/licenses/BSD-3-Clause)\n[](https://github.com/synesissoftware/py2be/releases/latest)\n[](https://github.com/synesissoftware/py2be/commits/master)\n[](https://badge.fury.io/py/py2be)\n\nSimple Python library determining whether strings indicate truey or falsy values.\n\n\n## Introduction\n\n**to-be** is a library providing facilities for determine whether the truthyness of strings. It implemented in several languages: **py2be** is the **Python** implementation.\n\n\n## Table of Contents <!-- omit in toc -->\n\n\n- [Introduction](#introduction)\n- [Terminology](#terminology)\n- [Project Information](#project-information)\n\t- [Where to get help](#where-to-get-help)\n\t- [Contribution guidelines](#contribution-guidelines)\n\t- [Dependencies](#dependencies)\n\t\t- [Dev Dependencies](#dev-dependencies)\n\t- [Related projects](#related-projects)\n\t- [License](#license)\n\n\n## Terminology\n\nThe term \"*truthy*\" is an unhelpfully overloaded term in the programming world, insofar as it is used to refer to the notion of \"truthyness\" - whether something can be _deemed to be_ interpretable as truth - and also the true side of that interpretation. In this library, the former interpretation is used, leaving us with the following terms:\n\n* \"*truthy*\" - whether something can be can be _deemed to be_ interpretable as having truth;\n* \"*falsey*\" - whether an object can be _deemed to be_ interpretable as being false;\n* \"*truey*\" - whether an object can be _deemed to be_ interpretable as being true;\n\nFor example, consider the following **Python** program:\n\n```Python\nfrom py2be import (\n\tstring_is_falsey,\n\tstring_is_truey,\n\tstring_is_truthy,\n)\n\ns1 = \"no\"\ns2 = \"True\"\ns3 = \"orange\"\n\n# \"no\" is validly truthy, and is falsey\nassert string_is_falsey(s1)\nassert !string_is_truey(s1)\nassert string_is_truthy(s1)\n\n# \"True\" is validly truthy, and is truey\nassert !string_is_falsey(s2)\nassert string_is_truey(s2)\nassert string_is_truthy(s2)\n\n# \"orange\" is not validly truthy, and is neither falsey nor truey\nassert !string_is_falsey(s3)\nassert !string_is_truey(s3)\nassert !string_is_truthy(s3)\n```\n\n\n## Project Information\n\n### Where to get help\n\n[GitHub Page](https://github.com/synesissoftware/py2be \"GitHub Page\")\n\n\n### Contribution guidelines\n\nDefect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/py2be.\n\n\n### Dependencies\n\n**py2be** has no (non-development) dependencies.\n\n\n#### Dev Dependencies\n\n**py2be** has no (additional) development dependencies.\n\n\n### Related projects\n\n* [**to-be**](https://github.com/synesissoftware/to-be) (**C**);\n* [**to_be.Ruby**](https://github.com/synesissoftware/to_be.Ruby);\n* [**to-be.Rust**](https://github.com/synesissoftware/to-be.Rust);\n\n\n### License\n\n**py2be** is released under the 3-clause BSD license. See [LICENSE](./LICENSE) for details.\n\n\n<!-- ########################### end of file ########################### -->\n\n\n\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Simple Python library determining whether strings indicate truey or falsy values",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/synesissoftware/diagnosticism.Python"
},
"split_keywords": [
"configuration",
"environment",
"string",
"traits"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "fe359bf64f6585257f8a1dd9f3894703280d120737a5b42c25b15afe1ee083c4",
"md5": "9f705fb9ce253e854b266f6212c79205",
"sha256": "3661d59da82dc9e6e17bfe67a7e331c6f8218675aec0830a2a57add26715971e"
},
"downloads": -1,
"filename": "py2be-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "9f705fb9ce253e854b266f6212c79205",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4884,
"upload_time": "2025-09-01T01:12:17",
"upload_time_iso_8601": "2025-09-01T01:12:17.052748Z",
"url": "https://files.pythonhosted.org/packages/fe/35/9bf64f6585257f8a1dd9f3894703280d120737a5b42c25b15afe1ee083c4/py2be-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-01 01:12:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "synesissoftware",
"github_project": "diagnosticism.Python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "py2be"
}