Skip to content

prasadjivane/pymytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

License

This project is licensed under the MIT license - see the LICENSE file for details. pymytest is free and open-source.