Metadata-Version: 2.1
Name: stanag4586edav1
Version: 0.0.4
Summary: Python Stanag 4586 Edition A v1
Home-page: https://github.com/faisalthaheem/python-stanag-4586-EDA-v1
Author: Faisal Thaheem
License: GPLV3
Description: # Python package for STANAG 4586 Edition A Version 1
        ## Tested with python 3.8+
        
        Published branch | Development branch
        --- | ---
        ![build status main branch](https://travis-ci.com/faisalthaheem/python-stanag-4586-EDA-v1.svg?branch=main) | ![build status development branch](https://travis-ci.com/faisalthaheem/python-stanag-4586-EDA-v1.svg?branch=development)
        
        This repository conotains code that will enable encoding/decoding of STANAG messages.
        So far the following messages have been implemented which should enable basic communication with a platform, messages are being continually added, please check back soon for updates.
        - Message wrapper
        - 01
        - 20
        - 21
        - 300
        - 301
        - 302
        - 1200
        
        # Simple usage example
        Assuming you would have already parsed the message wrapper and know what message is contained in the byte array, save the following in a file called stanag-test.py
        
        ```python
        from stanag4586edav1.message01 import *
        
        # We create a dummy byte stream containing only Message 01 contents
        PACKET_TO_DECODE = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\xA0\x00\x00\x00\x00" \
        b"\x00\x00\x00\x00\x00\x39\x00\x00\x01\x00\x00\x00\x00\x01\x00"
        
        
        def decode_message01():
            msg01 = Message01(PACKET_TO_DECODE)
            
            print(msg01.time_stamp)
            print(msg01.cucs_id)
        
        decode_message01()
        ```
        
        Executing the above code will produce output as follows
        
        ```shell
        $ python stanag-test.py
        0.0
        160
        
        ```
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
