dichecker-6.6.6
توضیحات
A runtime checker for modern TypedDicts
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dichecker-6.6.6 |
| نام | dichecker |
| نسخه کتابخانه | 6.6.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ooliver1 |
| ایمیل نویسنده | oliverwilkes2006@icloud.com |
| آدرس صفحه اصلی | https://github.com/ooliver1/dichecker |
| آدرس اینترنتی | https://pypi.org/project/dichecker/ |
| مجوز | MIT |
# dichecker
A runtime checker for modern TypedDicts
## Supported Typings
- `Any`
- `dict`
- `Dict`
- `List`
- `list`
- `Literal`
- `NotRequired`
- `None`
- `Optional`
- `T | ...`
- `TypedDict`
- `Union`
- `str` (and all other normal classes)
## How To Use
### Install
```bash
pip install dichecker
# or
poetry add dichecker
```
### Add To Code
```py
from typing import Any, Optional, TypedDict
from typing_extensions import NotRequired
from dichecker import check_hints
class MyCoolType(TypedDict):
anything: NotRequired[You]
want: Optional[Really]
this: IsJust | An | Example
def function(not_verified_dict: Any) -> MyCoolType:
return check_hints(MyCoolType, not_verified_dict)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=4.1.0,<5.0.0 | typing-extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl dichecker-6.6.6:
pip install dichecker-6.6.6.whl
نصب پکیج tar.gz dichecker-6.6.6:
pip install dichecker-6.6.6.tar.gz