Skip to main content

HTTP REST magic for IPython

Project description

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

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.7.2.tar.gz (11.1 kB view details)

Uploaded Source

File details

Details for the file restmagic-0.7.2.tar.gz.

File metadata

  • Download URL: restmagic-0.7.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for restmagic-0.7.2.tar.gz
Algorithm Hash digest
SHA256 9e71e1ef22e9ab7853d141ed4a4f99ad277a79b1129b6b6cf1e886d6f7bccbad
MD5 7c0af9e2cf45622bb0c8ecb21db9371c
BLAKE2b-256 fb218732a279451b1caef05f8d455b3bf3f54c1d6ad712f5fa4557e1d57549f1

See more details on using hashes here.

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