Skip to main content

AA Doctrine Hub

Doctrines, fittings and member compliance for Alliance Auth. A modern successor to the community Fittings app.

Features

  • Doctrines & Fittings Catalogue: Doctrines with fittings, roles (DPS, logistics, tackle, ...), required or optional flags, and target counts; fittings keep full version history with author, timestamp, change note, and version diffs.
  • EFT & Multibuy: EFT import and export, slot validation against hull limits, and multibuy text for single fits or full doctrines.
  • Doctrine Builder & Visibility Controls: Create/edit local doctrines, categories, and fittings directly in the frontend Doctrine Builder tab, including per-category and per-fitting Visible / Hidden toggles (is_available) for Doctrine Hub views and category filter dropdowns, plus Auth-group restrictions (visible_to_groups).
  • External Auth Import: Scrape doctrines, fittings, and categories from another Alliance Auth instance via Settings → Import from External Auth using a one-time sessionid cookie (never stored).
  • Eligibility & Compliance (ESI): Own 4-hourly ESI sync (CharacterSkillSnapshot, CharacterSkill, CharacterImplant, CharacterAsset — no external plugins), per-character/account traffic lights, EVE skill plan export, coverage overview, and recursive AND/OR/AT_LEAST compliance rules with automatic or approval-based Auth group grants.
  • Hangars & SRP: Check fitted doctrine ships in member hangars, push doctrine ship shortages to aa-industry, and compare SRP killmails against doctrine fits.
  • Modern SPA UI: React 19 + Tailwind CSS v4 + shadcn/ui single-page app with installed version badge, following the active Alliance Auth light/dark theme.

Installation

  1. Install the package in your Auth virtual environment:

    pip install aa-doctrinehub
    
  2. Add "aa_doctrinehub" to INSTALLED_APPS in local.py. Also add "eveuniverse" if it isn't already installed for another app — Doctrine Hub uses it when present to resolve ship/item names to type ids, icons and skill/slot data, and falls back to public ESI calls when it is not.

  3. Add the periodic tasks to local.py:

    CELERYBEAT_SCHEDULE["aa_doctrinehub_sync_character_snapshots"] = {
        "task": "aa_doctrinehub.tasks.sync_character_snapshots",
        "schedule": crontab(minute="0", hour="*/4"),
    }
    CELERYBEAT_SCHEDULE["aa_doctrinehub_evaluate_compliance_rules"] = {
        "task": "aa_doctrinehub.tasks.evaluate_compliance_rules",
        "schedule": crontab(minute="15", hour="*/4"),
    }
    
  4. Run migrations and collect static files, then restart Auth and the Celery workers:

    python manage.py migrate
    python manage.py collectstatic --noinput
    

Periodic tasks (CELERYBEAT_SCHEDULE)

Name Task Schedule What it does
aa_doctrinehub_sync_character_snapshots aa_doctrinehub.tasks.sync_character_snapshots every 4 hours Syncs skills, implants, and assets from ESI for all linked characters (no external plugins).
aa_doctrinehub_evaluate_compliance_rules aa_doctrinehub.tasks.evaluate_compliance_rules every 4 hours Evaluates active compliance rules across all account characters and applies automatic Auth group grants/revocations.

Permissions

Permission For
aa_doctrinehub.basic_access Members: see doctrines, fittings, and Hangars & SRP
aa_doctrinehub.manage_doctrines Doctrine managers: Doctrine Builder (local doctrines, category/fitting availability toggles), import fittings, External Auth import settings
aa_doctrinehub.view_compliance FCs and leadership: coverage overview and member compliance status
aa_doctrinehub.manage_rules Compliance rules, Discord notification config, and Auth group assignments

Settings

Setting Default Description
DOCTRINEHUB_APP_NAME "Doctrines" Name in the menu, page title, and SPA header

Functional configuration (External Auth import, compliance rules, Discord notification settings, and category/fitting availability toggles) lives in the frontend UI (Settings, Rules & Groups, and Doctrine Builder), not in Django admin.

Development

uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .
uv run mypy aa_doctrinehub

Frontend (React 19 + Vite + Tailwind v4 + shadcn/ui), output goes to aa_doctrinehub/static/aa_doctrinehub/spa/:

cd frontend && npm install && npm run build

On Windows with the workspace on Google Drive, use frontend/build.ps1 (builds on a local disk).

Metadata

Release files for aa-doctrinehub 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aa-doctrinehub 1.0.6
File Size Uploaded Provenance Actions
aa_doctrinehub-1.0.6.tar.gz 201.7 kB With provenance Details for aa_doctrinehub-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aa-doctrinehub 1.0.6
File Interpreter ABI Platform Actions
aa_doctrinehub-1.0.6-py3-none-any.whl Python 3 none any Details for aa_doctrinehub-1.0.6-py3-none-any.whl

Total release size: 427.4 kB

Release files / aa_doctrinehub-1.0.6.tar.gz

Download URL aa_doctrinehub-1.0.6.tar.gz
Size 201.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6f27e28053ee001e31765cdb86fdf6fbbe5fb942df6d9be8dd4c6fe3d20bd7ad
BLAKE2b-256 checksum
How to use checksums
2d8ac207a8d2708def6b81cd6911b0de49d3159b953ff219c7bd186f89497c6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / aa_doctrinehub-1.0.6-py3-none-any.whl

Download URL aa_doctrinehub-1.0.6-py3-none-any.whl
Size 225.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf6a394e2806d44a1aba561ee8e9775171920311cc92307c99cc4f2f5d824934
BLAKE2b-256 checksum
How to use checksums
f9ea9d899e943a669286b4e36864b9fcdcc6e9e7b20241992c9b96a6916ba01a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for aa-doctrinehub 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aa_doctrinehub-1.0.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page