Skip to main content

"Activity monitoring app for Alliance Auth.

Project description

AA Inactivity

This is a player activity monitoring plugin app for Alliance Auth (AA).

release License python django pre-commit Code style: black

Content

Features

  • Automatically notify users who become inactive.
  • Automatically notify managers when users become inactive.
  • Approval process for leave of absence requests
  • Can inform managers about various events via Discord webhook
  • List of inactive users
  • Define through policies after how many days a user of absence a user is considered inactive
  • Fetching the last login dates from Member Audit to determine how long a user has been inactive

Users are notified on Alliance Auth. If you want those notifications to be forwarded as DM on Discord, please check out this app: Discord Notify.

Screenshots

A user creating a new leave of absence request:

request

A manager reviewing a leave of absence request:

pending

A manager looking through the list of currently inactive and notified users:

notified

Installation

Step 0 - Requirements

This app needs Member Audit to function. Please make sure it is installed before continuing.

Step 1 - Install the Package

Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:

pip install aa-inactivity`

Step 2 - Config

Add inactivity to your INSTALLED_APPS, and add the following task definition:

CELERYBEAT_SCHEDULE['inactivity_check_inactivity'] = {
    'task': 'inactivity.tasks.check_inactivity',
    'schedule': crontab(minute=0, hour=0),
}

Step 3 - Finalize App Installation

Run migrations:

python manage.py migrate
python manage.py collectstatic

Restart your supervisor services for Auth

Permissions

This app uses permissions to control access to features.

Name Purpose Code
general - Can access this app Enabling the app for a user. This permission should be enabled for everyone who is allowed to use the app basic_access
general - Can manage leave of absence requests Allows a user to approve/deny loa requests. manage_leave

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

aa_inactivity-1.1.1.tar.gz (83.5 kB view details)

Uploaded Source

Built Distribution

aa_inactivity-1.1.1-py3-none-any.whl (96.4 kB view details)

Uploaded Python 3

File details

Details for the file aa_inactivity-1.1.1.tar.gz.

File metadata

  • Download URL: aa_inactivity-1.1.1.tar.gz
  • Upload date:
  • Size: 83.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for aa_inactivity-1.1.1.tar.gz
Algorithm Hash digest
SHA256 44b40e117c9f16dfa5260572be6fc7c96a02616caa6a50fc36205f4fc28c844c
MD5 b5447ea7f6d5b3b6f735ee3394298c7d
BLAKE2b-256 5d3522e5696e78985038efd75fb462944f6395c5dbeee2b9bdc42c6b352e2e80

See more details on using hashes here.

File details

Details for the file aa_inactivity-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aa_inactivity-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1baafd9dafb212fa0f82b7c10182cb9fbe6815b6d9726523fb6d3f1f9d890743
MD5 ca0bb29738adbbd36ebd9c02625f7288
BLAKE2b-256 4a0a915a7bbf22c3ba5d29fc450200a40b226f5fb0f64662cc91bd6e58a2ee12

See more details on using hashes here.

Supported by

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