swagger2locustio
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:
pip install swagger2locustio
Usage
Command line options
usage: swagger2locustio [-h] -f SWAGGER_FILE [-r RESULTS_PATH] [-v]
[-o {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
-f SWAGGER_FILE, --swagger-file SWAGGER_FILE
path to swagger file (default: None)
-r RESULTS_PATH, --results-path RESULTS_PATH
path to store locustfile.py (default: generated)
-v, --verbose verbose (default: False)
-o {get,post,put,patch,delete,head,options,trace} [{get,post,put,patch,delete,head,options,trace} ...], --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 ...], --pw PATHS_WHITE [PATHS_WHITE ...]
paths to use in api testing (default: [])
--paths-black PATHS_BLACK [PATHS_BLACK ...], --pb PATHS_BLACK [PATHS_BLACK ...]
paths not to use in api testing (default: [])
--tags-white TAGS_WHITE [TAGS_WHITE ...], --tw TAGS_WHITE [TAGS_WHITE ...]
tags to use in api testing (default: [])
--tags-black TAGS_BLACK [TAGS_BLACK ...], --tb 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.
Metadata
Release files for swagger2locustio 0.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 |
|---|---|---|---|---|
| swagger2locustio-0.0.4.tar.gz | 34.7 kB | Without provenance | Details for swagger2locustio-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swagger2locustio-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for swagger2locustio-0.0.4-py3-none-any.whl |
Total release size: 87.6 kB
Release files / swagger2locustio-0.0.4.tar.gz
| Download URL | swagger2locustio-0.0.4.tar.gz |
|---|---|
| Size | 34.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6226f0caa6676ed957fd642b9cf3ac35ac1b65273c44ea912b5824ca56efcca4
|
|
BLAKE2b-256 checksum How to use checksums |
82380aa8f635c637f6cc264b8c006ec43890ff91518916caf61ba07ebc1901d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Release files / swagger2locustio-0.0.4-py3-none-any.whl
| Download URL | swagger2locustio-0.0.4-py3-none-any.whl |
|---|---|
| Size | 52.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a86cd97843162104ef4fcb939b75c91d87d7b9876a4216879892235d5b1e26ed
|
|
BLAKE2b-256 checksum How to use checksums |
16f85c7ed23ef509ccb064dffe3998967ae9c1d6a828ec8b31b1c8ffa8ba52d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for swagger2locustio 0.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.