Skip to main content

Pilot Stats

Pilot and fleet stats for Alliance Auth: upload EVE combat logs, attribute stats to characters (and roll alts up to mains), and see a fleet leaderboard.

Pilot Stats was called PvE Tracker (aa-pvetracker) up to v0.0.11. To upgrade an existing install, see Upgrading from PvE Tracker. Your stored sessions and upload permissions carry over.

Each EVE client's combat log only ever records damage involving that pilot, so no single file shows a whole fleet's damage. Pilot Stats solves this the same way FAT solves fleet attendance: every pilot uploads their own combat log, the app verifies the log actually belongs to a character on their Alliance Auth account, and the results roll up into one fleet-wide leaderboard.

Status

Alliance Auth 5.x only (allianceauth>=5.0.0,<6). Alliance Auth 4 is not supported. Combat stats still come from uploaded EVE Gamelog .txt files. The current version is in aa_pilotstats/__init__.py, and changes are listed in the changelog.

Any logged-in member can view the leaderboard, a stored session, and the events list. Uploading and deleting logs needs pilotstats.basic_access.

A note on naming: the installable/importable package is aa_pilotstats (distributed as aa-pilotstats), and the Django app label is the shorter pilotstats. The label is what you see in permission strings (pilotstats.basic_access), the URL namespace ({% url 'pilotstats:...' %}), table names, and migrations. Test discovery follows the import package, so the suite is manage.py test aa_pilotstats, not pilotstats.

