Metadata-Version: 2.1
Name: ju
Version: 0.1.2
Summary: JSON schema Utils
Home-page: UNKNOWN
Author: OtoSense
License: apache-2.0
Description: 
        # ju
        JSON schema Utils
        
        
        To install:	```pip install ju```
        
        
        # Examples
        
        ## Routes
        
        Represents a collection of routes in an OpenAPI specification.
        
        Each instance of this class contains a list of `Route` objects, which can be accessed and manipulated as needed.
        
        
            >>> from yaml import safe_load
            >>> spec_yaml = '''
            ... openapi: 3.0.3
            ... paths:
            ...   /items:
            ...     get:
            ...       summary: List items
            ...       responses:
            ...         '200':
            ...           description: An array of items
            ...     post:
            ...       summary: Create item
            ...       responses:
            ...         '201':
            ...           description: Item created
            ... '''
            >>> spec = safe_load(spec_yaml)
            >>> routes = Routes(spec)
            >>> len(routes)
            2
            >>> list(routes)
            [('get', '/items'), ('post', '/items')]
            >>> r = routes['get', '/items']
            >>> r
            Route(method='get', endpoint='/items')
            >>> r.method_data
            {'summary': 'List items', 'responses': {'200': {'description': 'An array of items'}}}
        
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
