AA Doctrine Hub
Doctrines, fittings and member compliance for Alliance Auth. A modern successor to the community Fittings app.
Status: early development (phase 1, catalogue). See
backlog/docs/doc-1for the design.
Features
Phase 1 (in progress):
- Doctrines with fittings, roles (DPS, logistics, tackle, ...), required or optional, and a target count.
- Fittings with versions: every change is a new version with author, time and note.
- EFT import and export, multibuy text for one or more fits.
- Categories that limit visibility to Auth groups.
- Periodic sync from the Fittings app on the same Auth (optional). Synced doctrines and fittings carry the source label "Fittings" and are read-only here.
- React + Tailwind + shadcn/ui single-page app that follows the Alliance Auth light/dark theme.
Planned: per-character eligibility from ESI skills, skill plans, coverage reports for leadership, and compliance rules that assign and revoke Auth groups automatically.
Installation
-
Install the package in your Auth virtual environment:
pip install aa-doctrinehub
-
Add
"aa_doctrinehub"toINSTALLED_APPSinlocal.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. -
Add the periodic task to
local.py:CELERYBEAT_SCHEDULE["aa_doctrinehub_sync_from_fittings"] = { "task": "aa_doctrinehub.tasks.sync_from_fittings", "schedule": crontab(minute="30", hour="4"), } 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"), }
-
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_from_fittings |
aa_doctrinehub.tasks.sync_from_fittings |
daily, 04:30 | Copies doctrines, fittings and categories from the Fittings app when the sync is enabled and its interval (set in the app, default 7 days) has passed. Does nothing when Fittings is not installed. |
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 and fittings |
aa_doctrinehub.manage_doctrines |
Doctrine managers: import and edit fittings, sync settings |
aa_doctrinehub.view_compliance |
FCs and leadership: coverage and member status (planned) |
aa_doctrinehub.manage_rules |
Compliance rules and group assignments (planned) |
Settings
| Setting | Default | Description |
|---|---|---|
DOCTRINEHUB_APP_NAME |
"Doctrines" |
Name in the menu and page title |
Functional settings (Fittings sync on/off and interval) live in the app itself, not in Django admin.
Fittings sync
Doctrine Hub never imports the Fittings package. It looks up Fittings' models through Django's app registry, so it works with or without Fittings installed. Sync behaviour:
- Fittings and doctrines are matched on their Fittings ID; a changed fitting gets a new version.
- Doctrines removed from Fittings are archived here; fittings removed from Fittings are deleted, unless one of our own doctrines still uses them.
- Category group restrictions are copied.
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aa_doctrinehub-1.0.3.tar.gz | 198.8 kB | With provenance | Details for aa_doctrinehub-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aa_doctrinehub-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for aa_doctrinehub-1.0.3-py3-none-any.whl |
Total release size: 420.7 kB
Release files / aa_doctrinehub-1.0.3.tar.gz
| Download URL | aa_doctrinehub-1.0.3.tar.gz |
|---|---|
| Size | 198.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d9dfd563e983d6212eb52269fdf76746901f1ae1bf99fc11a7eaebc9a5edd9c
|
|
BLAKE2b-256 checksum How to use checksums |
156e304529512c7f5030c99cec9fc40a32ae6940a89ebaf09339a8dc8c3a47ca
|
| 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 logRelease files / aa_doctrinehub-1.0.3-py3-none-any.whl
| Download URL | aa_doctrinehub-1.0.3-py3-none-any.whl |
|---|---|
| Size | 221.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a88611328aeb2a598bfd62cd87de23ebbe7cf81b11ebb4b0eaa1ac994ce062a
|
|
BLAKE2b-256 checksum How to use checksums |
014d1f077ff01012a3d5b146f029d7eb8e1ea00c1a621200f05e1f7b71577f46
|
| 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 logSecurity for aa-doctrinehub 1.0.3
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.
Attestation for aa_doctrinehub-1.0.3.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 logA 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.