trame-client


Nametrame-client JSON
Version 3.5.0 PyPI version JSON
download
home_pageNone
SummaryInternal client of trame
upload_time2024-11-18 16:38:59
maintainerNone
docs_urlNone
authorKitware Inc.
requires_pythonNone
licenseMIT
keywords python interactive web application framework
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            trame-client: core client for trame
===========================================================================

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

trame-client is the generic single page application that come with `trame <https://kitware.github.io/trame/>`_.
trame-client provides the infrastructure on the client-side (browser) to connect to a trame server, synchronize
its state with the server, make method call, load dynamically components and feed a dynamic template provided by the server.

This package is not supposed to be used by itself but rather should come as a dependency of **trame**.
For any specificity, please refer to `the trame documentation <https://kitware.github.io/trame/>`_.


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

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

.. code-block:: bash

    pip install --upgrade trame-client


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-client is made available under the MIT License. For more details, see `LICENSE <https://github.com/Kitware/trame-client/blob/master/LICENSE>`_
This license has been chosen to match the one use by `Vue.js <https://github.com/vuejs/vue/blob/dev/LICENSE>`_ which is instrumental for making that library possible.


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>`_.


Runtime configuration
-----------------------------------------------------------

Trame client is the JS core of trame and can be tuned by url parameters. The table below list which parameters we process and how they affect the client.

.. list-table:: URL parameters
   :widths: 25 75
   :header-rows: 0

   * - enableSharedArrayBufferServiceWorker
     - When set this will load an extra script that will use a service worker to enable SharedArrayBuffer
   * - ui
     - Layout name selector. When a trame app define several layout with different name, you can choose which layout should be displayed
   * - remove
     - By default the URL will be cleaned from trame config parameters (sessionURL, sessionManagerURL, secret, application) but if additional parameters should be removed as well but used in the launcher config, this can be achieved by adding a `&remove=param1,param2`.

The table below leverage environment variables, mainly for the Jupyter Lab context and the iframe builder configuration.

.. list-table:: Environment variables
   :widths: 25 75
   :header-rows: 0

   * - TRAME_JUPYTER_ENDPOINT
     - Used by the trame-jupyter-extension
   * - TRAME_JUPYTER_WWW
     - Used by the trame-jupyter-extension
   * - JUPYTERHUB_SERVICE_PREFIX
     - Used to figure out server proxy path for iframe builder
   * - HOSTNAME
     - When "jupyter-hub-host" is used as iframe builder, the hostname will be lookup using that environment variable
   * - TRAME_IFRAME_BUILDER
     - Specify which iframe builder should be used. If not provided we try to do some smart detection
   * - TRAME_IPYWIDGETS_DISABLE
     - Skip any iPyWidget iframe wrapping

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

Build client side code base

.. code-block:: console

    cd vue[2,3]-app
    npm install
    npm run build            # build trame client application
    cd -

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "trame-client",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Python, Interactive, Web, Application, Framework",
    "author": "Kitware Inc.",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/0a/f6/8e5e338e9e553f3986556e59ffa2e794eab7b61e01333fc9f439550166a7/trame-client-3.5.0.tar.gz",
    "platform": null,
    "description": "trame-client: core client for trame\n===========================================================================\n\n.. image:: https://github.com/Kitware/trame-client/actions/workflows/test_and_release.yml/badge.svg\n    :target: https://github.com/Kitware/trame-client/actions/workflows/test_and_release.yml\n    :alt: Test and Release\n\ntrame-client is the generic single page application that come with `trame <https://kitware.github.io/trame/>`_.\ntrame-client provides the infrastructure on the client-side (browser) to connect to a trame server, synchronize\nits state with the server, make method call, load dynamically components and feed a dynamic template provided by the server.\n\nThis package is not supposed to be used by itself but rather should come as a dependency of **trame**.\nFor any specificity, please refer to `the trame documentation <https://kitware.github.io/trame/>`_.\n\n\nInstalling\n-----------------------------------------------------------\n\ntrame-client can be installed with `pip <https://pypi.org/project/trame-client/>`_:\n\n.. code-block:: bash\n\n    pip install --upgrade trame-client\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\nLicense\n-----------------------------------------------------------\n\ntrame-client is made available under the MIT License. For more details, see `LICENSE <https://github.com/Kitware/trame-client/blob/master/LICENSE>`_\nThis license has been chosen to match the one use by `Vue.js <https://github.com/vuejs/vue/blob/dev/LICENSE>`_ which is instrumental for making that library possible.\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\nRuntime configuration\n-----------------------------------------------------------\n\nTrame client is the JS core of trame and can be tuned by url parameters. The table below list which parameters we process and how they affect the client.\n\n.. list-table:: URL parameters\n   :widths: 25 75\n   :header-rows: 0\n\n   * - enableSharedArrayBufferServiceWorker\n     - When set this will load an extra script that will use a service worker to enable SharedArrayBuffer\n   * - ui\n     - Layout name selector. When a trame app define several layout with different name, you can choose which layout should be displayed\n   * - remove\n     - By default the URL will be cleaned from trame config parameters (sessionURL, sessionManagerURL, secret, application) but if additional parameters should be removed as well but used in the launcher config, this can be achieved by adding a `&remove=param1,param2`.\n\nThe table below leverage environment variables, mainly for the Jupyter Lab context and the iframe builder configuration.\n\n.. list-table:: Environment variables\n   :widths: 25 75\n   :header-rows: 0\n\n   * - TRAME_JUPYTER_ENDPOINT\n     - Used by the trame-jupyter-extension\n   * - TRAME_JUPYTER_WWW\n     - Used by the trame-jupyter-extension\n   * - JUPYTERHUB_SERVICE_PREFIX\n     - Used to figure out server proxy path for iframe builder\n   * - HOSTNAME\n     - When \"jupyter-hub-host\" is used as iframe builder, the hostname will be lookup using that environment variable\n   * - TRAME_IFRAME_BUILDER\n     - Specify which iframe builder should be used. If not provided we try to do some smart detection\n   * - TRAME_IPYWIDGETS_DISABLE\n     - Skip any iPyWidget iframe wrapping\n\nDevelopment\n-----------------------------------------------------------\n\nBuild client side code base\n\n.. code-block:: console\n\n    cd vue[2,3]-app\n    npm install\n    npm run build            # build trame client application\n    cd -\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Internal client of trame",
    "version": "3.5.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        " interactive",
        " web",
        " application",
        " framework"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d1529513bd49e1ff49341f502ca55a33add6248ef1f3c317b27a7c8cf6aae889",
                "md5": "541fc841036025b3115fd5b63846e902",
                "sha256": "5eff22c68859f88fe0ff7ad3d814e95f81c105e1296f292a47006571d9f9659f"
            },
            "downloads": -1,
            "filename": "trame_client-3.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "541fc841036025b3115fd5b63846e902",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 236471,
            "upload_time": "2024-11-18T16:38:58",
            "upload_time_iso_8601": "2024-11-18T16:38:58.236165Z",
            "url": "https://files.pythonhosted.org/packages/d1/52/9513bd49e1ff49341f502ca55a33add6248ef1f3c317b27a7c8cf6aae889/trame_client-3.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0af68e5e338e9e553f3986556e59ffa2e794eab7b61e01333fc9f439550166a7",
                "md5": "0b4f8d078ee56f8aa42826f44e86ba76",
                "sha256": "e472255608e00bbb3683a805b97825e819326abb01ae007c3121606355691c25"
            },
            "downloads": -1,
            "filename": "trame-client-3.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0b4f8d078ee56f8aa42826f44e86ba76",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 230965,
            "upload_time": "2024-11-18T16:38:59",
            "upload_time_iso_8601": "2024-11-18T16:38:59.798726Z",
            "url": "https://files.pythonhosted.org/packages/0a/f6/8e5e338e9e553f3986556e59ffa2e794eab7b61e01333fc9f439550166a7/trame-client-3.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-18 16:38:59",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "trame-client"
}
        
Elapsed time: 0.38810s