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 (ForeignKey to EveFactionInfo) – Faction. Alliance’s faction ID (related name: alliance)

Reverse relationships:

Parameters:
  • state (Reverse ManyToManyField from State) – All states of this alliance (related name of member_alliances)

  • evecorporationinfo (Reverse ForeignKey from EveCorporationInfo) – All corporations of this alliance (related name of alliance)

  • managedalliancegroup (Reverse ForeignKey from ManagedAllianceGroup) – All managed alliance groups of this alliance (related name of alliance)

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.

static generic_logo_url(alliance_id: int, size: int = 32) str[source]

image URL for the given alliance ID

logo_url(size: int = 32) str[source]

image URL of this alliance

property logo_url_128: str

image URL for this alliance

property logo_url_256: str

image URL for this alliance

property logo_url_32: str

image URL for this alliance

property logo_url_64: str

image URL for this alliance

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 ManyToManyField from State) – All states of this character (related name of member_characters)

  • userprofile (Reverse OneToOneField from UserProfile) – The user profile of this character (related name of main_character)

  • character_ownership (Reverse OneToOneField from CharacterOwnership) – The character ownership of this character (related name of character)

  • ownership_records (Reverse ForeignKey from OwnershipRecord) – All ownership records of this character (related name of character)

  • application (Reverse ForeignKey from Application) – All applications of this character (related name of reviewer_character)

  • timer (Reverse ForeignKey from Timer) – All timers of this character (related name of eve_character)

  • srpfleetmain (Reverse ForeignKey from SrpFleetMain) – All srp fleet mains of this character (related name of fleet_commander)

  • srpuserrequest (Reverse ForeignKey from SrpUserRequest) – All srp user requests of this character (related name of character)

  • optimer (Reverse ForeignKey from OpTimer) – All op timers of this character (related name of eve_character)

  • fat (Reverse ForeignKey from Fat) – All fats of this character (related name of character)

  • templink (Reverse ForeignKey from TempLink) – All temp links of this character (related name of creator)

  • tempuser (Reverse ForeignKey from TempUser) – All Temp Users of this character (related name of character)

class Gender(*values)[source]
property alliance: EveAllianceInfo | None

Pseudo foreign key from alliance_id to EveAllianceInfo :raises: EveAllianceInfo.DoesNotExist :return: EveAllianceInfo or None

alliance_logo_url(size=32) str[source]

image URL for alliance of this character or empty string

property alliance_logo_url_128: str

image URL for alliance of this character or empty string

property alliance_logo_url_256: str

image URL for alliance of this character or empty string

property alliance_logo_url_32: str

image URL for alliance of this character or empty string

property alliance_logo_url_64: str

image URL for alliance of this character or empty string

property corporation: EveCorporationInfo

Pseudo foreign key from corporation_id to EveCorporationInfo :raises: EveCorporationInfo.DoesNotExist :return: EveCorporationInfo

corporation_logo_url(size=32) str[source]

image URL for corporation of this character

property corporation_logo_url_128: str

image URL for corporation of this character

property corporation_logo_url_256: str

image URL for corporation of this character

property corporation_logo_url_32: str

image URL for corporation of this character

property corporation_logo_url_64: str

image URL for corporation of this character

property faction: EveFactionInfo | None

Pseudo foreign key from faction_id to EveFactionInfo :raises: EveFactionInfo.DoesNotExist :return: EveFactionInfo

faction_logo_url(size=32) str[source]

image URL for alliance of this character or empty string

property faction_logo_url_128: str

image URL for alliance of this character or empty string

property faction_logo_url_256: str

image URL for alliance of this character or empty string

property faction_logo_url_32: str

image URL for alliance of this character or empty string

property faction_logo_url_64: str

image URL for alliance of this character or empty string

static generic_portrait_url(character_id: int, size: int = 32) str[source]

image URL for the given character ID

property is_biomassed: bool

Whether this character is dead or not.

portrait_url(size=32) str[source]

image URL for this character

property portrait_url_128: str

image URL for this character

property portrait_url_256: str

image URL for this character

property portrait_url_32: str

image URL for this character

property portrait_url_64: str

image URL for this character

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:

Reverse relationships:

Parameters:
  • state (Reverse ManyToManyField from State) – All states of this corporation (related name of member_corporations)

  • managedcorpgroup (Reverse ForeignKey from ManagedCorpGroup) – All managed corp groups of this corporation (related name of corp)

  • applicationform (Reverse OneToOneField from ApplicationForm) – The application form of this corporation (related name of corp)

  • timer (Reverse ForeignKey from Timer) – All timers of this corporation (related name of eve_corp)

  • corpstats (Reverse OneToOneField from CorpStats) – The Corp Stat of this corporation (related name of corp)

static generic_logo_url(corporation_id: int, size: int = 32) str[source]

image URL for the given corporation ID

logo_url(size: int = 32) str[source]

image URL for this corporation

property logo_url_128: str

image URL for this corporation

property logo_url_256: str

image URL for this corporation

property logo_url_32: str

image URL for this corporation

property logo_url_64: str

image URL for this corporation

class EveFactionInfo(*args, **kwargs)[source]

A faction in Eve Online.

Parameters:

Reverse relationships:

Parameters:
  • state (Reverse ManyToManyField from State) – All states of this Faction (related name of member_factions)

  • alliance (Reverse ForeignKey from EveAllianceInfo) – All alliance of this Faction (related name of faction)

  • evecorporationinfo (Reverse ForeignKey from EveCorporationInfo) – All corporations of this Faction (related name of faction)

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

logo_url(size: int = 32) str[source]

image URL of this faction

property logo_url_128: str

image URL for this faction

property logo_url_256: str

image URL for this faction

property logo_url_32: str

image URL for this faction

property logo_url_64: str

image URL for this faction

property militia_corporation: EveCorporationInfo | None

Return militia corporation of this faction or None if not found.