Skip to main content

Handy REST API client on your terminal

Project description

Handy REST API client on your terminal

PyPI version Build Status asciicast

Get started with an interactive demo

NOTE: This demo requires supported version of python and virtualenv to be installed

curl -L https://raw.githubusercontent.com/rapidstack/RESTEasyCLI/master/tools/demo.sh -o demo.sh
chmod +x demo.sh
./demo.sh

Installation

# Install it globally
sudo pip install -U resteasycli

# OR

# Install it locally
pip install -U --user resteasycli

Usage

Help menu

recli help

Initialize workspace

mkdir myworkspace
cd myworkspace
recli init
# Few template files should be generated namely: auth.yml  headers.yml  saved.yml  sites.yml

Do CRUD requests

recli get testing/t
recli post testing/t --kwargs title=abcd userId=10
recli put testing/t/1 --kwargs title=abcd
recli patch testing/t1 --kwargs title=xyz
recli delete testing/t/1

Special formatting of data

List

recli list testing/t

Show

recli show testing/t/1

Save a request for later use

recli get testing/t/1 -s my_request

# Request will be saved in saved.yml as "my_request"

Do or redo a saved request

# Without formatting
recli do remind_shopping
# Same as
recli redo remind_shopping

# With formatting
recli dolst remind_shopping -m GET -k
# Same as
recli redo-list remind_shopping --method GET --kwargs

Most importantly fake a request

recli redo-show remind_shopping -m GET -k --fake

# It can be used with -s to save the request for later use without doing it

recli redo-show remind_shopping -m GET -k --fake -s get_todos

TODO list

Check the great TODO list on project board

Contribution guide

This is a new born project and has lots of scope for improvements.

If you feel that you can help with any of above TODO list or if you have a totally unique idea, feel free to jump right in.

Here are some tips to start contributing to this project right away.

  • Instead of directly creating pull requests, create a issue first to check it’s relevence and save efforts. However,

  • If you find a bug, feel free to directly create pull requests by forking master branch

  • Awesome if commit messages and pull request description are clear and concise

  • One of it’s depedency RESTEasy has a gitter channel for any doubt or discussion related to this project or RESTEasy

  • Use pipenv to install/update dependencies

  • Do not modify README.rst file. It’s auto generated using m2r (Installed as a dev dependency). While updating README.md file, use plugin for auto TOC update.

  • Run ./tools/before_push.sh before pushing. It will take care of house keeping stuffs like generating README.rst, checking if VERSOIN info is updated correctly in all files etc.

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

RESTEasyCLI-0.3.4.tar.gz (16.9 kB view details)

Uploaded Source

Built Distributions

RESTEasyCLI-0.3.4-py3.5.egg (21.3 kB view details)

Uploaded Source

RESTEasyCLI-0.3.4-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file RESTEasyCLI-0.3.4.tar.gz.

File metadata

  • Download URL: RESTEasyCLI-0.3.4.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for RESTEasyCLI-0.3.4.tar.gz
Algorithm Hash digest
SHA256 8d5ad4a879357b7520808638bb36be8b22be50842c3953ddb93cd119fe775c03
MD5 97cfbae2f5b3adec396abc320102db1d
BLAKE2b-256 39a003019156a87a269a120e7e10de03a4efa67318c650f4d79ab1a8a9cec2bf

See more details on using hashes here.

Provenance

File details

Details for the file RESTEasyCLI-0.3.4-py3.5.egg.

File metadata

  • Download URL: RESTEasyCLI-0.3.4-py3.5.egg
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for RESTEasyCLI-0.3.4-py3.5.egg
Algorithm Hash digest
SHA256 56ac5580d70489e607d6ae2cb3f492cc2cc56c22aa33ce6b4fa2ba5f6d9fbd6e
MD5 2ac703e9c99a071c749fbc28eacf1ff1
BLAKE2b-256 beb965a8de9150493cad7b52d2a4af66bd6632081919c71ba01dfd8bbd162c3a

See more details on using hashes here.

Provenance

File details

Details for the file RESTEasyCLI-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: RESTEasyCLI-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for RESTEasyCLI-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 543e65553ab191253e591077a0eb96add50d496c72686b540fb2174b4b1886f7
MD5 49e10af269a06f66e3f4fc8fb07ae8d1
BLAKE2b-256 47c70325ec289c8221c19ba35ec56e5265322ac4db009563dab0bec6e25c63f1

See more details on using hashes here.

Provenance

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