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.
You can install the package using pip:
pip install pymytest
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
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request on GitHub.
This project is licensed under the MIT license - see the LICENSE file for details. pymytest is free and open-source.