Killstats module for AllianceAuth.
Killstats for Corporations & Alliances, Hall of Fame, Hall of Shame, etc.
-
Features
- Graphical Overview
- Corporation & Alliance Overview
- Kills/Losses
- Hall of Fame, Hall of Shame
- Killstats like Top Kill, Top Killer, Top Loss, Alltime Killer, etc.
- Top 10 list for each Month
Upcoming
- Filtering Settings for each Corporation / Alliance
- Administration Access for specific Corps or Alliances
Highlights
Installation
Step 1 - Install the Package
Make sure you're in your virtual environment (venv) of your Alliance Auth then install the pakage.
pip install aa-killstats
Step 2 - Configure Alliance Auth
Configure your Alliance Auth settings (local.py) as follows:
INSTALLED_APPS = [
# other apps
"eve_sde", # only if it not already existing
"killstats",
# other apps?
]
# This line is right below the `INSTALLED_APPS` list, if not already exist!
INSTALLED_APPS = ["modeltranslation"] + INSTALLED_APPS
Step 3 - Add the Scheduled Tasks
To set up the Scheduled Tasks add following code to your local.py
if "killstats" in INSTALLED_APPS:
CELERYBEAT_SCHEDULE["Killstats :: Check for Killmails"] = {
"task": "killstats.tasks.run_tracker_zkb",
"schedule": crontab(minute="*/1"),
}
CELERYBEAT_SCHEDULE["Killstats :: Check for Missing Killmail Data"] = {
"task": "killstats.tasks.run_tracker_missing_data",
"schedule": crontab(minute="*/15"),
}
Step 3.1 - (Optional) Add own Logger File
To set up the Logger add following code to your local.py
Ensure that you have writing permission in logs folder.
LOGGING["handlers"]["killstats_file"] = {
"level": "DEBUG",
"class": "logging.handlers.RotatingFileHandler",
"filename": os.path.join(BASE_DIR, "log/killstats.log"),
"formatter": "verbose",
"maxBytes": 1024 * 1024 * 5,
"backupCount": 5,
}
LOGGING["loggers"]["extensions.killstats"] = {
"handlers": ["killstats_file"],
"level": "DEBUG",
}
Step 4 - Migrate & Preload EVE SDE Data
AA Killstats uses EVE SDE data to map IDs to names for EveTypes. You will need to preload some data from SDE once.
python manage.py migrate eve_sde
python manage.py esde_load_sde
Step 4.1 - Migrate App and collect static
Migrate the app and collect static.
python manage.py migrate killstats
python manage.py collectstatic --noinput
Step 5 - Setting up Permissions
With the Following IDs you can set up the permissions for the KILLSTATS
| ID | Description | |
|---|---|---|
basic_access |
Can access this app, Killstats. | All Members with the Permission can access the Killstats App. |
admin_access |
Has access to all killstats. | Has access to all Killstats Views, Can add Corporation/Alliance. |
Step 6 - (Optional) Setting up Compatibilies
The Following Settings can be setting up in the local.py
| Setting | Configuration(default) | Description |
|---|---|---|
KILLSTATS_APP_NAME |
"YOURNAME" ("Killstats") |
Set the name of the APP. |
KILLSTATS_API_CACHE_LIFETIME |
5 (10) |
Set Cache Lifetime for Killstats in Minutes. |
Step 6 - (Optional) Settings
- KILLSTATS_BULK_BATCH_SIZE:
500- Maximum database batch size per operation. Reduce (e.g., 250) if encountering 'max_allowed_packet' errors, increase for better performance if MySQL is configured with higher limits
Translations
Help us translate this app into your language or improve existing translations. Join our team!"
Contributing
You want to improve the project? Please ensure you read the contribution guidelines
Metadata
Release files for aa-killstats 4.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aa_killstats-4.0.1.tar.gz | 1.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aa_killstats-4.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.1 MB
Release files / aa_killstats-4.0.1.tar.gz
| Download URL | aa_killstats-4.0.1.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
566dabb9f5fa30d96ffff3b76ff283e2f0dce51f043c2bbe1c09646df0ee47ad
|
|
BLAKE2b-256 checksum How to use checksums |
e727360f4547451b36f8fd395773ad43b0ad02bcfe49db31976c77f331a75d62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / aa_killstats-4.0.1-py3-none-any.whl
| Download URL | aa_killstats-4.0.1-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5be030c4bc3514e05ae24e7b91c750b344635fdf35bb201487411ccf2bd4a762
|
|
BLAKE2b-256 checksum How to use checksums |
5946e7d9aae7d05b863eacb61d97ae38e482fe89c8cd8e3fd57f1b9aa82c46ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency log