Name | teext JSON |
Version |
0.1.9
JSON |
| download |
home_page | None |
Summary | Typing extensions extensions |
upload_time | 2022-12-18 15:15:04 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
python
typing
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# teext – typing extensions extensions
Package which provides useful types.
### [Documentation](https://wearepal.github.io/teext/)
## Examples
### Value-constraint types without runtime overhead
These types are most useful in conjunction with static type checkers like mypy.
```python
import teext as tx
def f(x: tx.PositiveInt) -> None:
print(x)
a = 5
assert tx.is_positive_int(a)
f(a) # OK
f(7) # works at runtime but mypy gives error
assert tx.is_positive_int(-3) # AssertionError
```
Raw data
{
"_id": null,
"home_page": null,
"name": "teext",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "python,typing",
"author": null,
"author_email": "Thomas MK <tmke@posteo.net>",
"download_url": "https://files.pythonhosted.org/packages/7c/29/f37f455436cbf4475effa7d790a0f70cdb699649bd0636562f586ce054d3/teext-0.1.9.tar.gz",
"platform": null,
"description": "# teext \u2013 typing extensions extensions\n\nPackage which provides useful types.\n\n### [Documentation](https://wearepal.github.io/teext/)\n\n## Examples\n\n### Value-constraint types without runtime overhead\n\nThese types are most useful in conjunction with static type checkers like mypy.\n\n```python\nimport teext as tx\n\ndef f(x: tx.PositiveInt) -> None:\n print(x)\n\na = 5\nassert tx.is_positive_int(a)\nf(a) # OK\nf(7) # works at runtime but mypy gives error\n\nassert tx.is_positive_int(-3) # AssertionError\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Typing extensions extensions",
"version": "0.1.9",
"split_keywords": [
"python",
"typing"
],
"urls": [
{
"comment_text": null,
"digests": {
"md5": "02665e5bda0e93037e04717f3db098f6",
"sha256": "43ea723262adce78bbc52ae766b1c9eeab6b53cc69e7a149131cdd9b61dcaace"
},
"downloads": -1,
"filename": "teext-0.1.9-cp310-cp310-manylinux_2_35_x86_64.whl",
"has_sig": false,
"md5_digest": "02665e5bda0e93037e04717f3db098f6",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8",
"size": 86328,
"upload_time": "2022-12-18T15:14:58",
"upload_time_iso_8601": "2022-12-18T15:14:58.843994Z",
"url": "https://files.pythonhosted.org/packages/ec/8f/d06bf56745374dec7a503d099d1a88935d4b373de499f7225a5c850264fa/teext-0.1.9-cp310-cp310-manylinux_2_35_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"md5": "35bd6c2d93cc34c421d5ea23e4931972",
"sha256": "e4dfc4f7d2c85b7589bb803e22961be047e62ee1291eee7978d4c4dcbcadc11e"
},
"downloads": -1,
"filename": "teext-0.1.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "35bd6c2d93cc34c421d5ea23e4931972",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 86311,
"upload_time": "2022-12-18T15:15:01",
"upload_time_iso_8601": "2022-12-18T15:15:01.914365Z",
"url": "https://files.pythonhosted.org/packages/7e/85/27f2d79e166a8c96e81c1459013839bc5ccfc15ae92086845f02df16ed12/teext-0.1.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"md5": "83b882bdd23496ca9b00c545fcae31cb",
"sha256": "743b3be4d593ab208e1a9f0a50b916f87785d2e43cfd5df784e2b4f0501c8946"
},
"downloads": -1,
"filename": "teext-0.1.9.tar.gz",
"has_sig": false,
"md5_digest": "83b882bdd23496ca9b00c545fcae31cb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7831,
"upload_time": "2022-12-18T15:15:04",
"upload_time_iso_8601": "2022-12-18T15:15:04.669289Z",
"url": "https://files.pythonhosted.org/packages/7c/29/f37f455436cbf4475effa7d790a0f70cdb699649bd0636562f586ce054d3/teext-0.1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-18 15:15:04",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "teext"
}