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/53/a1/b83dcbd5b107b1f7126824b9f2fb832cbdc0b12c18d26e1e733b52d8b8f2/trame-server-3.2.3.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.2.3",
"project_urls": null,
"split_keywords": [
"python",
" interactive",
" web",
" application",
" framework"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b7e3e752e4afc66b924c615281265ecf233775860d133f95037af261b3dabd2b",
"md5": "60c808f02856fac83491db2607708187",
"sha256": "40a8ca401893ec91e1ee09ccf674a75ce81a4695916e71412d74612ebd045d8f"
},
"downloads": -1,
"filename": "trame_server-3.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "60c808f02856fac83491db2607708187",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 36923,
"upload_time": "2024-09-19T20:00:24",
"upload_time_iso_8601": "2024-09-19T20:00:24.217682Z",
"url": "https://files.pythonhosted.org/packages/b7/e3/e752e4afc66b924c615281265ecf233775860d133f95037af261b3dabd2b/trame_server-3.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "53a1b83dcbd5b107b1f7126824b9f2fb832cbdc0b12c18d26e1e733b52d8b8f2",
"md5": "5b14f40783127033b7987378d201e4ea",
"sha256": "4b5d38c17f6c2e8a7bd4644a1d45e2bd79df9829c4ae24e987633754748311f2"
},
"downloads": -1,
"filename": "trame-server-3.2.3.tar.gz",
"has_sig": false,
"md5_digest": "5b14f40783127033b7987378d201e4ea",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 31607,
"upload_time": "2024-09-19T20:00:25",
"upload_time_iso_8601": "2024-09-19T20:00:25.579735Z",
"url": "https://files.pythonhosted.org/packages/53/a1/b83dcbd5b107b1f7126824b9f2fb832cbdc0b12c18d26e1e733b52d8b8f2/trame-server-3.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-19 20:00:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "trame-server"
}