Skip to main content

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)

调用流程图

Metadata

Release files for swaggerjmx-diff 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swaggerjmx-diff 1.0.4
File Size Uploaded
swaggerjmx-diff-1.0.4.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swaggerjmx-diff 1.0.4
File Interpreter ABI Platform
swaggerjmx_diff-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / swaggerjmx-diff-1.0.4.tar.gz

Download URL swaggerjmx-diff-1.0.4.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7c1c981ca82f2c95b52c755dcbf7edd5bbe52215dafd7a779372de27befd7a6c
BLAKE2b-256 checksum
How to use checksums
8e36f65cb2fb4df1533de61ab3bc2d984255111534fb04130e0106eda534318c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / swaggerjmx_diff-1.0.4-py3-none-any.whl

Download URL swaggerjmx_diff-1.0.4-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a233d1c6f248cc6a7b739183bac97d650546e36abab1dae145fcd1a94e0882e
BLAKE2b-256 checksum
How to use checksums
1080857f4a1ed013ed974b570d0f4e1dbbf298aee7b2848712b42528fc779bfe
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page