jupyterhub-forwardbasespawner


Namejupyterhub-forwardbasespawner JSON
Version 1.0.7 PyPI version JSON
download
home_pageNone
SummaryJupyterHub BaseSpawner class. Enables remote single-user server.
upload_time2024-11-05 13:58:23
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseBSD 3-Clause License Copyright (c) 2023, Forschungszentrum Juelich GmbH Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords jupyterhub spawner
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Documentation Status](https://readthedocs.org/projects/jupyterhub-forwardbasespawner/badge/?version=latest)](https://jupyterhub-forwardbasespawner.readthedocs.io/en/latest/?badge=latest)

# ForwardBaseSpawner

The ForwardBaseSpawner is a base class, which can be used by any Spawner that creats the singleuser notebook server on a remote system. The ForwardBaseSpawner itself cannot start anything. The actual logic of starting / stopping must be implemented in a subclass.
  
## Overview  
  
The JupyterHub ForwardBaseSpawner offers a variety of useful functions, to enable and manage the communication between JupyterHub and a singleuser notebook servers, which runs on a remote machine. It covers the following functionalities:

- Manage ssh port forwarding process from JupyterHub to singleuser notebook server
- Manage ssh port forwarding process from singleuser notebook server to JupyterHub
- Manage [Kubernetes Service](https://kubernetes.io/docs/concepts/services-networking/service/) Resource to make singleuser notebook server reachable for JupyterHub
- Adds cancel function. Allows the user to cancel an ongoing spawn process
- Start process of remote singleuser notebook servers may send their current progress to SpawnEventsAPIHandler, which shows it to the user
- SetupTunnelAPIHandler allows to define the ssh jump node between JupyterHub and singleuser notebook server during the spawn process
- ListServersAPIHandler returns all running UserID-servername combinations. Gives remote systems the chance to compare their running servers with the JupyterHub ones
- SSHNodeRestartedAPIHandler enables a recreation of all port forwarding process to a specific jump node. Required when a jump node was restarted
  
For more information and the usage have a look at the [JupyterHub OutpostSpawner](https://jupyterhub-outpostspawner.readthedocs.io) documentation. It's a subclass of the ForwardBaseSpawner and enables a central JupyterHub to start singleuser notebook-server on multiple remote systems.  
You can find a few examples and configurations over there.

## Requirements  
  
At least one JupyterHub running on a Kubernetes Cluster (recommended is the use of [Zero2JupyterHub](https://z2jh.jupyter.org/en/stable/)). 
A subclass of the ForwardBaseSpawner which implements the actual start/stop logic for singleuser notebook servers.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "jupyterhub-forwardbasespawner",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "jupyterhub, spawner",
    "author": null,
    "author_email": "Tim Kreuzer <t.kreuzer@fz-juelich.de>, Alice Grosch <a.grosch@fz-juelich.de>",
    "download_url": "https://files.pythonhosted.org/packages/1e/84/52df6d4f9e344d885cc7690c74d84a6a1f14d3793dff5eb491ae76a2c5dd/jupyterhub_forwardbasespawner-1.0.7.tar.gz",
    "platform": null,
    "description": "[![Documentation Status](https://readthedocs.org/projects/jupyterhub-forwardbasespawner/badge/?version=latest)](https://jupyterhub-forwardbasespawner.readthedocs.io/en/latest/?badge=latest)\n\n# ForwardBaseSpawner\n\nThe ForwardBaseSpawner is a base class, which can be used by any Spawner that creats the singleuser notebook server on a remote system. The ForwardBaseSpawner itself cannot start anything. The actual logic of starting / stopping must be implemented in a subclass.\n  \n## Overview  \n  \nThe JupyterHub ForwardBaseSpawner offers a variety of useful functions, to enable and manage the communication between JupyterHub and a singleuser notebook servers, which runs on a remote machine. It covers the following functionalities:\n\n- Manage ssh port forwarding process from JupyterHub to singleuser notebook server\n- Manage ssh port forwarding process from singleuser notebook server to JupyterHub\n- Manage [Kubernetes Service](https://kubernetes.io/docs/concepts/services-networking/service/) Resource to make singleuser notebook server reachable for JupyterHub\n- Adds cancel function. Allows the user to cancel an ongoing spawn process\n- Start process of remote singleuser notebook servers may send their current progress to SpawnEventsAPIHandler, which shows it to the user\n- SetupTunnelAPIHandler allows to define the ssh jump node between JupyterHub and singleuser notebook server during the spawn process\n- ListServersAPIHandler returns all running UserID-servername combinations. Gives remote systems the chance to compare their running servers with the JupyterHub ones\n- SSHNodeRestartedAPIHandler enables a recreation of all port forwarding process to a specific jump node. Required when a jump node was restarted\n  \nFor more information and the usage have a look at the [JupyterHub OutpostSpawner](https://jupyterhub-outpostspawner.readthedocs.io) documentation. It's a subclass of the ForwardBaseSpawner and enables a central JupyterHub to start singleuser notebook-server on multiple remote systems.  \nYou can find a few examples and configurations over there.\n\n## Requirements  \n  \nAt least one JupyterHub running on a Kubernetes Cluster (recommended is the use of [Zero2JupyterHub](https://z2jh.jupyter.org/en/stable/)). \nA subclass of the ForwardBaseSpawner which implements the actual start/stop logic for singleuser notebook servers.\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2023, Forschungszentrum Juelich GmbH  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "JupyterHub BaseSpawner class. Enables remote single-user server.",
    "version": "1.0.7",
    "project_urls": null,
    "split_keywords": [
        "jupyterhub",
        " spawner"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a9c545b8e55370407d1fa10661cb4a4def7e4091683a048a1c9147e518e7524b",
                "md5": "34cff00585d5cc584e84f2a705e93e07",
                "sha256": "9c70d1b06ae9ca3d11da7c322486af1c32583f5567fead4f646c05d4d53233be"
            },
            "downloads": -1,
            "filename": "jupyterhub_forwardbasespawner-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "34cff00585d5cc584e84f2a705e93e07",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 22322,
            "upload_time": "2024-11-05T13:58:22",
            "upload_time_iso_8601": "2024-11-05T13:58:22.643601Z",
            "url": "https://files.pythonhosted.org/packages/a9/c5/45b8e55370407d1fa10661cb4a4def7e4091683a048a1c9147e518e7524b/jupyterhub_forwardbasespawner-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e8452df6d4f9e344d885cc7690c74d84a6a1f14d3793dff5eb491ae76a2c5dd",
                "md5": "98b3f0ff089ac76d8a94b656a83d5140",
                "sha256": "06ae6bf3c4e6197e9ec959fdb1776898e977ef08acf65a3456c79a267b31a2e2"
            },
            "downloads": -1,
            "filename": "jupyterhub_forwardbasespawner-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "98b3f0ff089ac76d8a94b656a83d5140",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 57658,
            "upload_time": "2024-11-05T13:58:23",
            "upload_time_iso_8601": "2024-11-05T13:58:23.996026Z",
            "url": "https://files.pythonhosted.org/packages/1e/84/52df6d4f9e344d885cc7690c74d84a6a1f14d3793dff5eb491ae76a2c5dd/jupyterhub_forwardbasespawner-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-05 13:58:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "jupyterhub-forwardbasespawner"
}
        
Elapsed time: 0.33572s