ipython-restmagic¶
%%rest : IPython magic to execute HTTP requests.
- Code repository
- Documentation
- Changelog
https://github.com/b3b/ipython-restmagic/blob/master/CHANGELOG.rst
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]>
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