Alliance Auth plugin to track corporation Freelance Jobs from the EVE Online ESI
Project description
AA Freelance Tracker
An Alliance Auth plugin that tracks corporation "Freelance Jobs" from the EVE Online ESI.
Features
- A searchable, sortable board of every Freelance Job tracked across your linked corporations, with a status filter (Active, Closed, Completed, Expired, ...) and sorting by expiry or ISK remaining.
- A job detail page with progress, reward, configuration, and a participants list.
- A "My Jobs" screen showing the Freelance Jobs the logged-in user's own characters are personally participating in, live from ESI.
- Visibility scoped to what a user is permitted to see: their own corporation, their alliance, and/or their faction, in any combination.
- Corp-wide syncing runs as a chain of Celery tasks per corporation (see How syncing works below), so a slow or failing job doesn't block the rest of that corp's sync.
Installation
-
Install the app:
pip install aa-freelance-tracker
-
This app depends on
django-eveonline-sdefor Freelance Job schema/label data, which requiresmodeltranslationto be first inINSTALLED_APPS:INSTALLED_APPS = [ "modeltranslation", ] + INSTALLED_APPS INSTALLED_APPS += [ "eve_sde", "freelance_tracker", ]
If you already have
eve_sdeinstalled for another plugin, just add"freelance_tracker". -
Run migrations and collect static files:
python manage.py migrate python manage.py collectstatic
-
Make sure
eve_sde's SDE data is loaded (python manage.py esde_load_sde) and kept up to date - see django-eveonline-sde's README for the periodic update task. Job type titles/descriptions fall back to the raw ESI key if this data isn't loaded yet. -
Restart your Auth (gunicorn, Celery worker, and Celery beat).
-
Run the post-install setup command below to schedule the periodic sync.
ESI Scopes
esi-corporations.read_freelance_jobs.v1- required from a director/manager of a corporation before it can be linked for corp-wide tracking (requested via the "Add / Refresh Corp Token" button).esi-characters.read_freelance_jobs.v1- required from a character before it shows up on that user's "My Jobs" screen (requested via "Add / Refresh Character" on that page).
Permissions
| Permission | Description |
|---|---|
basic_access |
Can access the app at all. |
add_corp_owner |
Can link (or refresh the ESI token for) a corporation. |
view_corp |
Can see Freelance Jobs for their own corporation. |
view_alliance |
Can see Freelance Jobs for every corporation in their alliance (their own corp is included automatically). |
view_faction |
Can see Freelance Jobs for every corporation in their faction. |
view_participants |
Can see a job's participants list on its detail page, and contribution totals on the leaderboard. |
A user can hold any combination of view_corp/view_alliance/view_faction and
sees the union of what they grant. basic_access is required in addition to at
least one of the view_* permissions to see anything on the job board; without
it, my_jobs (which only shows the user's own participation) still requires
basic_access too. view_participants is independent of those three - it only
gates whether the participants table is shown on a job a user can already see,
and whether the "Contributed" column is shown on the leaderboard; without it,
the rest of the job detail page and the leaderboard's rankings still render
normally.
Usage
- Link a corporation: a director or manager with
add_corp_ownerclicks "Add / Refresh Corp Token" and authorizes with the required ESI scope. This immediately queues a sync for that corporation and also re-authorizes an already-linked corporation if its token has expired or lost the scope. - Browse jobs: the main job board supports free-text search (name, corporation, career, status), a status dropdown (defaults to Active), and sorting by soonest expiry or highest ISK remaining.
- My Jobs: any user can link a character (via "Add / Refresh Character") to see the Freelance Jobs that character is personally contributing to, fetched live from ESI on page load.
- Force a full resync: from Django admin (
/admin/freelance_tracker/owner/), select one or more corporations and use the "Force a full resync from ESI (bypasses cache)" action. This re-fetches every job the corporation has ever had tracked, ignoring ESI's ETag cache.
Post-install setup
Linking a corporation (via the "Add / Refresh Corp Token" button) syncs its jobs once immediately, but nothing refreshes them after that unless a periodic task is scheduled. Run this once after installing/upgrading:
python manage.py freelance_tracker_setup
This registers an hourly PeriodicTask (via django-celery-beat) that calls
freelance_tracker.tasks.update_all_corp_freelance_jobs for every tracked
corporation. It's safe to run again after upgrades - it just updates the
existing schedule rather than duplicating it.
How syncing works
Each corporation's sync is a small chain of Celery tasks, not one big task:
- Listing (
_fetch_freelance_job_listing) pages through the corp's Freelance Job listing from ESI using cursor-based pagination, advancing and persisting the corp's cursor (Owner.jobs_cursor) so the next sync only looks at what's new. Jobs already tracked asActiveare always rechecked too, since a job's detail and its participants have their own ESI caching independent of the listing. - Dispatch (
_dispatch_freelance_job_syncs) chains one task per job to sync, in sequence. - Per-job sync (
_sync_freelance_job) fetches that job's detail, updates it in the database, and syncs its participants if it'sActive. This is the task an ESI rate limit is applied to, since it's the one making the per-job ESI calls. - Finalize (
_finalize_corp_sync) stampsOwner.last_updateonce every job in that corp's sync has finished.
update_all_corp_freelance_jobs (the periodic task) queues one such chain per
active corporation; different corporations' chains run independently and
concurrently of one another. Both update_all_corp_freelance_jobs and
update_corp_freelance_jobs accept a force=True option that bypasses ESI's
ETag cache and re-fetches every job ever tracked, rather than just what
changed - this is what the admin's "Force a full resync" action uses.
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_freelance_tracker-0.0.1.tar.gz.
File metadata
- Download URL: aa_freelance_tracker-0.0.1.tar.gz
- Upload date:
- Size: 69.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00bed37be776f7b66fad05a24debfd83147eb081be4d6fab39c7f937cab037cc
|
|
| MD5 |
ba8bc519e1c2ccca764141b84bc6978e
|
|
| BLAKE2b-256 |
bd6644f706fec2604726b0d2e2f629af046716eea9b0f7ccebc6c8d35546713f
|
Provenance
The following attestation bundles were made for aa_freelance_tracker-0.0.1.tar.gz:
Publisher:
release.yml on Solar-Helix-Independent-Transport/aa-freelance-tracker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aa_freelance_tracker-0.0.1.tar.gz -
Subject digest:
00bed37be776f7b66fad05a24debfd83147eb081be4d6fab39c7f937cab037cc - Sigstore transparency entry: 2080146005
- Sigstore integration time:
-
Permalink:
Solar-Helix-Independent-Transport/aa-freelance-tracker@1dfc53c283e348039046f731ddd4e45d42dfde8a -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/Solar-Helix-Independent-Transport
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dfc53c283e348039046f731ddd4e45d42dfde8a -
Trigger Event:
release
-
Statement type:
File details
Details for the file aa_freelance_tracker-0.0.1-py3-none-any.whl.
File metadata
- Download URL: aa_freelance_tracker-0.0.1-py3-none-any.whl
- Upload date:
- Size: 78.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2f425174b250124913fbc2413d0024a27c53d443771c069b16ba982987b1f18
|
|
| MD5 |
d069b233e8b843177f4a681180ea6878
|
|
| BLAKE2b-256 |
b607a6249ecf898dd3a1486daa6aa8b1005f0dd74d630854b9a335435313d631
|
Provenance
The following attestation bundles were made for aa_freelance_tracker-0.0.1-py3-none-any.whl:
Publisher:
release.yml on Solar-Helix-Independent-Transport/aa-freelance-tracker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aa_freelance_tracker-0.0.1-py3-none-any.whl -
Subject digest:
c2f425174b250124913fbc2413d0024a27c53d443771c069b16ba982987b1f18 - Sigstore transparency entry: 2080146250
- Sigstore integration time:
-
Permalink:
Solar-Helix-Independent-Transport/aa-freelance-tracker@1dfc53c283e348039046f731ddd4e45d42dfde8a -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/Solar-Helix-Independent-Transport
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1dfc53c283e348039046f731ddd4e45d42dfde8a -
Trigger Event:
release
-
Statement type: