%%rest : IPython magic to execute HTTP requests.
Code repository: | https://github.com/b3b/ipython-restmagic |
---|---|
Documentation: | https://herethere.me/restmagic |
Changelog: | https://github.com/b3b/ipython-restmagic/blob/master/CHANGELOG.rst |
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]>
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
- restclient.el : HTTP REST client tool for Emacs
- Make Jupyter/IPython Notebook even more magical with cell magic extensions! : Nicolas Kruchten's talk from the PyCon Canada 2015
- ipython-sql : was used as an example of IPython magic
- python-requests : used for HTTP requests
- requests-toolbelt : used for HTTP sessions information dumping
- jsonpath-rw : used to extract parts of JSON responses
- lxml : used to extract parts of XML/HTML responses