Skip to main content

AA Hangar Ready - Alliance Auth Plugin

Project description

AA Hangar Ready

Version License Python Django

Track member ship assets across your organization. Search for specific ship types and classes in specific hangar locations via ESI.

Key Features

  • 🚀 Ship Search - Find who has specific ships or ship classes across all members
  • 📊 Ship Reports - Generate custom reports by ship type, class, or location
  • 💾 Saved Reports - Save frequently-used reports for quick access
  • 🔄 Auto-Updates - Periodic automatic asset updates via Celery
  • 👥 Admin Tools - Bulk-add characters, view all tracked characters, fetch structure names
  • 🎨 Modern UI - Clean, responsive Bootstrap 5 interface with dark mode support

Requirements

  • Alliance Auth 4.0.0+
  • Python 3.8+

Installation

1. Install Package

pip install aa-hangar-ready

2. Add to Settings

Add to INSTALLED_APPS in your Alliance Auth local.py:

INSTALLED_APPS += [
    'hangarready',
]

3. Run Migrations

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

4. Restart Services

supervisorctl restart myauth:

5. Setup Permissions

Grant permissions in Alliance Auth admin:

Permission Purpose
hangarready.basic_access Access the plugin (grant to all members)
hangarready.view_all_characters Admin features - view/manage all characters

6. (Optional) Configure Auto-Updates

Add to local.py for automatic asset updates:

from celery.schedules import crontab

CELERYBEAT_SCHEDULE['hangarready_update_stale_assets'] = {
    'task': 'hangarready.tasks.update_stale_character_assets',
    'schedule': crontab(hour='*/6'),  # Every 6 hours
}

Usage

For Members

  1. Navigate to Hangar Ready in the sidebar
  2. Click Manage Characters
  3. Add your characters (requires ESI scope: esi-assets.read_assets.v1)
  4. Assets will be fetched and updated automatically

Search for Ships:

  • Use the dashboard search form to find ships by type and hangar location
  • Or use Ship Report to generate detailed reports by ship class

Save Reports:

  • Create custom reports and save them for quick re-running

For Admins

Bulk Add Characters:

  • Click Bulk Add Characters on the Manage Characters page
  • Automatically adds all characters that have already granted required ESI scopes

View All Characters:

  • Dashboard shows an admin-only section with all tracked characters across all accounts
  • See character ownership, status, and last update times

Fetch Structure Names:

  • Click Fetch Structures to resolve structure IDs to names via ESI
  • Individual structure name refresh buttons available in search results

Configuration

Optional settings in local.py:

# Update frequency (hours)
HANGAR_READY_UPDATE_INTERVAL = 6

# Maximum cache age before marked stale (hours)
HANGAR_READY_MAX_CACHE_AGE = 24

ESI Scopes Required

  • esi-assets.read_assets.v1 - Read character assets
  • esi-universe.read_structures.v1 - Resolve structure names (optional, for better UX)

Supported Hangar Locations

  • Main Hangar
  • Ship Maintenance Bay
  • Fleet Hangar
  • Corp Hangars 1-7

Troubleshooting

Assets not updating?

  • Check Celery is running: supervisorctl status
  • Verify ESI token is valid (re-add character if needed)
  • Check Celery logs: tail -f /var/log/myauth/celery.log

Permission denied?

  • Ensure user has hangarready.basic_access permission

Missing ship types?

python manage.py eveuniverse_load_types --type_id <TYPE_ID>

Support

License

MIT License - see LICENSE file


Built for Alliance Auth | Uses django-esi & django-eveuniverse

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_hangar_ready-0.3.1.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

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

aa_hangar_ready-0.3.1-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

Details for the file aa_hangar_ready-0.3.1.tar.gz.

File metadata

  • Download URL: aa_hangar_ready-0.3.1.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for aa_hangar_ready-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5fe410c0b50f3034c53518026fc0e9adea6dddbd5d19d679794b6e344a63f8a5
MD5 797f4c8b6bb6d088d9acde8e59ba0d5a
BLAKE2b-256 4689627b8bf953ef8e61c9f9c6a08fb30affbe1d28ff2e23fccc6155e6bf4628

See more details on using hashes here.

File details

Details for the file aa_hangar_ready-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aa_hangar_ready-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f0ceff2d5c10710bf5e1aa73d81eaf41c84c2c887933938436460f2de026217
MD5 4d001926ae78d6566af103267fbb6d51
BLAKE2b-256 5d71e3d9ffafc6055693d049d9144a824212de52103f2eb06d0be697a241ef1c

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