Features

  • Drag-and-drop upload of one or more Gamelog .txt files (from Documents\EVE\logs\Gamelogs). It falls back to a plain file picker with no JS. Upload and delete require pilotstats.basic_access.
  • Gamelog folder scanning on the Upload page, with no install:
    • Chrome / Edge: pick the Gamelogs folder once. While the tab stays open, it's rescanned every minute and new or grown logs are uploaded, so an ongoing session refreshes about once a minute. The folder is remembered, so the next visit is one "Resume" click (the browser asks for permission again each visit).
    • Firefox / Safari: "Scan a folder once" does the same pass a single time.
    • Logs are read on the pilot's computer, and only logs whose Listener: is one of the user's own characters are sent; the server re-checks ownership anyway.
    • By default only logs from the last 7 days go up. A checkbox includes older logs for a one-time backfill.
  • Ownership-verified attribution — a log is only accepted if its Listener: character is one the uploading user actually owns on Alliance Auth.
  • Main/alt roll-up — leaderboard rows are grouped by each user's designated main character, with a per-character breakdown on expand. The grouping lives in aa_pilotstats.leaderboard so later Discord and ISK/kill columns can use the same buckets.
  • Re-uploading a growing log updates the same session. The EVE client keeps writing to one file per client session. A session is identified by its character plus the log header's Session Started: time, so uploading a longer copy replaces that session's totals instead of counting the fight twice.
  • Fleet leaderboard for the last 7 days, last 30 days, or all time, with rank badges and sortable damage and rep columns. The 7- and 30-day windows go by when the fight happened (the log's first combat line, in EVE time / UTC), not by when the log was uploaded.
  • Session page — the upload-result dashboard (tiles, hit-quality bars, top targets and attackers, recent activity) has a stable URL, linked from My Uploads. Any logged-in member can open it.
  • My Uploads shows duration, your last session, and your 30-day damage rank.
  • Events lists recent lines from uploaded sessions. One checkbox hides your sessions from that list; leaderboard totals are unchanged. Live tailing is not in this version.
  • Dashboard widget with your last-7-days damage and reps, last session, and 7-day damage rank.
  • Shared section nav on every page: Leaderboard, Upload, My Uploads, Events. Upload and My Uploads are shown only when you can upload.

Known limitations

  • Near-live, not live. The folder scanner re-uploads a growing log about once a minute while its tab is open; there's no line-by-line live view yet, and closing the tab stops scanning. A desktop watcher that doesn't need an open tab is planned.
  • Sessions uploaded before the "same session" matching was added have no header time stored, so a re-upload of one of those logs is stored as a new session; delete the old one from My Uploads.
  • Only the combat log has DPS. ESI has no combat or damage data. Payouts, rat counts, killmails and fleet rosters sit next to the Gamelog numbers. Damage, payout ISK, and kill value are never added together.
  • Payouts lag up to an hour. ESI caches the wallet journal for an hour, and the journal only goes back 30 days, so payouts from before a pilot connected their wallet (older than 30 days) can't be fetched.
  • Killmails are mostly PvP. Killing rats makes no killmail, so the kill columns don't reflect ratting; "Rats" (from bounty ticks) does. Killmail damage is only damage on killmails.
  • reps_given_total is an estimate. The regex for a logi pilot's own outgoing remote-repair line was written by mirroring the incoming-rep line shape, since a real logi pilot's log was not available to test against. If the numbers look off, open an issue with a sample line (amounts and names redacted is fine).
  • Trust model: a log's character has to be one you own via Alliance Auth, but the numbers in it are still whatever that client wrote to disk.

Requirements

  • Python >= 3.10
  • Alliance Auth >= 5.0.0, < 6
  • Redis (Alliance Auth already requires it)

Installation

  1. Install the package:

    pip install aa-pilotstats
    
  2. Add "aa_pilotstats" to INSTALLED_APPS in your Alliance Auth settings file (e.g. local.py).

  3. Rebuild the image, run migrations, and collect static files:

    docker compose build
    docker compose exec allianceauth_gunicorn bash -c "auth migrate && auth collectstatic --noinput"
    docker compose up -d
    
  4. Grant pilotstats.basic_access to the group(s) that should upload and delete logs. Viewing does not need it: any logged-in member can open the leaderboard, sessions, and events.

  5. Schedule the background tasks in local.py:

    from celery.schedules import crontab
    
    CELERYBEAT_SCHEDULE["pilotstats_pull_wallet_journals"] = {
        "task": "aa_pilotstats.tasks.pull_all_wallet_journals",
        "schedule": crontab(minute="7"),  # hourly; ESI caches the journal for an hour
    }
    CELERYBEAT_SCHEDULE["pilotstats_drain_r2z2"] = {
        "task": "aa_pilotstats.tasks.drain_r2z2",
        "schedule": crontab(minute="*"),  # zKill killmails, every minute
    }
    CELERYBEAT_SCHEDULE["pilotstats_poll_tracked_fleets"] = {
        "task": "aa_pilotstats.tasks.poll_tracked_fleets",
        "schedule": crontab(minute="*"),  # fleet rosters, every minute (idle when none tracked)
    }
    CELERYBEAT_SCHEDULE["pilotstats_purge_old_payouts"] = {
        "task": "aa_pilotstats.tasks.purge_old_payouts",
        "schedule": crontab(minute="23", hour="4"),
    }
    CELERYBEAT_SCHEDULE["pilotstats_post_discord_daily"] = {
        "task": "aa_pilotstats.tasks.post_discord_daily",
        "schedule": crontab(minute="*/5"),  # posts once a day at the time set in admin
    }
    

    Skip a task to turn its source off. The Gamelog features don't need any of them.

Data sources

Source What it adds How it's collected Needs
Gamelog DPS, hit quality, reps Upload, drag-and-drop, or the folder scanner pilotstats.basic_access
ESI wallet journal Payout ISK (bounty, ESS, mission), rats killed Hourly per character that connected its wallet Optional per pilot: esi-wallet.read_character_wallet.v1
zKillboard R2Z2 Kills, losses, ISK destroyed/lost, killmail damage Every minute from zKill's public feed Nothing from pilots
ESI fleet Who was in a fleet, hull, combat-log coverage Every minute while a fleet is tracked Optional, fleet boss only: esi-fleets.read_fleet.v1

What's stored, and what isn't:

  • Wallet:
    • Kept: character, time, type, amount and journal id for bounty, ESS and mission payout lines only. For bounty ticks, the per-NPC-type kill counts are derived from the line.
    • Never stored: balance, other transactions, *_tax lines, the other party, or the line's raw text.
    • Itemized lines are kept for 35 days; daily totals for longer.
    • A pilot can untick their wallet any time ("Don't read my wallet" on Events), which also deletes what was stored.
  • zKill: a mail is kept only when one of your Auth characters in a tracked corporation or alliance is on it, and only those characters are stored.
    • By default, the corps and alliances of mains in the Member state are tracked.
    • Edit the list under Admin → Pilot Stats → tracked corporations and alliances.
  • Fleets: pilot id, hull, and first and last time seen. Tracking stops by itself when the boss leaves or hands over the fleet.

ESI calls use django-esi's client with a pinned compatibility date (PILOTSTATS_ESI_COMPATIBILITY_DATE) and its built-in ETag and rate-limit handling. Only the wallet journal, character fleet and fleet members routes are called.

Discord feed

Posts to one Discord channel through a webhook. There are no bot or slash commands. Set it up under Admin → Pilot Stats → Discord settings:

  1. In Discord, go to the channel's Settings → Integrations → Webhooks → New Webhook → Copy Webhook URL.
  2. Paste it into webhook URL, tick enabled, and save. The URL is stored in the database only and is never shown again; leave the field blank to keep it.
  3. Select the settings row and run Send a test message to the webhook.

What gets posted:

  • Daily top 10: once a day at the set time and time zone (default 11:05 UTC, after EVE downtime).
    • Top 10 for damage dealt and for payout ISK over the last 24 hours, plus the biggest kills and losses.
    • Pilots are grouped by main, like the leaderboard.
  • Major events, as they happen:
    • A single payout line at or over the payout threshold (default 300M). These arrive up to an hour late, because ESI caches the wallet journal.
    • A member's kill or loss at or over the kill threshold (default 300M).
    • New fleet records (and personal records, after five sessions) for session damage and session DPS.
    • A new fleet record for one main's payouts in a day.
  • Event posts are capped per hour (default 6); extras are skipped, not queued. The daily post is never capped.
  • Each post goes out once (there's a log under Discord posts), only names and numbers are sent, and nobody is ever pinged. Keep in mind the channel may be visible to people who aren't on Auth.

Settings

Optional, in local.py:

Setting Default What it does
PILOTSTATS_SCANNER_UPLOADS_PER_MINUTE 30 Most uploads one user's folder scanner (or multi-file drop) may send per minute. Over it, the server answers 429 and the scanner waits. 0 turns the limit off. The plain upload form is never limited.
PILOTSTATS_SCANNER_RECENT_DAYS 7 The scanner only sends logs modified in the last N days unless "include older logs" is ticked.
PILOTSTATS_ESI_COMPATIBILITY_DATE "2026-11-19" ESI compatibility date sent on every call. Bump it only after checking CCP's ESI changelog.
PILOTSTATS_PAYOUT_RETENTION_DAYS 35 Days itemized payout lines are kept (daily totals are kept longer).
PILOTSTATS_SESSION_LINK_MINUTES 15 How far before and after a session payouts, kills and fleet hulls are matched to it.
PILOTSTATS_ZKILL_AUTO_STATES ["Member"] Auth states whose mains' corporations and alliances are tracked on zKill automatically.
PILOTSTATS_R2Z2_MAX_PER_RUN 300 zKill sequence files read per run of drain_r2z2.
PILOTSTATS_R2Z2_REQUEST_INTERVAL 0.15 Seconds between zKill requests (their limit is 15 a second per IP).
PILOTSTATS_USER_AGENT aa-pilotstats/<version> (+repo URL) User-Agent for zKill and the SDE. zKill asks for a real one; you can add your site's contact.

Upgrading from PvE Tracker

Pilot Stats takes over a PvE Tracker install in place. Its first migration renames the pvetracker_* tables to pilotstats_* with every row, moves the permission so existing basic_access group grants keep working, and removes PvE Tracker's migration history. The database index and constraint names keep their old pvetracker_ prefix; that's expected.

  1. Back up the database.

  2. Swap the package:

    pip uninstall aa-pvetracker
    pip install aa-pilotstats
    

    On Docker, change aa-pvetracker to aa-pilotstats in conf/requirements.txt and rebuild the image.

  3. In local.py, replace "aa_pvetracker" with "aa_pilotstats" in INSTALLED_APPS. If both are listed, Auth refuses to start with check pilotstats.E001.

  4. Run migrations and collect static files, then restart Auth:

    auth migrate
    auth collectstatic --noinput
    

Old links keep working: /pvetracker/... redirects permanently to /pilotstats/....

Development

The SQLite harness (manage.py, settings_dev.py, urls_dev.py) runs the parser tests, the leaderboard-helper tests, and the Django view tests. Alliance Auth's own system checks need a Redis server and the placeholder settings in settings_dev.py (every URL there is https://example.com; nothing in that file is a credential).

python -m pip install "allianceauth==5.6.0"
python -m pip install -e . --no-deps

# no database: parser + roll-up helper
python -m unittest aa_pilotstats.tests.test_parsing aa_pilotstats.tests.test_leaderboard

# full suite, including views (Redis on localhost:6379)
python manage.py test aa_pilotstats

# migration matches the models:
python manage.py makemigrations pilotstats --check --dry-run

settings_dev.py is not a production settings file. Confirm the pages against your real Alliance Auth theme in the Auth container when you care about Bootswatch colors; the nested leaderboard detail table is styled with the app's own classes for that reason.

GitHub Actions runs python manage.py test aa_pilotstats and the makemigrations --check step on Python 3.12 with Redis 7.4, against both the oldest supported Alliance Auth (5.0.0) and 5.6.0.

Metadata

Release files for aa-pilotstats 0.1.0

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-pilotstats 0.1.0
File Size Uploaded Provenance Actions
aa_pilotstats-0.1.0.tar.gz 87.7 kB With provenance Details for aa_pilotstats-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aa-pilotstats 0.1.0
File Interpreter ABI Platform Actions
aa_pilotstats-0.1.0-py3-none-any.whl Python 3 none any Details for aa_pilotstats-0.1.0-py3-none-any.whl

Total release size: 200.1 kB

Release files / aa_pilotstats-0.1.0.tar.gz

Download URL aa_pilotstats-0.1.0.tar.gz
Size 87.7 kB
Tags Source
SHA-256 checksum
How to use checksums
be5d8d832d5f2a04a35069f2722510ffd61786995a2793079f40e017496e48fd
BLAKE2b-256 checksum
How to use checksums
595011786f2c44fe14a902c25fea747c28aca2245b15fce31a1fcfbd84ed889f
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 Nov 28, 2026.

Transparency log

Release files / aa_pilotstats-0.1.0-py3-none-any.whl

Download URL aa_pilotstats-0.1.0-py3-none-any.whl
Size 112.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6527fe3f1817618b48a500de911770b91c2234ff055ece1c1d8c12bb79f6c3c4
BLAKE2b-256 checksum
How to use checksums
fd181122c79d34d3f439cc4be50cbf031e75a664cba5ff578e14983d9d12e184
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 Nov 28, 2026.

Transparency log

Security for aa-pilotstats 0.1.0

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_pilotstats-0.1.0.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 Nov 28, 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