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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for swaggerjmx-diff-1.0.4.tar.gz
Algorithm Hash digest
SHA256 7c1c981ca82f2c95b52c755dcbf7edd5bbe52215dafd7a779372de27befd7a6c
MD5 cf92a4004c0cb45c05ac63d62a67b6c6
BLAKE2b-256 8e36f65cb2fb4df1533de61ab3bc2d984255111534fb04130e0106eda534318c

See more details on using hashes here.

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

Hashes for swaggerjmx_diff-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a233d1c6f248cc6a7b739183bac97d650546e36abab1dae145fcd1a94e0882e
MD5 5bd65ba6e54422383bf9983d5005d9e1
BLAKE2b-256 1080857f4a1ed013ed974b570d0f4e1dbbf298aee7b2848712b42528fc779bfe

See more details on using hashes here.

Provenance

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