Metadata-Version: 2.1
Name: PythonValidGen
Version: 1.6.0
Summary: Generator capable of verifying the structure of a document and generate a Python program that can process an exemplar
Home-page: https://github.com/LEImDL/PythonValidGen
Author: Ana Almeida, André Figueiredo, Luís Ferreira
License: LICENSE
Description: # PythonValidGen - More than a Python parser!
        
        A fantastic Python tool to parse and automate the generation of validation functions, as well as enconde and decode to/from an arbitrary data structure.
        
        ## Features
        
        - Parse documents
        - Generate validation functions
        - Encode and Decode data
        
        
        ## Execution example
        
        ```python
        from PythonValidGen.DataRepresentation.Document import Document
        from PythonValidGen.Verifier.Verifier import Verifier
        from PythonValidGen.Generator.Generator import Generator
            
        def test_gen(specification_path, schema_path, target_path):
            document = Document(file=specification_path, extension="JSON")
            specification = document.content
        
            schema = Document(file=schema_path, extension="JSON")
            verifier = Verifier(schema.content)
        
            # Print de um warning se houver restriÃ§Ãµes contraditÃ³rias
            verifier.verify(specification)
            generator = Generator(specification, target_path)
            generator.main()
        
            print("File generated")
            
        test_gen('JSON_Files/mDL_specification_prototype.json', 'JSON_Files/standard_format_prototype.json', 'validator_example.py')
        ```
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
