Metadata-Version: 2.1
Name: pystructs
Version: 0.2.1
Summary: c-like struct implementation for human
Home-page: https://github.com/moreal/pystructs
Author: moreal
Author-email: dev.moreal@gmail.com
License: UNKNOWN
Description: # pystructs
        
        [![Documentation Status](https://readthedocs.org/projects/pystructs/badge/?version=0.2.1)](https://pystructs.readthedocs.io/en/latest/?badge=0.2.1)
        [![Build Status](https://travis-ci.com/moreal/pystructs.svg?branch=master)](https://travis-ci.com/moreal/pystructs)
        [![codecov](https://codecov.io/gh/moreal/pystructs/branch/master/graph/badge.svg)](https://codecov.io/gh/moreal/pystructs)
        
        `pystructs` is useful `c-like struct` package for human
        
        ## How to install
        
        ```bash
        $ pip install pystructs
        ```
        
        ## Example codes
        
        ```python
        from typing import List
        from pystructs import fields
        
        class Attribute(fields.Struct):
            type = fields.BytesField(size=1)
            length = fields.Int32Field(byteorder='big')
            value = fields.VariableBytesField(related_field='length')
        
        
        class StunMessage(fields.Struct):
            type = fields.BytesField(size=1)
            length = fields.Int32Field(byteorder='big')
            attributes: List[Attribute] = fields.MultipleField(count='length', field=Attribute())
        
        message = StunMessage(<bytes>)
        message.initialize()
        
        # Just use!
        ```
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
