Skip to main content

Automation Sniper

PyPI PyPI Documentation Status PyPI download month GitHub release license GitHub forks GitHub contributors GitHub issues GitHub open-pull-requests Maintenance

What is Automation-Sniper?

Automation-sniper is a library used to generate a performance framework from Open API Specs.

Nowadays API is commonly used in every service. So folk follows Open API specs to define the APIs.

Writing a performance script for each API is a really painful task.

That’s why Automation Sniper came into the picture. You can generate a performance framework from Open API specs.

How Can Automation Sniper Tool Help You

Swagger Specs

If your team owns swaggers spec of version V2 or V3 then you can generate performance(python+locust) framework using automation-sniper Tool. The process is very simple. You just need the automation-sniper tool setup. Once this is done either you can pass the swagger doc link or swagger JSON/YML file to the tool. The tool will generate the framework for you within a few ms.

Postman Collection

Inprogress -- In development

Features

  • Convert swagger specs into locust framework

You can get a performance framework that supports python and locust from your swagger specs. So you don't need to write any code for your API. Looks Cool Right!!!

  • Support specs deprecation handling in the framework

It supports swagger specs deprecation handling in your framework. Deprecated API will have the deprecated annotation in your framework.

  • Support postman collection to locust framework

It supports the postman collection too. That means you can convert your all postman APIs into a performance framework.

  • Support regeneration of framework if specs are deprecated

Now the best feature you will like surely. It supports the regeneration of the framework. That means if tomorrow your specs change then you just need to upload the old framework and all-new specs will be overwritten into your framework. ** This is the Beauty of No Code Project **

Name & background

Automation-Sniper was born out of frustration. When I was writing a performance script for APIs, it was a really time taking process. Writing the wrapper of each API from the swagger spec is a pathetic task. Also tomorrow any specs change then also maintaining that is again another big task. As you know Automation is everywhere. So here Idea came to automate this pathetic process. Hence No Code Project Automation-Sniper came to the market as a warrior.

$ automation-sniper -h

usage: automation-sniper [-h] [--version] -f FRAMEWORK_NAME -p PATH [-r RESULTS_PATH] [-sp SCRIPT_PATH]
                         [-o {get,post,put,patch,delete,head,options,trace} [{get,post,put,patch,delete,head,options,trace} ...]]
                         [-v] [-ba BLACKLIST_API [BLACKLIST_API ...]] [-wa WHITELIST_API [WHITELIST_API ...]]

This tool help to convert API Specs into automation Framework

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -f FRAMEWORK_NAME, --framework_name FRAMEWORK_NAME
                        Provide the name of the framework
  -p PATH, --path PATH  Provide the path to swagger file/postman file or provide swagger api-docs url/postman
                        collection url
  -r RESULTS_PATH, --results-path RESULTS_PATH
                        path to store generated automation framework default: result
  -sp SCRIPT_PATH, --script-path SCRIPT_PATH
                        provide script folder path as zip format
  -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
  -v, --verbose         verbose
  -ba BLACKLIST_API [BLACKLIST_API ...], --blacklist-api BLACKLIST_API [BLACKLIST_API ...]
                        tags to use in api testing
  -wa WHITELIST_API [WHITELIST_API ...], --whitelist-api WHITELIST_API [WHITELIST_API ...]
                        tags to use in api testing

And that's how you'd like to use this tool. To know about more please read the documentation https://automation-sniper.readthedocs.io/

Authors

License

Open-source licensed under the Apache License 2.0 (see LICENSE file for details).

Metadata

Release files for automation-sniper 2.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for automation-sniper 2.4.2
File Size Uploaded
automation-sniper-2.4.2.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for automation-sniper 2.4.2
File Interpreter ABI Platform
automation_sniper-2.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 63.9 kB

Release files / automation-sniper-2.4.2.tar.gz

Download URL automation-sniper-2.4.2.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bdde24f0c8006ea55d52069c17a8efbf53d997e4126185bb0ef20be0ac8742b9
BLAKE2b-256 checksum
How to use checksums
70f8211ef2797f45cb6f23150c59130ffb4e71b7b1920492be1533bafe023748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / automation_sniper-2.4.2-py3-none-any.whl

Download URL automation_sniper-2.4.2-py3-none-any.whl
Size 36.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9322d002ad76b943f4365e979da2578ce08b1169fbb88f2b1a9403a0ae125824
BLAKE2b-256 checksum
How to use checksums
983ded1e67d6a9d3c4dbb981b9c22b3ed1b9b70e10a0b8ea74bd7501512d9a4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

2.4.2 This release

2 release files

2.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page