Name | typers JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | A package for type checking and error handling in Python. |
upload_time | 2024-10-21 15:20:51 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2024 Sébastien GARCIA Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
error handling
type checking
validation
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Typers
A utility package for performing various validation checks on values in Python. The package provides methods to validate data types, ranges, lengths, and custom validations, ensuring that function arguments or values passed to a program are of the expected type or structure.
## Features
- Validate non-null values
- Check for types: strings, integers, floats, booleans, lists, tuples, sets, custom types, ranges, dictionaries, length, enums, optionals, empty.. And more.
- Validate collections: lists, tuples, sets, and dictionaries
- Check ranges and lengths
- Support for custom validations using user-defined functions
## Installation
You can install the package using pip:
```bash
pip install typers
Raw data
{
"_id": null,
"home_page": null,
"name": "typers",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Striatp <striatp@outlook.com>",
"keywords": "error handling, type checking, validation",
"author": null,
"author_email": "Striatp <striatp@outlook.com>",
"download_url": "https://files.pythonhosted.org/packages/a6/a6/4b412bd3f8fa39095e8311f9e5a0f1e107f1c49480b8a93336cc3745edd5/typers-0.2.0.tar.gz",
"platform": null,
"description": "# Typers\n\nA utility package for performing various validation checks on values in Python. The package provides methods to validate data types, ranges, lengths, and custom validations, ensuring that function arguments or values passed to a program are of the expected type or structure.\n\n## Features\n\n- Validate non-null values\n- Check for types: strings, integers, floats, booleans, lists, tuples, sets, custom types, ranges, dictionaries, length, enums, optionals, empty.. And more.\n- Validate collections: lists, tuples, sets, and dictionaries\n- Check ranges and lengths\n- Support for custom validations using user-defined functions\n\n## Installation\n\nYou can install the package using pip:\n\n```bash\npip install typers\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 S\u00e9bastien GARCIA Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "A package for type checking and error handling in Python.",
"version": "0.2.0",
"project_urls": {
"Changelog": "https://github.com/striatp/typers/main/blob/CHANGELOG.md",
"Documentation": "https://readthedocs.org",
"Homepage": "https://github.com/striatp/typers",
"Repository": "https://github.com/striatp/typers.git"
},
"split_keywords": [
"error handling",
" type checking",
" validation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "77a754e1a62ebfcc35603f79447c48ef04d03ef0a52f9dcbc23053ac1195d8a6",
"md5": "be4a39e32d5ab6ae40e70d29dbc530e7",
"sha256": "7ba7101a1459060f4c710f9cabbff0effe7d74e4ecdb32d07c3fc43453f6ecfe"
},
"downloads": -1,
"filename": "typers-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "be4a39e32d5ab6ae40e70d29dbc530e7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5750,
"upload_time": "2024-10-21T15:20:50",
"upload_time_iso_8601": "2024-10-21T15:20:50.202066Z",
"url": "https://files.pythonhosted.org/packages/77/a7/54e1a62ebfcc35603f79447c48ef04d03ef0a52f9dcbc23053ac1195d8a6/typers-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a6a64b412bd3f8fa39095e8311f9e5a0f1e107f1c49480b8a93336cc3745edd5",
"md5": "606d712fc9f4d2498b5c1c4a61fb8e16",
"sha256": "f91ee67f2c45db7c77da09a63c6d75960cbd0b5e8d2e40c09ac1fb90e2194aa3"
},
"downloads": -1,
"filename": "typers-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "606d712fc9f4d2498b5c1c4a61fb8e16",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6627,
"upload_time": "2024-10-21T15:20:51",
"upload_time_iso_8601": "2024-10-21T15:20:51.416240Z",
"url": "https://files.pythonhosted.org/packages/a6/a6/4b412bd3f8fa39095e8311f9e5a0f1e107f1c49480b8a93336cc3745edd5/typers-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-21 15:20:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "striatp",
"github_project": "typers",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "typers"
}