Skip to main content

Culler for JupyterHub

Project description

SwanCuller

JupyterHub service that checks and cleans user sessions. It also calls bash scripts to check/renew kerberos tokens for the users, if their sessions still exist, or remove them if not in use.

Requirements

This module requires and installs Tornado.

Installation

Install the package:

pip install swanculler

Usage

Call the binary and specify configuration parameters:

swanculler --cull_every=600

Configuration parameters:

  • url: The JupyterHub API URL (default=$JUPYTERHUB_API_URL)
  • timeout: The idle timeout (in seconds) (default=600)
  • cull_every: The interval (in seconds) for checking for idle servers to cull (default=0)
  • max_age: The maximum age (in seconds) of servers that should be culled even if they are active (default=0)
  • cull_users: Cull users in addition to servers (default=False)
  • concurrency: Limit the number of concurrent requests made to the Hub (default=10)
  • hooks_dir: Path to the directory for the krb tickets script (check_ticket.sh) (default="/srv/jupyterhub/culler)
  • disable_hooks: Whether to call the krb tickets scripts or not (default=False)

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

swanculler-1.0.6.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

swanculler-1.0.6-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file swanculler-1.0.6.tar.gz.

File metadata

  • Download URL: swanculler-1.0.6.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for swanculler-1.0.6.tar.gz
Algorithm Hash digest
SHA256 5159562ef6413006612cfa7cbf733627e84302c3ed4cdaecf29ff3f7019116f6
MD5 16ff3dde1375c9253801f69dd86ce4c0
BLAKE2b-256 6d501dc1744579874a14fc06c690c0b2fe79ad07b2c7dc8a2496419d7008a460

See more details on using hashes here.

File details

Details for the file swanculler-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: swanculler-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for swanculler-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cb574ebd1c868aacf4f3812ac78b27a2c5d3e93f631e9e4eb52637c24bff6dbc
MD5 ace48b46a4e3f894fad55664b2ea08d6
BLAKE2b-256 36ddc202b9d62b6f4d3c62c0ead9b1334d5269219cbb51103d6767a2bbfc9956

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