apicall 0.1.1

Last updated:

0 purchases

apicall 0.1.1 Image
apicall 0.1.1 Images
Add to Cart

Description:

apicall 0.1.1

apicall - User-friendly RESTful API & JSON-RPC Client
Usage
$ apicall endpoint https://example.com/rest-api/v1
$ restcall post /users -d '{"name": "bob"}'
$ restcall get /users/10
$ restcall get /users/search 'name=bob'
$ restcall delete /users/10

$ apicall endpoint https://example.cmo/json-rpc/v1
$ jsonrpccall create_account 'bob'
$ jsonrpccall get_account 10
$ jsonrpccall search_accounts_by_name 'bob'
$ jsonrpccall delete_account 10

Requirements

Python 3.7 or later
jq command
yapf command (For development)
mypy command (For development)
py.test (For development)

Installation
NOTE: If you want develop the apicall, see the "Development" section.
Please run the following command.
$ python3.7 -m pip install git+https://github.com/yuuki0xff/apicall

Arguments
apicall auth header
apicall auth header set NAME VALUE
apicall auth header unset NAME ...
apicall auth basic
apicall auth basic set USER PASSWORD
apicall auth basic unset
apicall endpoint [URLS ...]

restcall METHOD URL [QUERIES ...]
jsonrpccall FUNC [ARGS ...]

Development
Please run the following commands.
When install succeed, apicall commands are installed to your computer.
If you edited some codes under the git repository, changes are applied immediately to the behavior of apicall command.
$ git clone https://github.com/yuuki0xff/apicall
$ cd apicall
$ python3.7 -m pip install -e '.[dev]'

TODO

Improve help messages and documentation.
Support gRPC protocol.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.