{ "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 - a: !!python/float 1\n b: !!python/float 2\n\n\n\n.. parsed-literal::\n\n \n\n\n\n\n.. parsed-literal::\n\n [{'a': 1.0, 'b': 2.0}]\n\n\n\n...or dotted-notation path to a loader:\n\n.. code:: python\n\n %%yaml --loader yaml.Loader\n - a: !!python/float 1\n b: !!python/float 2\n\n\n\n.. parsed-literal::\n\n \n\n\n\n\n.. parsed-literal::\n\n [{'a': 1.0, 'b': 2.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/yamlmagic", "keywords": "IPython yaml", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "yamlmagic", "package_url": "https://pypi.org/project/yamlmagic/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/yamlmagic/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/bollwyvl/yamlmagic" }, "release_url": "https://pypi.org/project/yamlmagic/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "a YAML magic for IPython notebooks", "version": "0.2.0" }, "last_serial": 1678949, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "aeb208908ce31900d69447041e60964c", "sha256": "f8815ed6fde085c6346cb9a25bfe900bdeee0b9a9426d573b4752d605684fdfc" }, "downloads": -1, "filename": "yamlmagic-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "aeb208908ce31900d69447041e60964c", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 4633, "upload_time": "2015-04-20T03:06:54", "url": "https://files.pythonhosted.org/packages/2f/ec/1b05676423e7b622eac172002449e6c34e44fa7595d68e6a2b74aa4d241c/yamlmagic-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6eb853fa952afc95c4f8184601397169", "sha256": "297cc79a97a58cd1f27308fb3a294ac5d907c83f6302ebe08f9f6bdb4a95fee0" }, "downloads": -1, "filename": "yamlmagic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6eb853fa952afc95c4f8184601397169", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5051, "upload_time": "2015-04-20T03:06:45", "url": "https://files.pythonhosted.org/packages/c4/4c/7fa42d2496e76b87a2f2be5dc4a312ff3c54edd0b00acee8648ee2ccc747/yamlmagic-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "159290bdaab6734555489dd9f397ad21", "sha256": "a2d405f613b3bdd8004355cb242092a840f2a24a26db1cdbcc867e2004a80d03" }, "downloads": -1, "filename": "yamlmagic-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "159290bdaab6734555489dd9f397ad21", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 5501, "upload_time": "2015-08-15T22:27:26", "url": "https://files.pythonhosted.org/packages/bd/db/d677d565b9048b9003ae6aac3ec34cce9dcc0e9c13bd68289c7c8dde3959/yamlmagic-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ae27c95eaa433014e58155bb5ad0af92", "sha256": "c9a64977dd3f379530127a74a35dfc5b1a5ac82efb9a36d87a182d0c650a7205" }, "downloads": -1, "filename": "yamlmagic-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ae27c95eaa433014e58155bb5ad0af92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6968, "upload_time": "2015-08-15T22:27:09", "url": "https://files.pythonhosted.org/packages/19/79/6f0f00b6ff87bb9c2a1227adef728293770c8161e8141101b8faf8b4e344/yamlmagic-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "159290bdaab6734555489dd9f397ad21", "sha256": "a2d405f613b3bdd8004355cb242092a840f2a24a26db1cdbcc867e2004a80d03" }, "downloads": -1, "filename": "yamlmagic-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "159290bdaab6734555489dd9f397ad21", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 5501, "upload_time": "2015-08-15T22:27:26", "url": "https://files.pythonhosted.org/packages/bd/db/d677d565b9048b9003ae6aac3ec34cce9dcc0e9c13bd68289c7c8dde3959/yamlmagic-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ae27c95eaa433014e58155bb5ad0af92", "sha256": "c9a64977dd3f379530127a74a35dfc5b1a5ac82efb9a36d87a182d0c650a7205" }, "downloads": -1, "filename": "yamlmagic-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ae27c95eaa433014e58155bb5ad0af92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6968, "upload_time": "2015-08-15T22:27:09", "url": "https://files.pythonhosted.org/packages/19/79/6f0f00b6ff87bb9c2a1227adef728293770c8161e8141101b8faf8b4e344/yamlmagic-0.2.0.tar.gz" } ] }