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.7.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.7-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymytest-0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 0463b6552b0522820b65d427d64f491049cdbba9c1df7a1e9c504727682c3042
MD5 0c0914176318238f999d8131ecd08cc6
BLAKE2b-256 eada98fc1023cace75468f28992dc0f002120a267df2ee971461b26171c0e486

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymytest-0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 62dd86ef4dcf1435fe0eaafef97cccf8b8f3f7031e347325b989a4dc6e0ba0e5
MD5 072c6a2e6437a18a32faea3298a2c761
BLAKE2b-256 beb341785c0a864243a4fa0ceff55afeecb5bc08dd0b92c5e7143410ffe96882

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