eveonline
The eveonline package provides models for commonly used Eve Online entities like characters, corporations and alliances. All models have the ability to be loaded from ESI.
Location: allianceauth.eveonline
models
- class EveAllianceInfo(*args, **kwargs)[source]
An alliance in Eve Online.
- Parameters:
id (AutoField) – Primary key: ID
alliance_id (PositiveIntegerField) – Alliance id
creator_corporation_id (PositiveIntegerField) – Creator corporation id. Alliance’s creator corporation ID
creator_id (PositiveIntegerField) – Creator id. Alliance’s creator ID
date_founded (DateField) – Date founded. Alliance’s founding date
executor_corp_id (PositiveIntegerField) – Executor corp id. Alliance’s executor corporation ID
alliance_name (CharField) – Alliance name. Alliance’s name
alliance_ticker (CharField) – Alliance ticker. Alliance’s ticker
last_updated (DateTimeField) – Last updated. Last time the alliance’s details were updated, (GetAlliancesAllianceId), 1 hr Cache
Relationship fields:
- Parameters:
faction (
ForeignKeytoEveFactionInfo) – Faction. Alliance’s faction ID (related name:alliance)
Reverse relationships:
- Parameters:
state (Reverse
ManyToManyFieldfromState) – All states of this alliance (related name ofmember_alliances)evecorporationinfo (Reverse
ForeignKeyfromEveCorporationInfo) – All corporations of this alliance (related name ofalliance)managedalliancegroup (Reverse
ForeignKeyfromManagedAllianceGroup) – All managed alliance groups of this alliance (related name ofalliance)
- property creator_corporation: EveCorporationInfo | None
Return creator corporation of this alliance or None if not found.
- property executor_corporation: EveCorporationInfo | None
Return executor corporation of this alliance or None if not found.
- property executor_corporation_id: CorporationID | None
Return executor corporation of this alliance or None if not found.
- class EveCharacter(*args, **kwargs)[source]
A character in Eve Online.
- Parameters:
id (AutoField) – Primary key: ID
character_id (PositiveIntegerField) – Character id
alliance_id (PositiveIntegerField) – Alliance id. Character’s alliance ID
birthday (DateField) – Birthday. Character’s creation date
bloodline_id (PositiveSmallIntegerField) – Bloodline id. Character’s bloodline ID
corporation_id (PositiveIntegerField) – Corporation id. Character’s corporation ID
description (TextField) – Description. Character’s description (biography)
faction_id (PositiveIntegerField) – Faction id. Character’s faction ID
gender (CharField) – Gender. Character’s gender
character_name (CharField) – Character name. Character’s name
race_id (PositiveSmallIntegerField) – Race id. Character’s race ID
security_status (FloatField) – Security status. Character’s security status
title (CharField) – Title. Character’s title
corporation_name (CharField) – Corporation name
corporation_ticker (CharField) – Corporation ticker
alliance_name (CharField) – Alliance name
alliance_ticker (CharField) – Alliance ticker
faction_name (CharField) – Faction name
last_updated_affiliations (DateTimeField) – Last updated affiliations. Last time the character’s affiliations were updated (PostCharactersAffiliation, 1 hr Cache)
last_updated_other (DateTimeField) – Last updated other. Last time the character’s details were updated, (GetCharactersCharacterId), 24 hr Cache
Reverse relationships:
- Parameters:
state (Reverse
ManyToManyFieldfromState) – All states of this character (related name ofmember_characters)userprofile (Reverse
OneToOneFieldfromUserProfile) – The user profile of this character (related name ofmain_character)character_ownership (Reverse
OneToOneFieldfromCharacterOwnership) – The character ownership of this character (related name ofcharacter)ownership_records (Reverse
ForeignKeyfromOwnershipRecord) – All ownership records of this character (related name ofcharacter)application (Reverse
ForeignKeyfromApplication) – All applications of this character (related name ofreviewer_character)timer (Reverse
ForeignKeyfromTimer) – All timers of this character (related name ofeve_character)srpfleetmain (Reverse
ForeignKeyfromSrpFleetMain) – All srp fleet mains of this character (related name offleet_commander)srpuserrequest (Reverse
ForeignKeyfromSrpUserRequest) – All srp user requests of this character (related name ofcharacter)optimer (Reverse
ForeignKeyfromOpTimer) – All op timers of this character (related name ofeve_character)fat (Reverse
ForeignKeyfromFat) – All fats of this character (related name ofcharacter)templink (Reverse
ForeignKeyfromTempLink) – All temp links of this character (related name ofcreator)tempuser (Reverse
ForeignKeyfromTempUser) – All Temp Users of this character (related name ofcharacter)
- property alliance: EveAllianceInfo | None
Pseudo foreign key from alliance_id to EveAllianceInfo :raises: EveAllianceInfo.DoesNotExist :return: EveAllianceInfo or None
- property corporation: EveCorporationInfo
Pseudo foreign key from corporation_id to EveCorporationInfo :raises: EveCorporationInfo.DoesNotExist :return: EveCorporationInfo
- property faction: EveFactionInfo | None
Pseudo foreign key from faction_id to EveFactionInfo :raises: EveFactionInfo.DoesNotExist :return: EveFactionInfo
- static generic_portrait_url(character_id: int, size: int = 32) str[source]
image URL for the given character ID
- update_character() EveCharacter[source]
Update only character’s affiliation (alliance, corporation, faction)
- update_character_other(force_refresh: bool = False) EveCharacter[source]
Update a characters full data from ESI, with GetCharactersCharacterId, 24 hour cache.
This function doesnt touch Affiliations as thats on a 1hr cache. _we could compare caches_ but i think thats fraught with danger
- class EveCorporationInfo(*args, **kwargs)[source]
A corporation in Eve Online.
- Parameters:
id (AutoField) – Primary key: ID
corporation_id (PositiveIntegerField) – Corporation id
ceo_id (PositiveIntegerField) – Ceo id. Corporation’s CEO ID
creator_id (PositiveIntegerField) – Creator id. Corporation’s creator ID
date_founded (DateField) – Date founded. Corporation’s founding date
description (TextField) – Description. Corporation’s description
home_station_id (PositiveIntegerField) – Home station id. Corporation’s home station ID
member_count (PositiveIntegerField) – Member count. Corporation’s member count
corporation_name (CharField) – Corporation name. Corporation’s name
shares (PositiveBigIntegerField) – Shares. Corporation’s shares
tax_rate (FloatField) – Tax rate. Corporation’s tax rate
corporation_ticker (CharField) – Corporation ticker. Corporation’s short name
url (URLField) – Url. Corporation’s URL
war_eligible (BooleanField) – War eligible. Corporation’s war eligibility
last_updated (DateTimeField) – Last updated. Last time the corporation’s details were updated, (GetCorporationsCorporationId), 1 hr Cache
Relationship fields:
- Parameters:
alliance (
ForeignKeytoEveAllianceInfo) – Alliance (related name:evecorporationinfo)faction (
ForeignKeytoEveFactionInfo) – Faction (related name:evecorporationinfo)
Reverse relationships:
- Parameters:
state (Reverse
ManyToManyFieldfromState) – All states of this corporation (related name ofmember_corporations)managedcorpgroup (Reverse
ForeignKeyfromManagedCorpGroup) – All managed corp groups of this corporation (related name ofcorp)applicationform (Reverse
OneToOneFieldfromApplicationForm) – The application form of this corporation (related name ofcorp)timer (Reverse
ForeignKeyfromTimer) – All timers of this corporation (related name ofeve_corp)corpstats (Reverse
OneToOneFieldfromCorpStats) – The Corp Stat of this corporation (related name ofcorp)
- class EveFactionInfo(*args, **kwargs)[source]
A faction in Eve Online.
- Parameters:
id (AutoField) – Primary key: ID
faction_id (PositiveIntegerField) – Faction id
corporation_id (PositiveIntegerField) – Corporation id
description (TextField) – Description
militia_corporation_id (PositiveIntegerField) – Militia corporation id
faction_name (CharField) – Faction name
size_factor (PositiveSmallIntegerField) – Size factor
solar_system_id (PositiveIntegerField) – Solar system id
station_count (PositiveIntegerField) – Station count
station_system_count (PositiveIntegerField) – Station system count
last_updated (DateTimeField) – Last updated. Last time the faction’s details were updated, (GetUniverseFactions), 24 hr Cache
Reverse relationships:
- Parameters:
state (Reverse
ManyToManyFieldfromState) – All states of this Faction (related name ofmember_factions)alliance (Reverse
ForeignKeyfromEveAllianceInfo) – All alliance of this Faction (related name offaction)evecorporationinfo (Reverse
ForeignKeyfromEveCorporationInfo) – All corporations of this Faction (related name offaction)
- property corporation: EveCorporationInfo | None
Return corporation of this faction or None if not found.
- static generic_logo_url(faction_id: int, size: int = 32) str[source]
image URL for the given faction ID
- property militia_corporation: EveCorporationInfo | None
Return militia corporation of this faction or None if not found.