{"id":17933962,"url":"https://github.com/graphaelli/ipython-elasticsearch","last_synced_at":"2025-07-01T02:38:17.160Z","repository":{"id":139436718,"uuid":"47877857","full_name":"graphaelli/ipython-elasticsearch","owner":"graphaelli","description":"Elasticearch IPython magic","archived":false,"fork":false,"pushed_at":"2018-09-28T18:31:38.000Z","size":202,"stargazers_count":25,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T21:51:08.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphaelli.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-12T12:45:58.000Z","updated_at":"2024-01-18T05:19:36.000Z","dependencies_parsed_at":"2024-07-16T10:06:09.923Z","dependency_job_id":null,"html_url":"https://github.com/graphaelli/ipython-elasticsearch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/graphaelli/ipython-elasticsearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphaelli%2Fipython-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphaelli%2Fipython-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphaelli%2Fipython-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphaelli%2Fipython-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphaelli","download_url":"https://codeload.github.com/graphaelli/ipython-elasticsearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphaelli%2Fipython-elasticsearch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262885243,"owners_count":23379544,"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":[],"created_at":"2024-10-28T21:42:31.978Z","updated_at":"2025-07-01T02:38:17.101Z","avatar_url":"https://github.com/graphaelli.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nipython-elasticsearch\n=====================\n\n:Author: Gilad Raphaelli, http://g.raphaelli.com\n\nAdds %elasticsearch magic.\n\nExamples\n--------\n\n.. image:: notebook.png\n   :height: 1009 px\n   :width: 1103 px\n   :scale: 100%\n   :alt: notebook example\n   :align: center\n   :target: Learn%20Elasticsearch%20with%20Jupyter.ipynb\n\n.. code-block:: python\n\n    In [1]: %load_ext elasticsearch\n\n    In [2]: %%elasticsearch\n    ...: PUT twitter\n    ...: {\n    ...:   \"mappings\": {\n    ...:     \"tweet\": {\n    ...:       \"properties\": {\n    ...:         \"message\": {\n    ...:           \"type\": \"string\"\n    ...:         }\n    ...:       }\n    ...:     }\n    ...:   }\n    ...: }\n    ...:\n    Out[2]: {'acknowledged': True}\n\nDefaults endpoint http://localhost:9200::\n\n    In [3]: %elasticsearch\n    Using: http://localhost:9200/\n\nConfigure endpoint for the whole notebook::\n\n    In [4]: %elasticsearch http://my.host.es:1234/\n    Using: http://my.host.es:1234/\n\n    In [5]: %elasticsearch\n    Using: http://my.host.es:1234/\n\n    In [6]: %elasticsearch http://localhost:9200/\n    Using: http://localhost:9200/\n\nUse a different endpoint for one cell::\n\n    In [7]: %%elasticsearch http://my.host.es:1234/\n            GET /\n\n    Out[7]:\n    {'cluster_name': 'elasticsearch',\n     'name': 'my.host.es',\n     'tagline': 'You Know, for Search',\n     'version': {'build_hash': 'de54438d6af8f9340d50c5c786151783ce7d6be5',\n     'build_snapshot': False,\n     'build_timestamp': '2015-10-22T08:09:48Z',\n     'lucene_version': '5.2.1',\n     'number': '2.0.0'}}\n\n    In [8]: %elasticsearch\n    Using: http://localhost:9200/\n\nInstalling\n----------\n\nInstall the lastest release with::\n\n    pip install ipython-elasticsearch\n\nor clone from https://github.com/graphaelli/ipython-elasticsearch and::\n\n    cd ipython-elasticsearch\n    python setup.py install\n\nDevelopment\n-----------\n\nhttps://github.com/graphaelli/ipython-elasticsearch\n\nTodo\n----\n\n- configurables\n  - default elasticsearch endpoint\n  - renderjson styles\n- appropriate default output in console\n- contextual help\n\nCredit\n------\n\n- https://github.com/catherinedevlin/ipython-sql for serving as a template\n- http://caldwell.github.io/renderjson/ for the collapsable JSON rendering\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphaelli%2Fipython-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphaelli%2Fipython-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphaelli%2Fipython-elasticsearch/lists"}