Skip to main content

Example plugin app for Alliance Auth.

Reason this release was yanked:

bad version

Project description

Alt Corp management app for Alliance Auth

Badge: Version Badge: License Badge: Supported Python Versions Badge: Supported Django Versions Badge: pre-commit Badge: pre-commit.ci status Badge: Code Style: black Badge: Automated Tests Badge: Code Coverage

Features

Players can request an alt corp be added to your alt alliance. Requests cannot be completed without all characters in that corp having tokens in auth.

Installing

Altcorp is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official AA installation guide for details)

pip install aa-altcorp

Configure your Auth settings (local.py) as follows:

  • Add 'altcorp' to INSTALLED_APPS
  • Add the following required lines to your settings file:
AC_ALT_ALLIANCE = 123456  # alt alliance ID
CELERYBEAT_SCHEDULE["altcorp_update"] = {
    "task": "altcorp.update_corp_requests_for_alliance(",
    "schedule": crontab(minute=0, hour=3),
    "apply_offset": True,
}

Run migrations & copy static files

python manage.py migrate
python manage.py collectstatic

Restart your supervisor services for Auth

Settings

Here is a list of available settings for this app. They can be configured by adding them to your Auth settings file (local.py).

Note that all settings are optional and the app will use the documented default settings if they are not used.

Name Description Default
AC_ALT_ALLIANCE The ID of the alt alliance. 123456
AC_ALLIANCE_IDS A list of alliance ID's. Toons in an alt corp must have their users main character as part of one of theses alliances. Blank ignores this check and will allow anyone to be in an alt corp []
AC_WEBHOOK Webhook for sending manager notifications` ``
AC_REVOKE_DAYS Days of non compliance before the app tells you to remove a corp from alt alliance 7
AC_IGNORE_CORPS A list of corps in the alt alliance to ignore. Use to ignore executor or other corps that don't require checks. []
AC_REQUIRED_SCOPE A list of states and scopes to check toons for. {"Member": ["publicData"]}

Permissions

Here are all relevant permissions:

Codename Description
general - Can access this app Basic permission required by anyone to access this app and request an alt corp.
general - Can manage alt corp requests Users with this permission can manage requests.

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_altcorp-1.1.0.tar.gz (89.9 kB view details)

Uploaded Source

Built Distribution

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

aa_altcorp-1.1.0-py3-none-any.whl (97.1 kB view details)

Uploaded Python 3

File details

Details for the file aa_altcorp-1.1.0.tar.gz.

File metadata

  • Download URL: aa_altcorp-1.1.0.tar.gz
  • Upload date:
  • Size: 89.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for aa_altcorp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 731cae5270aa9f68f5ef21e66c14817a2371dfbe1e6a6ef32572407f40fb0bc5
MD5 79ac2ad5b3b9ed3197e1df07a543eff5
BLAKE2b-256 30690aebf4045b6cd7f3122687234cd50fcdc84420fa118dd4dd3fb9e30619c8

See more details on using hashes here.

File details

Details for the file aa_altcorp-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: aa_altcorp-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 97.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for aa_altcorp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 642578c100838f3d031b82558f282f340bd39e92183a734edcb0408c317526a9
MD5 dea5b02ba4607f3ba0dcc888ea4873fe
BLAKE2b-256 869db68848ba8c0b91102b3a389f8270a827e217f12109f8041834f6e27757b8

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