{"id":15533337,"url":"https://github.com/b3b/ipython-restmagic","last_synced_at":"2025-04-23T14:44:59.584Z","repository":{"id":46185462,"uuid":"147660884","full_name":"b3b/ipython-restmagic","owner":"b3b","description":"HTTP REST magic for IPython","archived":false,"fork":false,"pushed_at":"2021-11-08T18:31:04.000Z","size":280,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T00:56:09.605Z","etag":null,"topics":["http","ipython","jupyter","python","python-requests"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b3b.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-06T11:02:59.000Z","updated_at":"2024-03-05T18:19:29.000Z","dependencies_parsed_at":"2022-07-22T00:46:54.641Z","dependency_job_id":null,"html_url":"https://github.com/b3b/ipython-restmagic","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3b%2Fipython-restmagic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3b%2Fipython-restmagic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3b%2Fipython-restmagic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b3b%2Fipython-restmagic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b3b","download_url":"https://codeload.github.com/b3b/ipython-restmagic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250456355,"owners_count":21433688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","ipython","jupyter","python","python-requests"],"created_at":"2024-10-02T11:35:56.345Z","updated_at":"2025-04-23T14:44:59.550Z","avatar_url":"https://github.com/b3b.png","language":"Python","readme":"ipython-restmagic\n=================\n\n.. start-badges\n.. image:: https://img.shields.io/pypi/v/restmagic.svg\n    :target: https://pypi.python.org/pypi/restmagic\n    :alt: Latest version on PyPi\n.. image:: https://img.shields.io/pypi/pyversions/restmagic.svg\n    :target: https://pypi.python.org/pypi/restmagic\n    :alt: Supported Python versions\n.. image:: https://github.com/b3b/ipython-restmagic/workflows/ci/badge.svg?branch=master\n     :target: https://github.com/b3b/ipython-restmagic/actions?workflow=CI\n     :alt: CI Status\n.. image:: https://img.shields.io/travis/b3b/ipython-restmagic.svg\n    :target: https://travis-ci.org/b3b/ipython-restmagic\n    :alt: Travis-CI build status\n.. image:: https://codecov.io/github/b3b/ipython-restmagic/coverage.svg?branch=master\n    :target: https://codecov.io/github/b3b/ipython-restmagic?branch=master\n    :alt: Code coverage Status\n.. image:: https://mybinder.org/badge_logo.svg\n    :target: https://mybinder.org/v2/gh/b3b/ipython-restmagic/master?filepath=examples/usage.ipynb\n    :alt: Open examples in Binder\n.. end-badges\n\n\n`%%rest` :  IPython magic to execute HTTP requests.\n\n:Code repository: https://github.com/b3b/ipython-restmagic\n:Documentation: https://herethere.me/restmagic\n:Changelog: https://github.com/b3b/ipython-restmagic/blob/master/CHANGELOG.rst\n\n\n\nUsage\n-----\n\n.. code-block:: ipython\n\n    In [1]: %load_ext restmagic\n    In [2]: %%rest\n       ...: POST https://httpbin.org/post\n       ...: Content-Type: application/json\n       ...: Authorization: Bearer $mytoken\n       ...:\n       ...: {\n       ...:     \"some\": \"data\",\n       ...:     \"array here\": [\n       ...:         \"item 1\",\n       ...:         \"item 2\"\n       ...:     ]\n       ...: }\n    Out [2]: \u003cResponse [200]\u003e\n\n\nInstallation\n------------\n\nPackage can be installed from the PyPI by executing::\n\n    pip install restmagic\n\nDevelopment version can be installed by executing::\n\n    pip install git+https://github.com/b3b/ipython-restmagic\n\nPackage can be uninstalled by executing::\n\n    pip uninstall restmagic\n\n\nRelated resources\n-----------------\n\n* `restclient.el \u003chttps://github.com/pashky/restclient.el\u003e`__ : HTTP REST client tool for Emacs\n* `Make Jupyter/IPython Notebook even more magical with cell magic extensions! \u003chttps://www.youtube.com/watch?v=zxkdO07L29Q\u003e`__ : Nicolas Kruchten's talk from the PyCon Canada 2015\n* `ipython-sql \u003chttps://github.com/catherinedevlin/ipython-sql\u003e`__ : was used as an example of IPython magic\n* `python-requests \u003chttps://github.com/requests/requests\u003e`__ : used for HTTP requests\n* `requests-toolbelt \u003chttps://github.com/requests/toolbelt\u003e`__ : used for HTTP sessions information dumping\n* `jsonpath-rw \u003chttps://github.com/kennknowles/python-jsonpath-rw\u003e`__ : used to extract parts of JSON responses\n* `lxml \u003chttps://github.com/lxml/lxml\u003e`__ : used to extract parts of XML/HTML responses\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3b%2Fipython-restmagic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb3b%2Fipython-restmagic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3b%2Fipython-restmagic/lists"}