Skip to main content

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.

Metadata

Release files for apicall 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apicall 0.0.1
File Size Uploaded
apicall-0.0.1.tar.gz 12.4 kB Details

Release files / apicall-0.0.1.tar.gz

Download URL apicall-0.0.1.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
40392b503711fc91e1a0f8a75a5f79e818b16cad3fb71db24cfb8a2fc6f67a30
BLAKE2b-256 checksum
How to use checksums
702ea5d74194db8ba9050efaa57666d28813123ee3e9a16cf08a6fe68d3c964e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

0.1.1

1 release file

0.1.0

1 release file

0.0.2

1 release file

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page