Skip to main content

swaggerjmx-diff

Project description

swaggerjmx-diff

Build Status PyPI PyPI - Python Version GitHub top language PyPI - Downloads GitHub stars https://blog.csdn.net/flower_drop

安装

pip install -U swaggerjmx-diff

仓库地址:

功能

  1. 对比2个 swagger json 是否有变化,监控 swagger的变动

快速开始

  • 脚手架快速生成工程
swaggerjmx-diff startproject project_name
  • 如下

二次开发

  • 调用demo
# -*- coding: utf-8 -*-

from swaggerjmx_diff.diff import *

with open('open-api-v1.json', 'r', encoding='utf8')as fp:
    json_data_v1 = json.load(fp)

with open('open-api-v2.json', 'r', encoding='utf8')as fp:
    json_data_v2 = json.load(fp)

contrast_result, result = contrast_swagger(json_data_v1, json_data_v2)

调用流程图

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swaggerjmx-diff-1.0.4.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

swaggerjmx_diff-1.0.4-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page