Skip to main content

User-friendly RESTful API & JSON-RPC Client

Project description

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

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.

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

apicall-0.1.1.tar.gz (12.8 kB view details)

Uploaded Source

File details

Details for the file apicall-0.1.1.tar.gz.

File metadata

  • Download URL: apicall-0.1.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2+

File hashes

Hashes for apicall-0.1.1.tar.gz
Algorithm Hash digest
SHA256 08c808c755d14a15a691b45663f341025614dbaeccd0f4faf90a22e8c8f6ef1f
MD5 774fe6e4320899425017850db676b670
BLAKE2b-256 920416737610f093f633cf0ca9b67eefe727dbd68be86c3167addb92a5607738

See more details on using hashes here.

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