Metadata-Version: 2.1
Name: swaggerjmx-diff
Version: 1.0.4
Summary: swaggerjmx-diff
Home-page: https://github.com/Pactortester
Author: lijiawei
Author-email: 1456470136@qq.com
License: MIT Licence
Keywords: pip,swaggerjmx-diff,swaggerjmx,diff
Platform: any
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console :: Curses
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Security
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: Proxy Servers
Classifier: Topic :: System :: Networking :: Monitoring
Classifier: Topic :: Software Development :: Testing
Classifier: Typing :: Typed
Description-Content-Type: text/markdown
Requires-Dist: deepdiff (~=5.5.0)
Requires-Dist: loguru (~=0.5.3)
Requires-Dist: allure-pytest (~=2.9.43)
Requires-Dist: allure-python-commons (~=2.9.43)
Requires-Dist: requests (~=2.25.1)

# swaggerjmx-diff

[![Build Status](https://travis-ci.com/Pactortester/swaggerjmx-diff.svg?branch=master)](https://travis-ci.com/Pactortester/swaggerjmx-diff) ![PyPI](https://img.shields.io/pypi/v/swaggerjmx-diff) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swaggerjmx-diff) ![GitHub top language](https://img.shields.io/github/languages/top/Pactortester/swaggerjmx-diff) ![PyPI - Downloads](https://img.shields.io/pypi/dm/swaggerjmx-diff?style=plastic) ![GitHub stars](https://img.shields.io/github/stars/Pactortester/swaggerjmx-diff?style=social) ![https://blog.csdn.net/flower_drop](https://img.shields.io/badge/csdn-%40flower__drop-orange)



## 安装


pip install -U swaggerjmx-diff


##  仓库地址：

- pypi：https://pypi.org/project/swaggerjmx-diff

## 功能


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

## 快速开始
- 脚手架快速生成工程
```shell
swaggerjmx-diff startproject project_name
```
- 如下

![](https://files.mdnice.com/user/17535/0c5b12b2-765c-490e-84e2-24627447c09a.png)

## 二次开发

- 调用demo

```python
# -*- 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)

```
## 调用流程图

![](https://files.mdnice.com/user/17535/d9dd3cdc-0622-4282-836c-682c39f76208.png)

