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:

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:

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

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

A corporation in Eve Online.

Parameters:

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.