Metadata-Version: 2.1
Name: typeschemalib
Version: 1.3
Summary: A yaml like schema that can be used to check dictionaries for correct schema
Home-page: https://github.com/JakeRoggenbuck/typeschemalib
Author: Jake Roggenbuck
Author-email: jake@jr0.org
License: MIT
Description: # typeschemalib
        A yaml like schema that can be used to check dictionaries for correct schema
        
        ## Schema file
        #### schema example
        ```
        point: Int
        my_string: Str
        grade: Float
        ```
        
        #### data example
        ```json
        {"point": 45, "my_string": "Hey", "grade": 4.5}
        ```
        
        ## Checking data for correct schema
        ### Test parse with stml file
        ```py
        from typeschemalib import typeschemalib
        
        
        if __name__ == "__main__":
            data = {"point": 45, "my_string": "Hey", "grade": 4.5}
        
            schema = "test.stml"
            valid = typeschemalib.schema_check(schema, data)
            print(valid)
        
            schema = ["point: Int", "my_string: Str", "grade: Int"]
            valid = typeschemalib.schema_check(schema, data)
            print(valid)
        
            schema = {"point": "Int", "my_string": "Str", "grade": "Int"}
            valid = typeschemalib.schema_check(schema, data)
            print(valid)
        ```
        
        ## Todo
        Make schema have regex
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
