{ "info": { "author": "Ali Rathore", "author_email": "ali1rathore@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "=========\nElm Magic\n=========\n\n:Author: Ali Rathore\n\nIntroduces a %%elm magic.\n\nCompile and display Elm code in IPython and Jupyter notebooks\n\n.. image:: https://raw.github.com/ali--/elm_magic/master/docs/screenshot1.png\n\n.. image:: https://img.shields.io/pypi/v/elm_magic.svg\n :target: https://pypi.python.org/pypi/elm_magic\n\n.. image:: https://img.shields.io/travis/ali--/elm_magic.svg\n :target: https://travis-ci.org/ali--/elm_magic\n\n.. image:: https://readthedocs.org/projects/elm-magic/badge/?version=latest\n :target: https://elm-magic.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/ali--/elm_magic/shield.svg\n :target: https://pyup.io/repos/github/ali--/elm_magic/\n :alt: Updates\n\nElm Magic provides IPython magic commands that execute elm-lang code\n\nSYNOPSYS\n--------\n\n.. code-block:: python\n\n In [1]: %load_ext elm_magic\n\n In [2]: %%elm\n ...: import Html exposing (text)\n ...: main =\n ...: text \"Hello World\"\n Out[2]:\n ...: Hello World\n\n In [3]: %%elm -i elm-lang/http elm-lang/mouse -w /tmp/myelmdir\n ...: \n\nThis magic will:\n (1) use working dir as /tmp/myelmdir (or a new temporary dir)\n (2) install elm-lang/http and elm-lang/mouse with elm-package install\n (3) compile the cell input with elm-make \n (4) display the cell output as html\n\nThe -r flag renders the cell contents with elm-static-html\nThe cell must look exactly like this: \n\n.. code-block:: python\n\n In [4]: %%elm -r\n ...: module Main exposing (..)\n ...: import Html exposing (text)\n ...: view = \n ...: text \"Hello World\"\n Out[4]:\n ...: Hello World\n\n\nUSAGE\n-----\n\nInstall using github::\n\n git clone git@github.com:ali--/elm_magic.git\n cd elm_magic\n pip install -e .\n..\n\n\nIf elm and nodejs are not installed, you can try::\n\n elm_magic install --target \n\nwhere is writable by the current user.\nand in the user's PATH (e.g /usr/local/ or /opt/conda)\n\nLoad the magic extension in IPython or Jupyter::\n\n %load_ext elm_magic\n\nthen start using the %%elm magic::\n\n %%elm \n ... elm-lang code ...\n\n\nCONFIGURATION\n-------------\n\nsee or set configuration parameters::\n\n %config ElmMagic\n\nFeatures\n--------\n\n* provides %%elm magic that executes elm-lang and displayes the result\n* can be used with any jupyter kernel\n* directory used by elm-make is configurable\n* provides cli for installing nodejs and elm\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\nStarted with the help of https://github.com/abingham/jupyter-elm-kernel\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n* Free software: GNU General Public License v3\n* Documentation: https://elm-magic.readthedocs.io.\n\n\n\n\n=======\nHistory\n=======\n\n0.1.0 (2017-06-11)\n------------------\n\n* First release on PyPI.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ali--/elm_magic", "keywords": "elm_magic", "license": "GNU General Public License v3", "maintainer": "", "maintainer_email": "", "name": "elm-magic", "package_url": "https://pypi.org/project/elm-magic/", "platform": "", "project_url": "https://pypi.org/project/elm-magic/", "project_urls": { "Homepage": "https://github.com/ali--/elm_magic" }, "release_url": "https://pypi.org/project/elm-magic/0.1.0/", "requires_dist": [ "Click (>=6.0)", "ipython (>=1.0)" ], "requires_python": "", "summary": "Elm Magic provides IPython magic commands that execute elm-lang code", "version": "0.1.0" }, "last_serial": 2947856, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "dba9c0056f7903d9f8d7eb8e78e90bce", "sha256": "e048a71ced6f976f1d3505009aa3425940bf10a2793277c313a737b51128c592" }, "downloads": -1, "filename": "elm_magic-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dba9c0056f7903d9f8d7eb8e78e90bce", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9486, "upload_time": "2017-06-13T19:27:04", "url": "https://files.pythonhosted.org/packages/d5/1d/cc811e666186607d6518304de0a9d8b482d3e866e3d6ff4aa5c6e8e33b1a/elm_magic-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "927f3b6479ec7c65dc73afff9d750e84", "sha256": "6c2ba3367ef3e08dff13ef25e0ce639009cf046706eb1da38fbe4b9f852899a6" }, "downloads": -1, "filename": "elm_magic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "927f3b6479ec7c65dc73afff9d750e84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 62670, "upload_time": "2017-06-13T19:27:08", "url": "https://files.pythonhosted.org/packages/cf/a7/f6b6327eefc37fb1d0637f30ae793106990b68e164c835da90ae4511480f/elm_magic-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dba9c0056f7903d9f8d7eb8e78e90bce", "sha256": "e048a71ced6f976f1d3505009aa3425940bf10a2793277c313a737b51128c592" }, "downloads": -1, "filename": "elm_magic-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dba9c0056f7903d9f8d7eb8e78e90bce", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9486, "upload_time": "2017-06-13T19:27:04", "url": "https://files.pythonhosted.org/packages/d5/1d/cc811e666186607d6518304de0a9d8b482d3e866e3d6ff4aa5c6e8e33b1a/elm_magic-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "927f3b6479ec7c65dc73afff9d750e84", "sha256": "6c2ba3367ef3e08dff13ef25e0ce639009cf046706eb1da38fbe4b9f852899a6" }, "downloads": -1, "filename": "elm_magic-0.1.0.tar.gz", "has_sig": false, "md5_digest": "927f3b6479ec7c65dc73afff9d750e84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 62670, "upload_time": "2017-06-13T19:27:08", "url": "https://files.pythonhosted.org/packages/cf/a7/f6b6327eefc37fb1d0637f30ae793106990b68e164c835da90ae4511480f/elm_magic-0.1.0.tar.gz" } ] }