Killboard Stats shows Hall of Shame/Fame, Kills, Top Kills,Loss,etc.
Project description
Killstats module for AllianceAuth.
Killstats for Corporations & Alliances, Hall of Fame, Hall of Shame, etc.
-
Features
- Graphical Overview
- Corporation & Alliance Overview
- Kills/Losses
- Main Character and Alts combined (explanation)
- 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
Installation
[!NOTE] AA Killstats needs at least Alliance Auth v4.12.0 Please make sure to update your Alliance Auth before you install this APP
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_zkb_r2z2",
"schedule": crontab(minute="*/1"),
}
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 - Migration to AA
python manage.py collectstatic
python manage.py migrate
Step 4.1 - 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 esde_load_sde
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
Highlights
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aa_killstats-2.0.0.tar.gz.
File metadata
- Download URL: aa_killstats-2.0.0.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a7c95d8698442bfc4a6e1491e13cddbc76e5a86cbed2f8482ad3e1d3904c16b
|
|
| MD5 |
1e52a12523ec5b98d84bcb9dcc02b87e
|
|
| BLAKE2b-256 |
44936e0f96294ea750dcfc15204b8593167123fc802c7fc77e2dbbaf3ff8092b
|
Provenance
The following attestation bundles were made for aa_killstats-2.0.0.tar.gz:
Publisher:
release.yml on Geuthur/aa-killstats
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aa_killstats-2.0.0.tar.gz -
Subject digest:
3a7c95d8698442bfc4a6e1491e13cddbc76e5a86cbed2f8482ad3e1d3904c16b - Sigstore transparency entry: 1033507438
- Sigstore integration time:
-
Permalink:
Geuthur/aa-killstats@9d48260e6de65dd1a85fc91d010de0e503558214 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/Geuthur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9d48260e6de65dd1a85fc91d010de0e503558214 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aa_killstats-2.0.0-py3-none-any.whl.
File metadata
- Download URL: aa_killstats-2.0.0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a4c3b54608be2d093c776a1338da894eda50b0513deda4beedb6fa270fde6c
|
|
| MD5 |
0f66298cd9ab9d7f57c4822f3cd27d9a
|
|
| BLAKE2b-256 |
3fcd9f475c6ad3f70ac3df4c332b13002f3c8e9ffe44ef931243ea7a283d2882
|
Provenance
The following attestation bundles were made for aa_killstats-2.0.0-py3-none-any.whl:
Publisher:
release.yml on Geuthur/aa-killstats
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aa_killstats-2.0.0-py3-none-any.whl -
Subject digest:
c7a4c3b54608be2d093c776a1338da894eda50b0513deda4beedb6fa270fde6c - Sigstore transparency entry: 1033507497
- Sigstore integration time:
-
Permalink:
Geuthur/aa-killstats@9d48260e6de65dd1a85fc91d010de0e503558214 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/Geuthur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9d48260e6de65dd1a85fc91d010de0e503558214 -
Trigger Event:
release
-
Statement type: