Abstractions should save typing, not thinking! This project will provide a quick and simple CLI for REST API consumption. Build your own library of known API endpoints/modifiers, and consume directly via the CLI.
Project description
Python REST Tool
Synopsis
Provide a python tool to quickly invoke REST calls with a pre-defined list of settings, plays.
How to use this tool
Download the package:
python3 -m pip install restify-ENGYAK
Invoke via the CLI:
python3 -m restify -f settings.json list_plays
To build a new settings file:
python3 -m restify create_settings > settings.json
To list plays provided by a settings file:
python3 -m restify -f settings.json list_plays
API Invocation
Once the package is installed, the namshub()
API can be used by:
# Import Restify Library
from restify.RuminatingCogitation import Settings
from restify.RuminatingCogitation import Reliquary
# Set the interface - apply from variables no matter what
cogitation_interface = Reliquary(args.f, input_user=api_user, input_pass=api_pass)
# Exposed variables: def namshub(self, namshub_string, namshub_variables=False, namshub_dryrun=False):
cogitation_interface.namshub({{ }}, namshub_variables={{ }})
And then process data from there.
Notes
Authors
- Nick Schmidt
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
restify-ENGYAK-0.1.11.tar.gz
(20.1 kB
view hashes)
Built Distribution
Close
Hashes for restify_ENGYAK-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dbd10cb0dc7746dc7eb27fe2c263dc26865fb627d6854ebdb8baae79bdd311d |
|
MD5 | 3d0daf3fd4b7894f9ae2e07f8b5f2fc7 |
|
BLAKE2b-256 | eb94f328f6a805aff31de96a05d8873c96897a1300139f8b46ba2491349e4568 |