Coders Packet

Simple REST API client using Python

By Raagan U

A simple REST API client made in python that can be used to make requests to REST APIs. All Five basic HTTP Methods are implemented in this script.

* This REST API client is simple and command-line based. It uses the built-in requests , json and argparse module.

This tool consists of basic five http methods to send requests and receive responses. The builtin json module is used to get the json string provided along the command-line-arguments. Argparse is used to parse the command_line_arguments and the builtin python function vars() is used to convert the namespace object of argparse into a dictionary from which we can use the command-line-data easily. The remaining is all the requests modules' work.

Download Complete Code


No comments yet