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(id, alliance_id, alliance_name, alliance_ticker, executor_corp_id)
exception DoesNotExist
exception MultipleObjectsReturned
alliance_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

alliance_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

alliance_ticker

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

evecorporationinfo_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

executor_corp_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

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

image URL for the given alliance ID

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

logo_url(size: int = 32)str

image URL of this alliance

property logo_url_128

image URL for this alliance

property logo_url_256

image URL for this alliance

property logo_url_32

image URL for this alliance

property logo_url_64

image URL for this alliance

managedalliancegroup_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

populate_alliance()
state_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

update_alliance(alliance: Optional[allianceauth.eveonline.providers.Alliance] = None)
class EveCharacter(*args, **kwargs)

Character in Eve Online

exception DoesNotExist
exception MultipleObjectsReturned
property alliance

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

alliance_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

alliance_logo_url(size=32)str

image URL for alliance of this character or empty string

property alliance_logo_url_128

image URL for alliance of this character or empty string

property alliance_logo_url_256

image URL for alliance of this character or empty string

property alliance_logo_url_32

image URL for alliance of this character or empty string

property alliance_logo_url_64

image URL for alliance of this character or empty string

alliance_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

alliance_ticker

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

application_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

character_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

character_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

character_ownership

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

property corporation

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

corporation_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

corporation_logo_url(size=32)str

image URL for corporation of this character

property corporation_logo_url_128

image URL for corporation of this character

property corporation_logo_url_256

image URL for corporation of this character

property corporation_logo_url_32

image URL for corporation of this character

property corporation_logo_url_64

image URL for corporation of this character

corporation_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

corporation_ticker

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property faction

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

faction_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

faction_logo_url(size=32)str

image URL for alliance of this character or empty string

property faction_logo_url_128

image URL for alliance of this character or empty string

property faction_logo_url_256

image URL for alliance of this character or empty string

property faction_logo_url_32

image URL for alliance of this character or empty string

property faction_logo_url_64

image URL for alliance of this character or empty string

faction_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

fat_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

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

image URL for the given character ID

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

property is_biomassed

Whether this character is dead or not.

optimer_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

ownership_records

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

portrait_url(size=32)str

image URL for this character

property portrait_url_128

image URL for this character

property portrait_url_256

image URL for this character

property portrait_url_32

image URL for this character

property portrait_url_64

image URL for this character

srpfleetmain_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

srpuserrequest_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

state_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

timer_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

update_character(character: Optional[allianceauth.eveonline.providers.Character] = None)
userprofile

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

class EveCorporationInfo(id, corporation_id, corporation_name, corporation_ticker, member_count, ceo_id, alliance)
exception DoesNotExist
exception MultipleObjectsReturned
alliance

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

alliance_id
applicationform

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

ceo_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

corporation_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

corporation_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

corporation_ticker

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

corpstats

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

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

image URL for the given corporation ID

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

logo_url(size: int = 32)str

image URL for this corporation

property logo_url_128

image URL for this corporation

property logo_url_256

image URL for this corporation

property logo_url_32

image URL for this corporation

property logo_url_64

image URL for this corporation

managedcorpgroup_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

member_count

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

state_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

timer_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

update_corporation(corp: Optional[allianceauth.eveonline.providers.Corporation] = None)
class EveFactionInfo(id, faction_id, faction_name)
exception DoesNotExist
exception MultipleObjectsReturned
faction_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

faction_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

static generic_logo_url(faction_id: int, size: int = 32)str

image URL for the given faction ID

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

logo_url(size: int = 32)str

image URL of this faction

property logo_url_128

image URL for this faction

property logo_url_256

image URL for this faction

property logo_url_32

image URL for this faction

property logo_url_64

image URL for this faction

state_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.