trame-server


Nametrame-server JSON
Version 3.0.0 PyPI version JSON
download
home_pageNone
SummaryInternal server side implementation of trame
upload_time2024-04-10 22:56:46
maintainerNone
docs_urlNone
authorKitware Inc.
requires_pythonNone
licenseApache License 2.0
keywords python interactive web application framework
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            trame-server: server implementation of trame
===========================================================================

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

trame-server is the server implementation of `trame <https://kitware.github.io/trame/>`_.
This Python library provide the server implementation of the shared state and controller along with the definition of the web server.
The web server aims to be flexible so it can be use within a Jupyter environment or as a standalone desktop application.

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-server can be installed with `pip <https://pypi.org/project/trame-server/>`_:

.. code-block:: bash

    pip install --upgrade trame-server


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.


**Environments variables**

* **TRAME_LOG_NETWORK**     : Path to log file for capturing network exchange. (default: None)
* **TRAME_WS_MAX_MSG_SIZE** : Maximum size in bytes of any ws message. (default: 10MB)
* **TRAME_WS_HEART_BEAT**   : Time in second before assuming the server is non-responsive. (default: 30s)
* **TRAME_DESKTOP_DEBUG**   : If defined it will allow user to inspect the web content in desktop mode
* **TRAME_SERVER**          : If set to true, this will prevent browser from opening by default


**Life cycle callbacks**

Life cycle events are directly managed on the application controller
and are prefixed with `on_*`.

* **on_server_start**     : Executed at server.start() call while passing the server as argument.
* **on_server_bind**      : WSLinkServer is getting bound to trame so you can attach your own routes. Its instance will be passed as argument to callback.
* **on_server_ready**     : All protocols initialized and available for client to connect
* **on_client_connected** : Connection established to server
* **on_client_exited**    : Linked to browser "beforeunload" event
* **on_server_exited**    : Trame is exiting its event loop

* **on_server_reload**    : If callback registered it can be use to hot_reload methods like the UI.


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

trame-server is made available under the Apache License, Version 2.0. For more details, see `LICENSE <https://github.com/Kitware/trame-server/blob/master/LICENSE>`_


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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "trame-server",
    "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/44/8e/2f73d4a58f7d4b0ae408557f71d943667ac61860107cf4f40d82b430ff82/trame-server-3.0.0.tar.gz",
    "platform": null,
    "description": "trame-server: server implementation of trame\n===========================================================================\n\n.. image:: https://github.com/Kitware/trame-server/actions/workflows/test_and_release.yml/badge.svg\n    :target: https://github.com/Kitware/trame-server/actions/workflows/test_and_release.yml\n    :alt: Test and Release\n\ntrame-server is the server implementation of `trame <https://kitware.github.io/trame/>`_.\nThis Python library provide the server implementation of the shared state and controller along with the definition of the web server.\nThe web server aims to be flexible so it can be use within a Jupyter environment or as a standalone desktop application.\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-server can be installed with `pip <https://pypi.org/project/trame-server/>`_:\n\n.. code-block:: bash\n\n    pip install --upgrade trame-server\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\n**Environments variables**\n\n* **TRAME_LOG_NETWORK**     : Path to log file for capturing network exchange. (default: None)\n* **TRAME_WS_MAX_MSG_SIZE** : Maximum size in bytes of any ws message. (default: 10MB)\n* **TRAME_WS_HEART_BEAT**   : Time in second before assuming the server is non-responsive. (default: 30s)\n* **TRAME_DESKTOP_DEBUG**   : If defined it will allow user to inspect the web content in desktop mode\n* **TRAME_SERVER**          : If set to true, this will prevent browser from opening by default\n\n\n**Life cycle callbacks**\n\nLife cycle events are directly managed on the application controller\nand are prefixed with `on_*`.\n\n* **on_server_start**     : Executed at server.start() call while passing the server as argument.\n* **on_server_bind**      : WSLinkServer is getting bound to trame so you can attach your own routes. Its instance will be passed as argument to callback.\n* **on_server_ready**     : All protocols initialized and available for client to connect\n* **on_client_connected** : Connection established to server\n* **on_client_exited**    : Linked to browser \"beforeunload\" event\n* **on_server_exited**    : Trame is exiting its event loop\n\n* **on_server_reload**    : If callback registered it can be use to hot_reload methods like the UI.\n\n\nLicense\n-----------------------------------------------------------\n\ntrame-server is made available under the Apache License, Version 2.0. For more details, see `LICENSE <https://github.com/Kitware/trame-server/blob/master/LICENSE>`_\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",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Internal server side implementation of trame",
    "version": "3.0.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        " interactive",
        " web",
        " application",
        " framework"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4c76d1461c748e9f3fd7b9115958b3291409ef498b5fbf05ae62f8c91ca6c93",
                "md5": "f27f1b65b791e7432c2a8327532da5fd",
                "sha256": "01c45a87aebf4c1c9c023d4ef84aef43f50d2c45453970a0419a39e6b4d03072"
            },
            "downloads": -1,
            "filename": "trame_server-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f27f1b65b791e7432c2a8327532da5fd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 34846,
            "upload_time": "2024-04-10T22:56:44",
            "upload_time_iso_8601": "2024-04-10T22:56:44.964556Z",
            "url": "https://files.pythonhosted.org/packages/f4/c7/6d1461c748e9f3fd7b9115958b3291409ef498b5fbf05ae62f8c91ca6c93/trame_server-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "448e2f73d4a58f7d4b0ae408557f71d943667ac61860107cf4f40d82b430ff82",
                "md5": "f0bc5ec4922a0cbe7e211b7c05f36f23",
                "sha256": "1c3c731a4466dfab305c0fed4ef6ceb90bbaf7c60c601e7303b320b9337a852e"
            },
            "downloads": -1,
            "filename": "trame-server-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f0bc5ec4922a0cbe7e211b7c05f36f23",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 30091,
            "upload_time": "2024-04-10T22:56:46",
            "upload_time_iso_8601": "2024-04-10T22:56:46.710280Z",
            "url": "https://files.pythonhosted.org/packages/44/8e/2f73d4a58f7d4b0ae408557f71d943667ac61860107cf4f40d82b430ff82/trame-server-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-10 22:56:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "trame-server"
}
        
Elapsed time: 0.24768s