dtc-0.1.1
توضیحات
Generate Dataclass without writting them !
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dtc-0.1.1 |
| نام | dtc |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | ['jgirardet'] |
| ایمیل نگهدارنده | ['ijkl@netc.fr'] |
| نویسنده | jgirardet |
| ایمیل نویسنده | ijkl@netc.fr |
| آدرس صفحه اصلی | https://github.com/jgirardet/dtc |
| آدرس اینترنتی | https://pypi.org/project/dtc/ |
| مجوز | - |
.. image:: https://travis-ci.org/jgirardet/dtc.svg?branch=master
:target: https://travis-ci.org/jgirardet/dtc
.. image:: https://ci.appveyor.com/api/projects/status/ffd44ndqx713yuhd/branch/master?svg=true
:target: https://ci.appveyor.com/project/jgirardet/dtc
=======================================================
DTC :"Generate Dataclasses without writting them !"
=======================================================
.. warning::
This is an alpha version
Basic Usage
------------
.. code-block:: python
>>> import dtc
>>> JSON = b"""{"flooat": 12.564, "boolean": true, "integer": 12}"""
>>> my_class = dtc.from_json(JSON)
>>> my_class
Base(flooat=12.564, boolean=True, integer=12)
>>> from dataclasses import *
>>> is_dataclass(my_class)
True
>>> JSON = b"""[{"flooat": 12.4, "boolean": true, "integer": 1}, {"flooat": 12.564, "boolean": true, "integer": 12},{"flooat": 1.4, "boolean": false, "integer": 0}]"""
>>> dtc.from_json(JSON
[Base(flooat=12.4, boolean=True, integer=1), Base(flooat=12.564, boolean=True, integer=12), Base(flooat=1.4, boolean=False, integer=0)]
* License : GNU General Public License v3 or later (GPLv3+)
* Source: https://github.com/jgirardet/dtc
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl dtc-0.1.1:
pip install dtc-0.1.1.whl
نصب پکیج tar.gz dtc-0.1.1:
pip install dtc-0.1.1.tar.gz