restmagic

HTTP REST magic for IPython


Keywords
magic, rest, http, ipython, jupyter, python, python-requests
License
MIT
Install
pip install restmagic==0.7.2

Documentation

ipython-restmagic

Latest version on PyPi Supported Python versions Travis-CI build status Code coverage Status

%%rest : HTTP REST magic for IPython.

Intended to provide similar functionality as restclient.el - HTTP REST client tool for Emacs.

Usage

In [1]: %load_ext restmagic
In [2]: %%rest
   ...: POST https://httpbin.org/post
   ...: Content-Type: application/json
   ...: Authorization: Bearer $mytoken
   ...:
   ...: {
   ...:     "some": "data",
   ...:     "array here": [
   ...:         "item 1",
   ...:         "item 2"
   ...:     ]
   ...: }
Out [2]: <Response [200]>

Examples

See notebooks:

Installation

Package can be installed from the PyPI by executing:

pip install restmagic

Development version can be installed by executing:

pip install git+https://github.com/b3b/ipython-restmagic

Package can be uninstalled by executing:

pip uninstall restmagic

Related resources