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)
调用流程图
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swaggerjmx-diff-1.0.4.tar.gz | 8.9 kB | Without provenance | Details for swaggerjmx-diff-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swaggerjmx_diff-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for swaggerjmx_diff-1.0.4-py3-none-any.whl |
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
|
Security for swaggerjmx-diff 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.