Skip to main content

JupyterHub Batch Spawner for GLiCID

Project description

JupyterHub Batch Spawner for GLiCID

Gitlab CI Test coverage

Spawner form

JupyterHub spawner config

In jupyterhub_config.py, add:

c.JupyterHub.spawner_class = "glicid-spawner"

Custom parameters can be added with c.GlicidSpawner.req_<my_parameter> = .... The complete list of configurable parameters are available in spawner.py.

JupyterHub authenticator config

The spawner also contains a custom Authentik authenticator based on Jupyter generic OAuth authenticator. This configuration is optional but can be setup like this:

c.JupyterHub.authenticator_class = "authentik"

c.AuthentikAuthenticator.base_url = "https://authentik.example.org"
c.AuthentikAuthenticator.client_id = "abcdef"
c.AuthentikAuthenticator.client_secret = "xxxxxx"
c.AuthentikAuthenticator.callback_base_url = "https://jupyter.example.org"
c.AuthentikAuthenticator.allowed_groups = { "jupyter-users" }
c.AuthentikAuthenticator.admin_groups = { "jupyter-admins" }

Contribution

This package is managed by Poetry:

git clone https://gitlab.univ-nantes.fr/glicid/jupyter/spawner glicid-spawner
cd glicid-spawner
poetry install
poetry run pre-commit install

To test the spawner:

poetry run pytest

To lint and format the source code:

poetry run ruff check . --fix
poetry run ruff format

To render the form template (with live reload):

poetry run python -m render [--single-cluster]

To activate the virtual environement globally:

source .venv/bin/activate

Bump to a new version:

poetry run tbump Major.Patch

External resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glicid_spawner-1.5.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glicid_spawner-1.5-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file glicid_spawner-1.5.tar.gz.

File metadata

  • Download URL: glicid_spawner-1.5.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.10.20 Linux/6.1.0-44-amd64

File hashes

Hashes for glicid_spawner-1.5.tar.gz
Algorithm Hash digest
SHA256 99b2a2599439485ce0efda203c5e6027234f63fbfd082a3327faf66fde11edd5
MD5 e9b1b912c860337ce5e1c380e22b5bed
BLAKE2b-256 faaa7be7749d4cb6e10795e8c298df487a4c18a605d66bfadb856cf096b9292e

See more details on using hashes here.

File details

Details for the file glicid_spawner-1.5-py3-none-any.whl.

File metadata

  • Download URL: glicid_spawner-1.5-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.10.20 Linux/6.1.0-44-amd64

File hashes

Hashes for glicid_spawner-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a134fe97f63c6525c8b5f05b617ce615bafbb43fadc1856e739c5a19414b90f3
MD5 770b8cd213f5e058ea25e26bce47d647
BLAKE2b-256 ce84b06a8a4162336e163560d2a908993c68397367b6e26ed87ede34f1b1cf99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page