Skip to main content

Python package that allows you to test APIs from the command line

Project description

pymytest

pymytest

pymytest is a Python package that allows you to test APIs from the command line. It returns the API response status code, body, and the time taken for execution.

Installation

You can install the package using pip:

pip install pymytest

Usage

After installation, you can use the pymytest command followed by the URL of the API you want to test. For example: (add your own api)

pymytest https://jsonplaceholder.typicode.com/posts/1

pymytest POST https://jsonplaceholder.typicode.com/posts '{"title": "pymytest", "body": "now", "userId": 1}'

pymytest PUT https://jsonplaceholder.typicode.com/posts/1 '{"title": "nnow", "body": "pymytest", "userId": 1}'

pymytest DELETE https://jsonplaceholder.typicode.com/posts/1

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request on GitHub.

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

pymytest-0.5.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

pymytest-0.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pymytest-0.5.tar.gz.

File metadata

  • Download URL: pymytest-0.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for pymytest-0.5.tar.gz
Algorithm Hash digest
SHA256 a99b470ea9e3247f589cbac2f5bfffb943bfe9087fa8779d49cdcd804a92f7c4
MD5 ec9f559c53d39b91ca8471fb61556f53
BLAKE2b-256 74d115e558eeb6cf8194aa5e73e3ecb12ddfd66038823e0008289c21e879d00a

See more details on using hashes here.

File details

Details for the file pymytest-0.5-py3-none-any.whl.

File metadata

  • Download URL: pymytest-0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for pymytest-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3204acf9c46d690303a2a79116c5368da841dd532c2e3353dd0d9d318a7dc1fc
MD5 2a6a3df79f3704e00b98b1a39414ab06
BLAKE2b-256 de8aabd8b26e1374884825c7ff6193b6ece2a2e2a01e8a88ebd98298ea5eaf0f

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