Killboard Stats shows Hall of Shame/Fame, Kills, Top Kills,Loss,etc.
Project description
Killstats module for AllianceAuth.
Features
- Graphical Overview
- Kills from alts count to Main Character
- Hall of Fame, Hall of Shame
- Killstats like Top Kill, Top Killer, Top Loss, Alltime Killer, etc.
- Kills/Losses
Upcoming
- Access to Killboards from other Corporation (Admin Access)
Installation
[!NOTE] AA Killstats needs at least Alliance Auth v4.0.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:
- Add
'allianceauth.corputils',
toINSTALLED_APPS
- Add
'eveuniverse',
toINSTALLED_APPS
- Add
'killstats',
toINSTALLED_APPS
Step 3 - Add the Scheduled Tasks
To set up the Scheduled Tasks add following code to your local.py
CELERYBEAT_SCHEDULE["killstats_killmail_fetch"] = {
"task": "killstats.tasks.killmail_fetch_all",
"schedule": crontab(hour="*/1"),
}
Step 4 - Migration to AA
python manage.py collectstatic
python manage.py migrate
Step 5 - Setting up Permissions
With the Following IDs you can set up the permissions for the KILLSTATS
ID | Description | |
---|---|---|
basic_access |
Can access the Killstats module | All Members with the Permission can access the Killstats App. |
admin_access |
Can Add Corporations to Killstats | Can Add Corporations to Killstats |
Step 6 - (Optional) Setting up Compatibilies
The Following Settings can be setting up in the local.py
-
KILLSTATS_APP_NAME:
"YOURNAME"
- Set the name of the APP -
KILLSTATS_LOGGER_USE:
True / False
- Set to use own Logger File -
KILLSTATS_CORPSTATS_TWO:
True / False
- Set to use Corp Stats Two APP to Fetch Members that are not registred
If you set up KILLSTATS_LOGGER_USE to True
you need to add the following code below:
LOGGING_KILLSTATS = {
"handlers": {
"killstats_file": {
"level": "INFO",
"class": "logging.handlers.RotatingFileHandler",
"filename": os.path.join(BASE_DIR, "log/killstats.log"),
"formatter": "verbose",
"maxBytes": 1024 * 1024 * 5,
"backupCount": 5,
},
},
"loggers": {
"killstats": {
"handlers": ["killstats_file", "console"],
"level": "INFO",
},
},
}
LOGGING["handlers"].update(LOGGING_KILLSTATS["handlers"])
LOGGING["loggers"].update(LOGGING_KILLSTATS["loggers"])
Highlights
[!NOTE] Contributing You want to improve the project? Just Make a Pull Request with the Guidelines. We Using pre-commit
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
Hashes for aa_killstats-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24a882c4b4a562507d3684d39b9ff07377b95c9c271ffd4f02d30b4e9b382b57 |
|
MD5 | 206e6bfbbcde39975f35ed67535701a0 |
|
BLAKE2b-256 | 9a78bc0f7ede76562b58f3d7f5e0c496464717682274fcf39439a02c9bf86007 |