trame-markdown


Nametrame-markdown JSON
Version 3.0.1 PyPI version JSON
download
home_page
SummaryMarkdown widget for trame
upload_time2023-11-09 17:21:28
maintainer
docs_urlNone
authorKitware Inc.
requires_python
licenseMIT
keywords python interactive web application framework
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Markdown renderer for trame
===========================================================================

.. image:: https://github.com/Kitware/trame-markdown/actions/workflows/test_and_release.yml/badge.svg
    :target: https://github.com/Kitware/trame-markdown/actions/workflows/test_and_release.yml
    :alt: Test and Release

trame-markdown extend trame **widgets** with a component that is capable of rendering Markdown syntax.
Markdown integration into trame allow user to display markdown content easily. If you want are wondering what Markdown is, you can look at `some online guides <https://www.markdownguide.org/basic-syntax/>`_.


Installing
-----------------------------------------------------------

trame-markdown can be installed with `pip <https://pypi.org/project/trame-markdown/>`_:

.. code-block:: bash

    pip install --upgrade trame-markdown


Usage
-----------------------------------------------------------

The `Trame Tutorial <https://kitware.github.io/trame/docs/tutorial.html>`_ is the place to go to learn how to use the library and start building your own application.

The `API Reference <https://trame.readthedocs.io/en/latest/index.html>`_ documentation provides API-level documentation.


License
-----------------------------------------------------------

trame-markdown is made available under the MIT License. For more details, see `LICENSE <https://github.com/Kitware/trame-markdown/blob/master/LICENSE>`_
This license has been chosen to match the one use by `Markdown It Vue <https://github.com/ravenq/markdown-it-vue/blob/master/LICENSE>`_ which is used under the cover.


Community
-----------------------------------------------------------

`Trame <https://kitware.github.io/trame/>`_ | `Discussions <https://github.com/Kitware/trame/discussions>`_ | `Issues <https://github.com/Kitware/trame/issues>`_ | `RoadMap <https://github.com/Kitware/trame/projects/1>`_ | `Contact Us <https://www.kitware.com/contact-us/>`_

.. image:: https://zenodo.org/badge/410108340.svg
    :target: https://zenodo.org/badge/latestdoi/410108340


Enjoying trame?
-----------------------------------------------------------

Share your experience `with a testimonial <https://github.com/Kitware/trame/issues/18>`_ or `with a brand approval <https://github.com/Kitware/trame/issues/19>`_.


Code sample
-----------------------------------------------------------

.. code-block:: python

    from trame.widgets import markdown

    widget = markdown.Markdown("""
    > #### The quarterly results look great!
    >
    > - Revenue was off the chart.
    > - Profits were higher than ever.
    >
    >  *Everything* is going according to **plan**.
    """)
    widget.update(md_file.read())

But if you rather be in control of your variable, you can use the property `content`.

.. code-block:: python

    from trame.widgets import markdown

    widget = markdown.Markdown(content=("var_name", "**hello**"))


Development
-----------------------------------------------------------

To update client side, just update the version and run the following commands.

.. code-block:: bash

    mkdir -p trame_markdown/module/serve
    cd trame_markdown/module/serve
    curl -L https://registry.npmjs.org/markdown-it-vue/-/markdown-it-vue-1.1.7.tgz | tar --strip-components=1 -xzv

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "trame-markdown",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Python,Interactive,Web,Application,Framework",
    "author": "Kitware Inc.",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/73/86/cbc3ab78026b7f0950f3482e7af981938c752a784968d26f4c0f15481e86/trame-markdown-3.0.1.tar.gz",
    "platform": null,
    "description": "Markdown renderer for trame\n===========================================================================\n\n.. image:: https://github.com/Kitware/trame-markdown/actions/workflows/test_and_release.yml/badge.svg\n    :target: https://github.com/Kitware/trame-markdown/actions/workflows/test_and_release.yml\n    :alt: Test and Release\n\ntrame-markdown extend trame **widgets** with a component that is capable of rendering Markdown syntax.\nMarkdown integration into trame allow user to display markdown content easily. If you want are wondering what Markdown is, you can look at `some online guides <https://www.markdownguide.org/basic-syntax/>`_.\n\n\nInstalling\n-----------------------------------------------------------\n\ntrame-markdown can be installed with `pip <https://pypi.org/project/trame-markdown/>`_:\n\n.. code-block:: bash\n\n    pip install --upgrade trame-markdown\n\n\nUsage\n-----------------------------------------------------------\n\nThe `Trame Tutorial <https://kitware.github.io/trame/docs/tutorial.html>`_ is the place to go to learn how to use the library and start building your own application.\n\nThe `API Reference <https://trame.readthedocs.io/en/latest/index.html>`_ documentation provides API-level documentation.\n\n\nLicense\n-----------------------------------------------------------\n\ntrame-markdown is made available under the MIT License. For more details, see `LICENSE <https://github.com/Kitware/trame-markdown/blob/master/LICENSE>`_\nThis license has been chosen to match the one use by `Markdown It Vue <https://github.com/ravenq/markdown-it-vue/blob/master/LICENSE>`_ which is used under the cover.\n\n\nCommunity\n-----------------------------------------------------------\n\n`Trame <https://kitware.github.io/trame/>`_ | `Discussions <https://github.com/Kitware/trame/discussions>`_ | `Issues <https://github.com/Kitware/trame/issues>`_ | `RoadMap <https://github.com/Kitware/trame/projects/1>`_ | `Contact Us <https://www.kitware.com/contact-us/>`_\n\n.. image:: https://zenodo.org/badge/410108340.svg\n    :target: https://zenodo.org/badge/latestdoi/410108340\n\n\nEnjoying trame?\n-----------------------------------------------------------\n\nShare your experience `with a testimonial <https://github.com/Kitware/trame/issues/18>`_ or `with a brand approval <https://github.com/Kitware/trame/issues/19>`_.\n\n\nCode sample\n-----------------------------------------------------------\n\n.. code-block:: python\n\n    from trame.widgets import markdown\n\n    widget = markdown.Markdown(\"\"\"\n    > #### The quarterly results look great!\n    >\n    > - Revenue was off the chart.\n    > - Profits were higher than ever.\n    >\n    >  *Everything* is going according to **plan**.\n    \"\"\")\n    widget.update(md_file.read())\n\nBut if you rather be in control of your variable, you can use the property `content`.\n\n.. code-block:: python\n\n    from trame.widgets import markdown\n\n    widget = markdown.Markdown(content=(\"var_name\", \"**hello**\"))\n\n\nDevelopment\n-----------------------------------------------------------\n\nTo update client side, just update the version and run the following commands.\n\n.. code-block:: bash\n\n    mkdir -p trame_markdown/module/serve\n    cd trame_markdown/module/serve\n    curl -L https://registry.npmjs.org/markdown-it-vue/-/markdown-it-vue-1.1.7.tgz | tar --strip-components=1 -xzv\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Markdown widget for trame",
    "version": "3.0.1",
    "project_urls": null,
    "split_keywords": [
        "python",
        "interactive",
        "web",
        "application",
        "framework"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90e8fee75f90c18bb8aed9539a74d43d40330f1e514a0412372a1c14fce474f1",
                "md5": "f61fd58803e76e2cf4ffb004fc5b2aac",
                "sha256": "57b7101961ad3c3fa9a470c7e94c00da7b1472d4cb8f99d52e391e74a035e353"
            },
            "downloads": -1,
            "filename": "trame_markdown-3.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f61fd58803e76e2cf4ffb004fc5b2aac",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2593130,
            "upload_time": "2023-11-09T17:21:26",
            "upload_time_iso_8601": "2023-11-09T17:21:26.558799Z",
            "url": "https://files.pythonhosted.org/packages/90/e8/fee75f90c18bb8aed9539a74d43d40330f1e514a0412372a1c14fce474f1/trame_markdown-3.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7386cbc3ab78026b7f0950f3482e7af981938c752a784968d26f4c0f15481e86",
                "md5": "61ac663321802336989cc694d11d7da2",
                "sha256": "b93d06ba6fa508dcd6982aee2730b6f50b35e92dbbf7b44734eede32e9dfd340"
            },
            "downloads": -1,
            "filename": "trame-markdown-3.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "61ac663321802336989cc694d11d7da2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2461719,
            "upload_time": "2023-11-09T17:21:28",
            "upload_time_iso_8601": "2023-11-09T17:21:28.494604Z",
            "url": "https://files.pythonhosted.org/packages/73/86/cbc3ab78026b7f0950f3482e7af981938c752a784968d26f4c0f15481e86/trame-markdown-3.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-09 17:21:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "trame-markdown"
}
        
Elapsed time: 0.16135s