Metadata-Version: 2.1
Name: dtc
Version: 0.1.1
Summary: Generate Dataclass without writting them !
Home-page: https://github.com/jgirardet/dtc
License: UNKNOWN
Author: jgirardet
Author-email: ijkl@netc.fr
Requires-Python: >=3.7,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Project-URL: Repository, https://github.com/jgirardet/dtc
Description-Content-Type: text/x-rst

.. 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



