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 GET 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.6.tar.gz (2.7 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.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymytest-0.6.tar.gz
Algorithm Hash digest
SHA256 f14cb77803c90978f8811b24fa0b6ee069cbcb275196affb52e39e0adac57a9e
MD5 8670489b6976f19fd95b50bf377fd8ba
BLAKE2b-256 197097518e3d5cf61a91c2ba9bd0c7e680429d4e81ec707350db0cdbe9b6a156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymytest-0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 181b2bc547ec9997c914eebaa0cc621f5367fb5c61561051788beec088b48390
MD5 8bee51e4ee73e081f1b23bbdab02c5cf
BLAKE2b-256 60280fe95cd8f8d19002e1aa77d50b8da11be56e59bd15e0bbd4ac416c9470a7

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