Python RESTful API Client
Project description
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
pyrac-0.2.0-py3-none-any.whl
(5.6 kB
view details)
File details
Details for the file pyrac-0.2.0.tar.gz
.
File metadata
- Download URL: pyrac-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d97e759b2cadb776142e59d609ae35b9ef4f322cad44473c758ca37730350f5b |
|
MD5 | d29afc7c65309e80cc96985a8e9a4ed4 |
|
BLAKE2b-256 | 0b7abb587340923a816d437371189ba05a42bf6b92db8f181e60259020a495be |
File details
Details for the file pyrac-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pyrac-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 244f58fa04d37778c00a2128f59a14920036a74410396eeb34f110d11212625c |
|
MD5 | e33beb53a5e7b14f19e0fbfa5ffbbe0b |
|
BLAKE2b-256 | 9456e758b75defcba7b9ae689acc5dfae0ae4f09e98a155cc1b241641c8fac4a |