Metadata-Version: 2.1
Name: databind.json
Version: 1.3.1
Summary: De-/serialize Python dataclasses to or from JSON payloads. Compatible with Python 3.7 and newer.
Home-page: https://github.com/NiklasRosenstein/python-databind
Author: Niklas Rosenstein
Author-email: rosensteinniklas@gmail.com
License: MIT
Description: # databind.json
        
        The `databind.json` package implements the de-/serialization to or from JSON payloads using
        the `databind.core` framework.
        
        ## Quickstart
        
        ```py
        import databind.json
        import dataclasses
        
        @dataclasses.dataclass
        class ServerConfig:
          host: str
          port: int = 8080
        
        @dataclasses.dataclass
        class MainConfig:
          server: ServerConfig
        
        payload = { 'server': { 'host': '127.0.0.1' } }
        config = databind.json.load(payload, MainConfig)
        assert config == MainConfig(ServerConfig('127.0.0.1'))
        ```
        
        ---
        
        <p align="center">Copyright &copy; 2020 &ndash; Niklas Rosenstein</p>
        
Platform: UNKNOWN
Requires-Python: >=3.7.0,<4.0.0
Description-Content-Type: text/markdown
