Skip to main content

A modern CLI program for API testing

Project description

Ayonix

A CLI program for API testing.

Features

  • Send HTTP requests to specified URLs
  • Supports GET, POST, PUT, DELETE, and other HTTP methods
  • Include headers and data in requests
  • Measure and display response time
  • Calculate average response time over multiple requests
  • Display response status code, headers, and content

Installation

You can install the package using pip:

pip install ayonix

Usage

[!IMPORTANT] The flag [-d --data] is deprecated and fully out of support, has been renamed to [-b --body]

The usage name for Ayonix is call:

call "https://jsonplaceholder.typicode.com/posts" --method POST -H '{"Content-Type": "application/json"}' -b '{"title": "foo", "body": "bar", "userId": 1}'

The following table shows the available flags that Ayonix allows for:

CLI Flags and Arguments

Flag/Argument Type Default Description
url str Required URL to send the request to.
--method str GET HTTP method to use (e.g., GET, POST, PUT, DELETE).
-H, --header JSON string None Headers to include in the request as a JSON string.
-b, --body JSON string None Body data to include in the request as a JSON string.
--only-content flag False Only print the content of the response.
--only-res-code flag False Only print the response code.
-m, --metrics flag False Print metrics of the response (e.g., time, headers, cookies).
-a, --average-response-time int None Calculate and print the average response time (number of requests specified).

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

ayonix-0.3.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ayonix-0.3.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ayonix-0.3.3.tar.gz.

File metadata

  • Download URL: ayonix-0.3.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for ayonix-0.3.3.tar.gz
Algorithm Hash digest
SHA256 341e94577e56ed927de5f44d2ed940d67e5b1f89ec731c6e504d0c617c56a892
MD5 f0fc260db8db45e4aac7efdfc60159e7
BLAKE2b-256 4167071838f07b1afa38585844e0cfffa762d9743b4c7158b910209a8a1c23ac

See more details on using hashes here.

File details

Details for the file ayonix-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: ayonix-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for ayonix-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3569ec4c499f128654bd230fead993de082065efc0d47a24d66fb00c12594da9
MD5 a06e6a2aea87e3889ab5aed8b17f9c7a
BLAKE2b-256 f5f632137462ca39f5a33ee9da458a58d211b4b42d1cd619acf05a47c39d3ece

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page