RequestsOpenAPI 是 OpenAPI 3.0 的 Python 客户端库
项目描述
请求-openapi
RequestsOpenAPI 是 OpenAPI 3.0 的 Python 客户端库
用法
import requests_openapi
c = requests_openapi.Client()
c.load_spec_from_url("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml")
resp = c.listPets() # resp: requests.Response
resp.json()
安装
pip install requests-openapi
执照
麻省理工学院