Metadata-Version: 2.1
Name: swagger2locustio
Version: 0.0.2
Summary: Tool for testing API endpoints that have Open API / Swagger specifications using locustio
Home-page: https://github.com/vsvirsky/swagger2locustio
Author: 
Author-email: 
License: MIT
Description: # swagger2locustio
        
        <p align="center">
            <a href="https://pypi.org/project/swagger2locustio/" alt="PyPi Version">
                <img src="https://img.shields.io/pypi/v/swagger2locustio.svg" />
            </a>
            <a href="https://pypi.org/project/swagger2locustio/" alt="Python Versions">
                <img src="https://img.shields.io/pypi/pyversions/swagger2locustio.svg" />
            </a>
            <!--a href="" alt="Coverage">
                <img src="" />
            </a-->
            <a href="https://github.com/vsvirsky/swagger2locustio/LICENSE" alt="MIT License">
                <img src="https://img.shields.io/github/license/vsvirsky/swagger2locustio" />
            </a>
            <!--a href="" alt="Docs">
                <img src="" />
            </a-->
            <a href="https://github.com/vsvirsky/swagger2locustio/issues/" alt="Issues">
                <img src="https://img.shields.io/github/issues/vsvirsky/swagger2locustio" />
            </a>
            <a href="https://github.com/vsvirsky/swagger2locustio/issues/" alt="Pull Requests">
                <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" />
            </a>
            <!--a href="" alt="Contributors">
                <img src="" />
            </a-->
            <a href="https://github.com/vsvirsky/swagger2locustio" alt="Github actions">
                <img src="https://github.com/vsvirsky/swagger2locustio/.github/workflows/pythonpackage.yml/badge.svg" />
            </a>
            <a href="https://github.com/pre-commit/pre-commit" alt="pre-commit">
                <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" />
            </a>
        </p>
        
        swagger2locustio - a tool for testing API endpoints that have Open API / Swagger specifications using locustio.
        
        It generates `locustfile.py` from the application schema.
        
        ## Supported specification versions:
        
        - Swagger 2.x
        
        ## Installation
        
        To install swagger2locustio via ``pip`` run the following command:
        
        ```bash
        pip install swagger2locustio
        ```
        
        
        ## Usage
        
        #### Command line options
        
        ```
        usage: swagger2locustio [-h] --swagger-file SWAGGER_FILE [--results-path RESULTS_PATH] [--loglevel {info,debug,warning,error}] [--strict-level {0,1,2}]
                                [--operations {get,post,put,patch,delete,head,options,trace} [{get,post,put,patch,delete,head,options,trace} ...]]
                                [--paths-white PATHS_WHITE [PATHS_WHITE ...]] [--paths-black PATHS_BLACK [PATHS_BLACK ...]] [--tags-white TAGS_WHITE [TAGS_WHITE ...]]
                                [--tags-black TAGS_BLACK [TAGS_BLACK ...]]
        
        optional arguments:
          -h, --help            show this help message and exit
          --swagger-file SWAGGER_FILE
                                path to swagger file (default: None)
          --results-path RESULTS_PATH
                                path to store locustfile.py (default: generated)
          --loglevel {info,debug,warning,error}
                                logging level (default: info)
          --strict-level {0,1,2}
                                add paths with required params without default values to locust tests (default: 2)
          --operations {get,post,put,patch,delete,head,options,trace} [{get,post,put,patch,delete,head,options,trace} ...]
                                operations to use in api testing (default: ['get'])
          --paths-white PATHS_WHITE [PATHS_WHITE ...]
                                paths to use in api testing (default: [])
          --paths-black PATHS_BLACK [PATHS_BLACK ...]
                                paths not to use in api testing (default: [])
          --tags-white TAGS_WHITE [TAGS_WHITE ...]
                                tags to use in api testing (default: [])
          --tags-black TAGS_BLACK [TAGS_BLACK ...]
                                tags to use in api testing (default: [])
        ```
        
        ## Contributing
        
        Please, see the `CONTRIBUTING.md` file for more details.
        
        ## License
        
        The code in this project is licensed under `MIT license`.
        By contributing to `swagger2locustio`, you agree that your contributions
        will be licensed under its MIT license.
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
