Skip to main content

swagger convert jmx

Project description

swaggerjmx

Build Status PyPI PyPI - Python Version GitHub top language PyPI - Downloads GitHub stars https://blog.csdn.net/flower_drop

Logo

logo

安装

pip install swaggerjmx

仓库地址:

社区地址

适用场景

  1. 由于接口文档编写耗时,而且需要持续维护,耗时耗力,使用此工具可以一键自动生成接口文档.
  2. swagger-ui接口文档一键生成jmx文件供jmeter使用.

功能

  1. 将swagger-ui文档转换为jmx文件

Demo_1

# -*- coding: utf-8 -*-

from swaggerjmx.convert import conversion
from swaggerjmx.settings import Settings as ST
#  swagger_url
ST.swagger_url = 'http://ip:port/v2/api-docs'
#  report_path
ST.report_path = 'jmx'
# 开始转换
conversion()

Demo_2

  • 需要登录才能访问的,可以复制swagger_url页面上的json信息,保存json文件,使用Demo_2方式转换
# -*- coding: utf-8 -*-

from swaggerjmx.convert import conversion
from swaggerjmx.settings import Settings as ST
#  swagger_url_json_path 
ST.swagger_url_json_path = 'test.json'
#  report_path
ST.report_path = 'jmx'
# 开始转换
conversion()

以上便是 swaggerjmx 的基本用法介绍。

如果您有发现错误,或者您对 swaggerjmx 有任何建议,欢迎到 swaggerjmx Issues 发表,非常感谢您的支持。您的反馈和建议非常宝贵,希望您的参与能帮助 swaggerjmx 做得更好。

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-1.0.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

swaggerjmx-1.0.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file swaggerjmx-1.0.4.tar.gz.

File metadata

  • Download URL: swaggerjmx-1.0.4.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0

File hashes

Hashes for swaggerjmx-1.0.4.tar.gz
Algorithm Hash digest
SHA256 90be47997b6d9ef9ec5786f3916444874f5bcb66dc4977c5e7820644454cf72f
MD5 36470cb689a78ff12f81d253223ab47b
BLAKE2b-256 24fd079884557d7fa92c45eb7e4dc78c487eb155e609bc934b6b10c2e1c39bab

See more details on using hashes here.

Provenance

File details

Details for the file swaggerjmx-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: swaggerjmx-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0

File hashes

Hashes for swaggerjmx-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6df23b7325894ea0a2e4600c65c2bb548f939a79bb41584bdb85fef3d3903b3c
MD5 904117bd700e73c352e88f3096ad800c
BLAKE2b-256 06d0acf16cb06655d7a453549956f368d5b8c0c5cf9e4a71c6ace09ea46b83bb

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