swaggerjmx-diff
Project description
swaggerjmx-diff
安装
pip install -U swaggerjmx-diff
仓库地址:
功能
- 对比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 details)
Built Distribution
File details
Details for the file swaggerjmx-diff-1.0.4.tar.gz
.
File metadata
- Download URL: swaggerjmx-diff-1.0.4.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c1c981ca82f2c95b52c755dcbf7edd5bbe52215dafd7a779372de27befd7a6c |
|
MD5 | cf92a4004c0cb45c05ac63d62a67b6c6 |
|
BLAKE2b-256 | 8e36f65cb2fb4df1533de61ab3bc2d984255111534fb04130e0106eda534318c |
Provenance
File details
Details for the file swaggerjmx_diff-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: swaggerjmx_diff-1.0.4-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a233d1c6f248cc6a7b739183bac97d650546e36abab1dae145fcd1a94e0882e |
|
MD5 | 5bd65ba6e54422383bf9983d5005d9e1 |
|
BLAKE2b-256 | 1080857f4a1ed013ed974b570d0f4e1dbbf298aee7b2848712b42528fc779bfe |