{ "info": { "author": "John Bjorn Nelson", "author_email": "jbn@abreka.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "idgraph\n=======\n\n.. image:: https://img.shields.io/pypi/v/idgraph.svg\n :target: https://pypi.python.org/pypi/idgraph\n\n.. image:: https://travis-ci.org/jbn/idgraph.svg?branch=master\n :target: https://travis-ci.org/jbn/idgraph\n\n\nProvides IPython cell magic for `dgraph `__ remote\ninteraction.\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install idgraph\n\nWhy is this?\n------------\n\nWhile `dgraph `__ provides several useful interfaces,\nI spend most of my time learning, exploring, and developing in\n`Jupyter `__. Executable documentation is\nfantastic! This package abstractly provides cell magic for dgraph query,\nmutation, and alteration execution. You could do the same with ``curl``\nor ``requests``. But, the sensible defaults help make things less\nverbose and tedious. (It's inspired by my experience with\n`itikz `__ which proved really\nbeneficial.)\n\nUsage\n-----\n\nThe easiest way to understand how this works is by following (and cloning)\nthe `tutorial notebook `__.\nIt's a projection dgraph's\n`Tour of Dgraph: A Bigger Dataset `__.\n\nCheat Sheet\n~~~~~~~~~~~\n\nLoad the extension with,\n\n.. code::\n\n %load_ext idgraph\n\nThen,\n\n- By default, ``%%dgraph`` assumes a query.\n\n - ``%%dgraph --alter`` does an alteration\n - ``%%dgraph --mutate`` does a mutation\n\n- By default, ``%%dgraph`` assumes ``localhost:8080``\n\n - ``%%dgraph --addr=remote-host:8080`` overrides the default\n - The ``DGRAPH_ADDR`` environmental variable overrides default if\n the ``--addr`` flag isn't set\n\n- By default, only the value associated with the ``data`` key in the\n response is shown.\n\n - ``%%dgraph --full-resp`` shows the full response including\n metadata.\n - ``%%dgraph --jmespath=\"query\"`` allows you to extract part of the\n response with a `jmespath `__ query.\n\n- By default, each cell execution binds the extracted response to\n ``_dgraph`` and the full response to ``_dgraph_full``\n\n - ``%%dgraph --into=name`` will bind the extracted response to\n ``name`` and the full response to ``{name}_full``\n\n- By default, the cell contents are executed.\n\n - ``%%dgraph --skip`` skips execution.\n\n - Useful for mutations that are possibly dangerous on someone\n else's computer.\n\n- Jinja\n\n - technically you can use templates in a directory. you almost\n certainly shouldnt though.\n\nCredits\n~~~~~~~\n\nThis package was created with\n`Cookiecutter `__ and the\n`audreyr/cookiecutter-pypackage `__\nproject template.\n\n\n=======\nHistory\n=======\n\n0.0.1 (2019-10-20)\n------------------\n\n* Create initial version of idgraph.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jbn/idgraph", "keywords": "idgraph", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "idgraph", "package_url": "https://pypi.org/project/idgraph/", "platform": "", "project_url": "https://pypi.org/project/idgraph/", "project_urls": { "Homepage": "https://github.com/jbn/idgraph" }, "release_url": "https://pypi.org/project/idgraph/0.0.1/", "requires_dist": null, "requires_python": ">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "summary": "Provides IPython cell magic for dgraph queries, mutations, and alteration remote execution.", "version": "0.0.1" }, "last_serial": 6004672, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "92189e77872a2964e9af8e47def39667", "sha256": "34f1ea486d14242637bfe3ae3a05f5076529108ff727d7e08cbd6b5966903a24" }, "downloads": -1, "filename": "idgraph-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "92189e77872a2964e9af8e47def39667", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 6171, "upload_time": "2019-10-20T21:11:08", "url": "https://files.pythonhosted.org/packages/96/a4/67553dad6214e6fa31f60dca58f0de49923b1b7d0a44e9dd469c3dff229c/idgraph-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e11a19a9bb9873dafafef53da914748c", "sha256": "f9ab0f21ffc02f06a5dc5c75b633f5105532f790715dd220601a23b38ece61c2" }, "downloads": -1, "filename": "idgraph-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e11a19a9bb9873dafafef53da914748c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 11236, "upload_time": "2019-10-20T21:11:11", "url": "https://files.pythonhosted.org/packages/27/41/c596a336f60b509a808cb6cae4353c1de8b855cdf417fcdc0ab994d1a5fe/idgraph-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "92189e77872a2964e9af8e47def39667", "sha256": "34f1ea486d14242637bfe3ae3a05f5076529108ff727d7e08cbd6b5966903a24" }, "downloads": -1, "filename": "idgraph-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "92189e77872a2964e9af8e47def39667", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 6171, "upload_time": "2019-10-20T21:11:08", "url": "https://files.pythonhosted.org/packages/96/a4/67553dad6214e6fa31f60dca58f0de49923b1b7d0a44e9dd469c3dff229c/idgraph-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e11a19a9bb9873dafafef53da914748c", "sha256": "f9ab0f21ffc02f06a5dc5c75b633f5105532f790715dd220601a23b38ece61c2" }, "downloads": -1, "filename": "idgraph-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e11a19a9bb9873dafafef53da914748c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 11236, "upload_time": "2019-10-20T21:11:11", "url": "https://files.pythonhosted.org/packages/27/41/c596a336f60b509a808cb6cae4353c1de8b855cdf417fcdc0ab994d1a5fe/idgraph-0.0.1.tar.gz" } ] }