python-swagger 1.1.4
Converting swagger documents into Python models

# Python-Swagger
## 概述

把Swagger文档转换成Python模型

## 使用说明
- 接口说明
    - swagger.parse(url)
        - 通过远程swagger配置文件转换文档为Python模块
        - 示例
        ```python
        from python_swagger import swagger

        url = 'https://petstore.swagger.io/v2/swagger.json'
        apiList = swagger.parse(url)

        print(apiList)

        with open('test.json',mode='w',encoding='utf8') as f:
            f.write(json.dumps(doc))
        ```
        - 输出结果
        ```javascript

        [
            {
                "id": "9ab05e2e90574be6abb4db4c68501179",
                "name": "uploadFile",
                "method": "post",
                "path": "/pet/{petId}/uploadImage",
                "url": "https://petstore.swagger.io/pet/{petId}/uploadImage",
                "headers": {
                    "Content-Type": "multipart/form-data"
                },
                "pathParams": {
                    "petId": 0
                },
                "query": {},
                "body": {},
                "form": {
                    "additionalMetadata": "string",
                    "file": "ppbug.txt"
                }
            },
            {
                "id": "a924c92add334822b1daddba8bc8ef78",
                "name": "addPet",
                "method": "post",
                "path": "/pet",
                "url": "https://petstore.swagger.io/pet",
                "headers": {
                    "Content-Type": "application/json"
                },
                "pathParams": {},
                "query": {},
                "body": {
                    "id": 0,
                    "category": {
                        "id": 0,
                        "name": "string"
                    },
                    "name": "doggie",
                    "photoUrls": [],
                    "tags": [],
                    "status": "string"
                },
                "form": {}
            },
            {
                "id": "c4bd9c643e264b748e63208dd2b3d309",
                "name": "updatePet",
                "method": "put",
                "path": "/pet",
                "url": "https://petstore.swagger.io/pet",
                "headers": {
                    "Content-Type": "application/json"
                },
                "pathParams": {},
                "query": {},
                "body": {
                    "id": 0,
                    "category": {
                        "id": 0,
                        "name": "string"
                    },
                    "name": "doggie",
                    "photoUrls": [],
                    "tags": [],
                    "status": "string"
                },
                "form": {}
            },
            {
                "id": "ed11e70e7c574891882c45872257a00c",
                "name": "findPetsByStatus",
                "method": "get",
                "path": "/pet/findByStatus",
                "url": "https://petstore.swagger.io/pet/findByStatus",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {},
                "query": {
                    "status": []
                },
                "body": {},
                "form": {}
            },
            {
                "id": "27c38cd6f706491ba8f090b309f2288c",
                "name": "findPetsByTags",
                "method": "get",
                "path": "/pet/findByTags",
                "url": "https://petstore.swagger.io/pet/findByTags",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {},
                "query": {
                    "tags": []
                },
                "body": {},
                "form": {}
            },
            {
                "id": "ad64f0d2c19b49da8ceca4c5d4360b9d",
                "name": "getPetById",
                "method": "get",
                "path": "/pet/{petId}",
                "url": "https://petstore.swagger.io/pet/{petId}",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {
                    "petId": 0
                },
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "452fee59adea4d629527e4da4e951a7a",
                "name": "updatePetWithForm",
                "method": "post",
                "path": "/pet/{petId}",
                "url": "https://petstore.swagger.io/pet/{petId}",
                "headers": {
                    "Content-Type": "application/x-www-form-urlencoded"
                },
                "pathParams": {
                    "petId": 0
                },
                "query": {},
                "body": {},
                "form": {
                    "name": "string",
                    "status": "string"
                }
            },
            {
                "id": "cefb30e0b6074e5b95988cb140199cc9",
                "name": "deletePet",
                "method": "delete",
                "path": "/pet/{petId}",
                "url": "https://petstore.swagger.io/pet/{petId}",
                "headers": {
                    "Content-Type": "",
                    "api_key": "string"
                },
                "pathParams": {
                    "petId": 0
                },
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "0838eaa73e7b4f11835d56a2ac5ad84e",
                "name": "getInventory",
                "method": "get",
                "path": "/store/inventory",
                "url": "https://petstore.swagger.io/store/inventory",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {},
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "fc5b97f3668e454699a60ea3cf78f9d8",
                "name": "placeOrder",
                "method": "post",
                "path": "/store/order",
                "url": "https://petstore.swagger.io/store/order",
                "headers": {
                    "Content-Type": "application/json"
                },
                "pathParams": {},
                "query": {},
                "body": {
                    "id": 0,
                    "petId": 0,
                    "quantity": 0,
                    "shipDate": "2021-05-01 12:30:15",
                    "status": "string",
                    "complete": true
                },
                "form": {}
            },
            {
                "id": "cefe4e1baefe4c15889e0d07936ba786",
                "name": "getOrderById",
                "method": "get",
                "path": "/store/order/{orderId}",
                "url": "https://petstore.swagger.io/store/order/{orderId}",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {
                    "orderId": 0
                },
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "529c296570134e5ebb0f0b7c1f9cbb20",
                "name": "deleteOrder",
                "method": "delete",
                "path": "/store/order/{orderId}",
                "url": "https://petstore.swagger.io/store/order/{orderId}",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {
                    "orderId": 0
                },
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "56297b02f62645a3a953253a22511404",
                "name": "createUsersWithListInput",
                "method": "post",
                "path": "/user/createWithList",
                "url": "https://petstore.swagger.io/user/createWithList",
                "headers": {
                    "Content-Type": "application/json"
                },
                "pathParams": {},
                "query": {},
                "body": [],
                "form": {}
            },
            {
                "id": "b7c3b59604a04e80aae31a58da6eff69",
                "name": "getUserByName",
                "method": "get",
                "path": "/user/{username}",
                "url": "https://petstore.swagger.io/user/{username}",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {
                    "username": "string"
                },
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "96f2456ffde64b29b8f0b60933867e99",
                "name": "updateUser",
                "method": "put",
                "path": "/user/{username}",
                "url": "https://petstore.swagger.io/user/{username}",
                "headers": {
                    "Content-Type": "application/json"
                },
                "pathParams": {
                    "username": "string"
                },
                "query": {},
                "body": {
                    "id": 0,
                    "username": "string",
                    "firstName": "string",
                    "lastName": "string",
                    "email": "string",
                    "password": "string",
                    "phone": "string",
                    "userStatus": 0
                },
                "form": {}
            },
            {
                "id": "762cb4d7eca747898d205a9db299d714",
                "name": "deleteUser",
                "method": "delete",
                "path": "/user/{username}",
                "url": "https://petstore.swagger.io/user/{username}",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {
                    "username": "string"
                },
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "9934fd148c124c75a41078d4507cb456",
                "name": "loginUser",
                "method": "get",
                "path": "/user/login",
                "url": "https://petstore.swagger.io/user/login",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {},
                "query": {
                    "username": "string",
                    "password": "string"
                },
                "body": {},
                "form": {}
            },
            {
                "id": "38ee5135b48c4d2c93ba772c4b23858a",
                "name": "logoutUser",
                "method": "get",
                "path": "/user/logout",
                "url": "https://petstore.swagger.io/user/logout",
                "headers": {
                    "Content-Type": ""
                },
                "pathParams": {},
                "query": {},
                "body": {},
                "form": {}
            },
            {
                "id": "85902f7350fc4cbfaf8ae3770cd83b32",
                "name": "createUsersWithArrayInput",
                "method": "post",
                "path": "/user/createWithArray",
                "url": "https://petstore.swagger.io/user/createWithArray",
                "headers": {
                    "Content-Type": "application/json"
                },
                "pathParams": {},
                "query": {},
                "body": [],
                "form": {}
            },
            {
                "id": "09a7346ae811409883d6109dde3a235f",
                "name": "createUser",
                "method": "post",
                "path": "/user",
                "url": "https://petstore.swagger.io/user",
                "headers": {
                    "Content-Type": "application/json"
                },
                "pathParams": {},
                "query": {},
                "body": {
                    "id": 0,
                    "username": "string",
                    "firstName": "string",
                    "lastName": "string",
                    "email": "string",
                    "password": "string",
                    "phone": "string",
                    "userStatus": 0
                },
                "form": {}
            }
        ]
        ```