{ "info": { "author": "Nicholas Bollweg", "author_email": "nick.bollweg@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: IPython", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "yamlmagic\n=========\n\n an `IPython `__\n `magic `__\n for capturing data in `YAML `__ into a running\n IPython kernel.\n\n|Build Status| |pypi|\n\n.. |Build Status| image:: https://travis-ci.org/bollwyvl/yamlmagic.svg?branch=master\n :target: https://travis-ci.org/bollwyvl/yamlmagic\n.. |pypi| image:: https://pypip.in/version/yamlmagic/badge.svg?style=flat\n\nInstall\n-------\n\nFrom the command line (or with ``!`` in a notebook cell):\n\n.. code:: bash\n\n pip install yamlmagic\n\nEnable\n------\n\nAd-hoc\n~~~~~~\n\nIn the notebook, you can use the ``%load_ext`` or ``%reload_ext`` line\nmagic.\n\n.. code:: python\n\n %reload_ext yamlmagic\n\nConfiguration\n~~~~~~~~~~~~~\n\nIn your profile's ``ipython_kernel_config.py``, you can add the\nfollowing line to automatically load ``yamlmagic`` into all your running\nkernels:\n\n.. code:: python\n\n c.InteractiveShellApp.extensions = ['yaml_magic']\n\nUse\n---\n\nThe ``%%yaml`` cell magic will either act as simple parser:\n\n.. code:: python\n\n %%yaml\n a_toplevel_key: 1\n\n\n\n.. parsed-literal::\n\n \n\n\n\n\n.. parsed-literal::\n\n {'a_toplevel_key': 1}\n\n\n\nwhich can be accessed by the special last result variable ``_``:\n\n.. code:: python\n\n _\n\n\n\n\n.. parsed-literal::\n\n {'a_toplevel_key': 1}\n\n\n\nOr will update a named variable with the parsed document:\n\n.. code:: python\n\n %%yaml x\n - a: 1\n b: 2\n\n\n\n.. parsed-literal::\n\n \n\n\n.. code:: python\n\n x\n\n\n\n\n.. parsed-literal::\n\n [{'a': 1, 'b': 2}]\n\n\n\nBy default, ``yaml.SafeLoader`` will be used, which won't allow the\n`powerful but\ndangerous `__\n(and unportable) ```!python/``\ntags `__.\nIf you'd like to use them, provide the ``-l`` (or ``--loader``) argument\nwith a ``BaseLoader`` subclass available via a local variable...\n\n.. code:: python\n\n from yaml import Loader\n class FooLoader(Loader):\n # some special things you have built\n pass\n\n.. code:: python\n\n %%yaml --loader FooLoader\n !!python/float 0\n\n\n\n.. parsed-literal::\n\n \n\n\n\n\n.. parsed-literal::\n\n 0.0\n\n\n\n...or dotted-notation path to a loader:\n\n.. code:: python\n\n %%yaml --loader yaml.Loader\n !!python/float 0\n\n\n\n.. parsed-literal::\n\n \n\n\n\n\n.. parsed-literal::\n\n 0.0\n\n\n\nContribute\n----------\n\n`Issues `__ and `pull\nrequests `__ welcome!\n\nLicense\n-------\n\n``yamlmagic`` is released as free software under the `BSD 3-Clause\nlicense <./LICENSE>`__.\n\nThank\n-----\n\n- [@tonyfast](http://robclewley.github.io) for asking for this\n- [@robclewley](http://robclewley.github.io) for documentation-shaming\n a gist into a module", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/bollwyvl/jademagic", "keywords": "IPython Jade Pug Jupyter", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "jademagic", "package_url": "https://pypi.org/project/jademagic/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jademagic/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/bollwyvl/jademagic" }, "release_url": "https://pypi.org/project/jademagic/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "a Jade ne Pug magic for IPython notebooks", "version": "0.1.0" }, "last_serial": 1954746, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ea17cefa70123ae3722b27ed08f63b25", "sha256": "e0728b23201011d777aa091eb9df4ccb6b2e8dc9ce3c3b38181022f2dfbd834e" }, "downloads": -1, "filename": "jademagic-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ea17cefa70123ae3722b27ed08f63b25", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 5475, "upload_time": "2016-02-13T19:01:15", "url": "https://files.pythonhosted.org/packages/47/4f/f94cf542eeaba7ee2e9eaf1babd52bf3041f442f3782ec1b9ebdd7220d16/jademagic-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6697eb9ac28797541739e99ade0b15ca", "sha256": "b7cd647e83fd7ad45620f26b806d24c85af86216c0c540a3cdff38786971ce9f" }, "downloads": -1, "filename": "jademagic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6697eb9ac28797541739e99ade0b15ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6026, "upload_time": "2016-02-13T19:01:09", "url": "https://files.pythonhosted.org/packages/73/43/eb7178727a2caca097f0a552b77538ff4caf0c46504ca8d41a698c13f053/jademagic-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea17cefa70123ae3722b27ed08f63b25", "sha256": "e0728b23201011d777aa091eb9df4ccb6b2e8dc9ce3c3b38181022f2dfbd834e" }, "downloads": -1, "filename": "jademagic-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ea17cefa70123ae3722b27ed08f63b25", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 5475, "upload_time": "2016-02-13T19:01:15", "url": "https://files.pythonhosted.org/packages/47/4f/f94cf542eeaba7ee2e9eaf1babd52bf3041f442f3782ec1b9ebdd7220d16/jademagic-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6697eb9ac28797541739e99ade0b15ca", "sha256": "b7cd647e83fd7ad45620f26b806d24c85af86216c0c540a3cdff38786971ce9f" }, "downloads": -1, "filename": "jademagic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6697eb9ac28797541739e99ade0b15ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6026, "upload_time": "2016-02-13T19:01:09", "url": "https://files.pythonhosted.org/packages/73/43/eb7178727a2caca097f0a552b77538ff4caf0c46504ca8d41a698c13f053/jademagic-0.1.0.tar.gz" } ] }