Skip to main content

Python RESTful API Client

Project description

pyrac

Python RESTful API Client

Installation

First make sure you have python 3.10 installed on your system.

$ python --version
Python 3.10.x

Then install the required packages

pip install requests

That's it!

Help message

$ ./pyrac -h
 ____  _  _  ____   __    ___   
(  _ \( \/ )(  _ \ / _\  / __)  
 ) __/ )  /  )   //    \( (__   
(__)  (__/  (__\_)\_/\_/ \___)v0.2.0
            
       [-h] [-u URL] [-H] [-m METHOD] [-d JSON] [-r] [-q] [--data-file FILE]
       [--force-show-response] [--version]

Python RESTful API Client.

options:
  -h, --help            show this help message and exit
  -u URL, --url URL     (required) url of endpoint
  -H, --https           sets your connection to https
  -m METHOD, --method METHOD
                        sets your connection method. [GET, POST, OPTIONS]
  -d JSON, --data JSON  data that want to be passed in json format
  -r, --allow-redirects
                        allows redirects
  -q, --quiet           quiet output (no messages)
  --data-file FILE      data as a json file
  --force-show-response
                        shows response anyways
  --version             shows the version number

Examples

./pyrac -u jsonplaceholder.typicode.com/posts -m get --https

License

Licensed by MIT

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

pyrac-0.2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

pyrac-0.2.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page