Character and Corporation statistics, including detailed information on ESS, Ratting, Trading, Mining, and other activities.
Project description
Ledger module for AllianceAuth.
Character and Corporation PvE statistics, including detailed information on ESS, Ratting, Trading, Mining, and other activities.
Features
- Statistics
- Graphical Statistics
- Yearly, Monthly, Daily, Hourly
- Current Day
- Character Ledger
- Graphical Overview for each Character
- Graphical Statistics
- Ratting
- Encounter Surveillance System Payouts
- Mining
- Trading
- Costs
- Graphical Overview for each Character
- Corporation Ledger
- Graphical Overview for each Member
- Graphical Statistics
- Ratting Tax
- Encounter Surveillance System Tax
- Industry Tax
- Graphical Overview for each Member
- Alliance Ledger
- Graphical Overview for each Corporation
- Ratting Tax
- Encounter Surveillance System Tax
- Planetary Ledger
- Graphical Overview for each Planet
- Graphical Statistics
- Notification if Extractor expire
- Switchable Notification for each Planet
- Products Overview
- Graphical Overview for each Planet
- Events Calender
Upcoming
- Bug Fixing, Performance Optimation
- Costs for Corporation Ledger
- Planetary Interaction more details
Installation
[!NOTE] AA Ledger needs at least Alliance Auth v4.0.0 Please make sure to update your Alliance Auth before you install this APP
Step 0 - Check dependencies are installed
- Ledger needs the app django-eveuniverse to function. Please make sure it is installed.
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-ledger
Step 2 - Configure Alliance Auth
Configure your Alliance Auth settings (local.py) as follows:
- Add
'ledger',toINSTALLED_APPS
Step 3 - Add the Scheduled Tasks
To set up the Scheduled Tasks add following code to your local.py
CELERYBEAT_SCHEDULE["ledger_character_audit_update_all"] = {
"task": "ledger.tasks.update_all_characters",
"schedule": crontab(minute=0, hour="*/1"),
}
CELERYBEAT_SCHEDULE["ledger_corporation_audit_update_all"] = {
"task": "ledger.tasks.update_all_corps",
"schedule": crontab(minute=0, hour="*/1"),
}
CELERYBEAT_SCHEDULE["ledger_check_planetary_alarms"] = {
"task": "ledger.tasks.check_planetary_alarms",
"schedule": crontab(minute=0, hour="*/3"),
}
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 Ledger
[!IMPORTANT] Character, Corporation, Alliance Ledger only show Data from User has access to
advanced_accessgive User access to see own Corporations he is in
| ID | Description | |
|---|---|---|
basic_access |
Can access the Ledger module | All Members with the Permission can access the Ledger. |
advanced_access |
Can access Corporation and Alliance Ledger | Can see Corporation & Alliance Ledger. |
admin_access |
Can access the Administration tools | Can Add Corporations, Alliances. |
char_audit_manager |
Has Access to all characters for own Corp | Can see all Chars from Corps he is in. |
char_audit_admin_manager |
Has Access to all Characters | Can see all Chars. |
corp_audit_admin_manager |
Has Access to all Corporations | Can see all Corps. |
Step 6 - (Optional) Setting up Compatibilies
The Following Settings can be setting up in the local.py
-
LEDGER_APP_NAME:
"YOURNAME"- Set the name of the APP -
LEDGER_CORP_TAX:
15- Set Tax Value for ESS Payout Calculation -
LEDGER_LOGGER_USE:
True / False- Set to use own Logger File
If you set up LEDGER_LOGGER_USE to True you need to add the following code below:
LOGGING_LEDGER = {
"handlers": {
"ledger_file": {
"level": "INFO",
"class": "logging.handlers.RotatingFileHandler",
"filename": os.path.join(BASE_DIR, "log/ledger.log"),
"formatter": "verbose",
"maxBytes": 1024 * 1024 * 5,
"backupCount": 5,
},
},
"loggers": {
"ledger": {
"handlers": ["ledger_file", "console"],
"level": "INFO",
},
},
}
LOGGING["handlers"].update(LOGGING_LEDGER["handlers"])
LOGGING["loggers"].update(LOGGING_LEDGER["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
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_ledger-0.7.2.tar.gz.
File metadata
- Download URL: aa_ledger-0.7.2.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81979824a79b177ad9a0d11f41732baa3dd9c02ff6ae1e5c2098b60f326b542b
|
|
| MD5 |
04a26c06eec897d6ca196b6b6d93b7c7
|
|
| BLAKE2b-256 |
f3d68d6cbd5984ea0c72a533f22c8a748081323838c158ffba62df16a7a91701
|
File details
Details for the file aa_ledger-0.7.2-py3-none-any.whl.
File metadata
- Download URL: aa_ledger-0.7.2-py3-none-any.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25b421229a83be30e65b6e4971a56ecc6e9ed31a7571dec2d8da160ada8c2de
|
|
| MD5 |
5a64f4a735735f5254c41acbdf6f25e4
|
|
| BLAKE2b-256 |
dfcf498269445eb233bbf4e022a7aa0b22639417b955eb96d46437a7482c62bb
|