anodict-0.0.2


توضیحات

Annotate your Python dict
ویژگی مقدار
سیستم عامل OS Independent
نام فایل anodict-0.0.2
نام anodict
نسخه کتابخانه 0.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Keuin
ایمیل نویسنده keuinx@gmail.com
آدرس صفحه اصلی https://github.com/keuin/anodict
آدرس اینترنتی https://pypi.org/project/anodict/
مجوز BSD 2-Clause License
# anodict: annotated dict [![Pyversions](https://img.shields.io/pypi/pyversions/anodict.svg?style=flat-square)](https://pypi.org/project/anodict/) Convert a `dict` to an annotated object. # Usage ## Installation ```shell pip install anodict ``` ## Example ```python import anodict class Person: name: str age: int person = anodict.dict_to_class({ "name": "bob", "age": 23 }, Person) print("type:", type(person)) print("name:", person.name) print("age:", person.age) ``` will give: ``` type: <class '__main__.Person'> name: bob age: 23 ```


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl anodict-0.0.2:

    pip install anodict-0.0.2.whl


نصب پکیج tar.gz anodict-0.0.2:

    pip install anodict-0.0.2.tar.gz