Metadata-Version: 2.4
Name: swanculler
Version: 1.0.10
Summary: Culler for JupyterHub
Project-URL: Homepage, https://github.com/swan-cern/jupyterhub-extensions
Project-URL: GitHub, https://github.com/swan-cern/jupyterhub-extensions
Author: SWAN Admins
License-Expression: AGPL-3.0
Keywords: CERN,JupyterHub,SWAN
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Requires-Dist: tornado
Description-Content-Type: text/markdown

# SwanCuller

JupyterHub services that checks and cleans user sessions.

## Requirements

This module requires and installs Tornado.

## Installation

Install the package:

```bash
pip install swanculler
```

## `swanblockedusersculler` service usage

`swanblockedusersculler` is a JupyterHub service that checks and delete user sessions for blocked users.

Call the binary and specify configuration parameters:
```bash
swanblockedusersculler --auth_check_interval=600 --authz_api_url ... --audience ... --auth-url ...
```

Configuration parameters:
* url: The JupyterHub API URL (default=$JUPYTERHUB_API_URL)
* auth_check_interval: The interval (in seconds) for checking for blocked users (default=14400)
* concurrency: Limit the number of concurrent requests made to the Hub (default=10)
* audience: Audience for CERN access token
* authz_api_url: URL to fetch user identity from authorization service
* auth_url: URL to fetch CERN access token
* auth_client_id: Client ID for blocked user check (default=$AUTH_CLIENT_ID)
* auth_client_secret: Client secret for blocked user check (default=$AUTH_CLIENT_SECRET)
