Skip to main content

Auth Reports

Auth Data in report form, in Auth, fully configurable

AKA Corp Stats 3.0

  • Configurable Report Framework for corporate, alliance and group level aggregation of any data
  • Global overview of pass rates for selected reports across every corporation, alliance and group you can see
  • each "field" is a smart filter similar to secure groups ( can use secure groups filters too ) or a "field only" filter provided by any application in the alliance auth ecosystem.
    • These filters MUST be the more "modern" kind with either a process_field or audit_filter methods. Legacy filters using only process_filter will not show any data. Please see this link for more info
  • Data Exportable to CSV for external manipulation.

What it needs:

  • require corporate member tokens to build the corp groups to see people not known to auth, to make a report for that too. these can be added with the plus button in the menubar

The General Road Map

if you want some features, please create an issue.

  • state level report that shows all members of a state
  • group reports for group leaders done in 1.0.0
  • overview screen with passing/failing per corp per "report" done in 1.0.0
  • more things...

Filters/stats provided by this app

  • show all alts for a main, with option to only show in corp alts
  • last login of any character on the account, with options for max days since login, main corp only, and pass on no data
    • needs a Director's token per corp, added with "Add Token > Director Token" in the menubar (it also covers the membership token). Login data is refreshed from ESI as reports run (at most hourly per corp), no periodic task needed.

Other Apps with filters

... more send a PR in with updates

Installation

Bare Metal

  1. pip install -U allianceauth-auth-stats
  2. add 'authstats', to your local.py
  3. migrate python manage.py migrate
  4. collectstatic python manage.py collectstatic --noinput
  5. sync commands python manage.py reports_sync_filters
  6. create your first report python manage.py reports_bootstrap_report
  7. restart auth
  8. continue to the common section

Docker

  1. add allianceauth-auth-stats==0.0.1 (update version number as required) to your requirements.txt file and rebuild your containers docker compose build --no-cache
  2. add 'authstats', to your local.py
  3. recreate you docker stack docker compose up -d
  4. enter your auth container and run migrations and collect static and sync filters docker compose exec alliancauth_gunicorn bash
  • auth collectstatic
  • auth migrate
  • auth reports_sync_filters
  • auth reports_bootstrap_report
  1. continue to the common section

Common setup steps

  1. In the auth admin site edit Auth Reports Configuration to your liking.
  2. set your states to include in reports as a minimum.
  3. add permissions to the parties you wish to be able to use reports. permisions are defined below.
  4. (optional) keep the global overview up to date by adding this to your local.py and restarting celery beat. It refreshes reports that are "Shown on the global overview" every 4 hours; everything else refreshes when it is opened.
from celery.schedules import crontab

CELERYBEAT_SCHEDULE['authstats_refresh_overview_reports'] = {
    'task': 'authstats.tasks.refresh_overview_reports',
    'schedule': crontab(minute='0', hour='*/4'),
    'apply_offset': True,
}

Screenshots

Imgur

Imgur

Permissions

There are some basic access perms

All permissions are filtered by main character, if a person has neutral alts loaded they will also be visible to someone who can see their main.

Perm Admin Site Perm Description
basic_access nill Can access reports module Shows the Auth Reports module in the menu and gives access to the UI
own_corp nill Can access own corporations reports.
own_alliance nill Can access own alliances reports. Corporation reports for every corp in the alliance, plus the alliance report itself
own_state nill Can access own states reports.
own_groups nill Can access reports for groups they lead. Group reports for groups the user leads. Being a group leader without this permission gives no access
global_reports nill Can access all reports for all targets. Every corporation, alliance and group report
restricted_reports nill Can access restricted reports. Allows access to any report with restricted enabled
holding_corps nill Can access configured holding corp reports. Allows access to holding corporation reports

The global overview needs only basic_access; its rows are limited to the corporations, alliances and groups the viewer can already see.

Alliance reports only include the alliance's corporations that are visible as corporation targets (members of an included state, or holding corps). Group reports skip the corporation and alliance groups managed by Auto Groups, use the corporation and alliance reports for those.

Report options

Each report has three switches in the admin site:

Option Default Effect
show_for_corps on Report is available for corporations and alliances
show_for_groups off Report is available for groups
show_in_global off Report appears on the global overview (and in the optional periodic refresh)

Note: Configure the "Holding Corps" in the Auth Reports Configuration Admin Model. via the auth admin interface.

Reports only cover corporations with mains in the "States to include" on the same Auth Reports Configuration (plus the holding corps). New installs start with the Member state included; add any other states you want reported on.

Upgrading to 1.0.0

  • The old Bootstrap 3 UI has been removed; only the Bootstrap 5 UI ships. Requires Alliance Auth 5 or newer (Django 5.2).
  • Run migrate. Existing results are kept; if a corporation had more than one stored result for the same report, only the newest is kept.
  • If no states were included in the Auth Reports Configuration, migrate includes the Member state. Configured states are left alone.
  • Existing reports keep working for corporations (show_for_corps is on) and are now also available for alliances. Turn on show_for_groups and show_in_global per report to use group reports and the overview.
  • New permissions: own_groups and global_reports. global_reports replaces the old global_corp_manager check, which was never a real permission.
  • Old report links (/reports/show/<corp_id>/<report_id>/) still work.
  • Optionally add the overview refresh schedule from the setup steps above.

Contributing

Make sure you have signed the License Agreement by logging in at https://developers.eveonline.com before submitting any pull requests. All bug fixes or features must not include extra superfluous formatting changes.

Metadata

Release files for allianceauth-auth-stats 1.0.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 allianceauth-auth-stats 1.0.0
File Size Uploaded Provenance Actions
allianceauth_auth_stats-1.0.0.tar.gz 1.1 MB Without provenance Details for allianceauth_auth_stats-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for allianceauth-auth-stats 1.0.0
File Interpreter ABI Platform Actions
allianceauth_auth_stats-1.0.0-py3-none-any.whl Python 3 none any Details for allianceauth_auth_stats-1.0.0-py3-none-any.whl

Total release size: 2.3 MB

Release files / allianceauth_auth_stats-1.0.0.tar.gz

Download URL allianceauth_auth_stats-1.0.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
4144fc33ed92c328f8f77ec1f02b250f39feb18577b931bd589a5c66cca5f712
BLAKE2b-256 checksum
How to use checksums
742b68a27425ba743071d9bacc0801768902b89ff6141f8fe047144e86e99f0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / allianceauth_auth_stats-1.0.0-py3-none-any.whl

Download URL allianceauth_auth_stats-1.0.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
275ba6da2c2cd00aca703aca4fe439489595b8dabfe9d4e50c8518c212b6b024
BLAKE2b-256 checksum
How to use checksums
5ede6d0de249f7bf43067fd9bf35f86e9bfd6297b5307827ff02599c2aafb535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for allianceauth-auth-stats 1.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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