Skip to main content

HTTP REST magic for IPython

Project description

%%rest : Jupyter/IPython notebook magic for HTTP queries execution.

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"
   ...:     ]
   ...: }

Examples

See notebooks:

In case notebooks do not render, examples could be viewed with Jupyter NBViewer: here .

Installation

Latest version can be installed by executing:

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

Package can be uninstalled by executing:

pip uninstall restmagic

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

restmagic-0.5.1.tar.gz (6.5 kB view hashes)

Uploaded Source

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