API¶
This chapter contains the developer reference documentation of the public API for django-eveuniverse consisting of all models, their manager methods and helpers.
Models¶
Models for Eve Universe.
- class EveAncestry(*args, **kwargs)[source]¶
An ancestry in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
description (TextField) – Description
icon_id (PositiveIntegerField) – Icon id
short_description (TextField) – Short description
Relationship fields:
- Parameters:
eve_bloodline (
ForeignKeytoEveBloodline) – Eve bloodline (related name:eve_bloodlines)
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- eve_bloodline¶
Type:
ForeignKeytoEveBloodlineEve bloodline (related name:
eve_bloodlines)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')
- eve_bloodline_id¶
Internal field, use
eve_bloodlineinstead.
- icon_id¶
Type:
PositiveIntegerFieldIcon id
A wrapper for a deferred-loading field. When the value is read from this
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- class EveAsteroidBelt(*args, **kwargs)[source]¶
An asteroid belt in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
position_x (FloatField) – Position x. x position in the solar system
position_y (FloatField) – Position y. y position in the solar system
position_z (FloatField) – Position z. z position in the solar system
Relationship fields:
- Parameters:
eve_planet (
ForeignKeytoEvePlanet) – Eve planet (related name:eve_asteroid_belts)
- eve_planet¶
Type:
ForeignKeytoEvePlanetEve planet (related name:
eve_asteroid_belts)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')
- eve_planet_id¶
Internal field, use
eve_planetinstead.
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.universe.EveAsteroidBeltManager object>¶
- position_x¶
Type:
FloatFieldPosition x. x position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_y¶
Type:
FloatFieldPosition y. y position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_z¶
Type:
FloatFieldPosition z. z position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- class EveBloodline(*args, **kwargs)[source]¶
A bloodline in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
charisma (PositiveIntegerField) – Charisma
corporation_id (PositiveIntegerField) – Corporation id
description (TextField) – Description
intelligence (PositiveIntegerField) – Intelligence
memory (PositiveIntegerField) – Memory
perception (PositiveIntegerField) – Perception
willpower (PositiveIntegerField) – Willpower
Relationship fields:
- Parameters:
eve_race (
ForeignKeytoEveRace) – Eve race (related name:eve_bloodlines)eve_ship_type (
ForeignKeytoEveType) – Eve ship type (related name:eve_bloodlines)
Reverse relationships:
- Parameters:
eve_bloodlines (Reverse
ForeignKeyfromEveAncestry) – All eve bloodlines of this eve bloodline (related name ofeve_bloodline)
- charisma¶
Type:
PositiveIntegerFieldCharisma
A wrapper for a deferred-loading field. When the value is read from this
- corporation_id¶
Type:
PositiveIntegerFieldCorporation id
A wrapper for a deferred-loading field. When the value is read from this
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- eve_bloodlines¶
Type: Reverse
ForeignKeyfromEveAncestryAll eve bloodlines of this eve bloodline (related name of
eve_bloodline)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_race¶
Type:
ForeignKeytoEveRaceEve race (related name:
eve_bloodlines)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')
- eve_ship_type¶
Type:
ForeignKeytoEveTypeEve ship type (related name:
eve_bloodlines)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')
- eve_ship_type_id¶
Internal field, use
eve_ship_typeinstead.
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- intelligence¶
Type:
PositiveIntegerFieldIntelligence
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- memory¶
Type:
PositiveIntegerFieldMemory
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- perception¶
Type:
PositiveIntegerFieldPerception
A wrapper for a deferred-loading field. When the value is read from this
- willpower¶
Type:
PositiveIntegerFieldWillpower
A wrapper for a deferred-loading field. When the value is read from this
- class EveCategory(*args, **kwargs)[source]¶
An inventory category in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
published (BooleanField) – Published
Reverse relationships:
- Parameters:
eve_groups (Reverse
ForeignKeyfromEveGroup) – All eve groups of this eve category (related name ofeve_category)
- eve_groups¶
Type: Reverse
ForeignKeyfromEveGroupAll eve groups of this eve category (related name of
eve_category)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- published¶
Type:
BooleanFieldPublished
A wrapper for a deferred-loading field. When the value is read from this
- class EveConstellation(*args, **kwargs)[source]¶
A star constellation in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
position_x (FloatField) – Position x. x position in the solar system
position_y (FloatField) – Position y. y position in the solar system
position_z (FloatField) – Position z. z position in the solar system
Relationship fields:
- Parameters:
eve_region (
ForeignKeytoEveRegion) – Eve region (related name:eve_constellations)
Reverse relationships:
- Parameters:
eve_solarsystems (Reverse
ForeignKeyfromEveSolarSystem) – All eve solarsystems of this eve constellation (related name ofeve_constellation)
- classmethod eve_entity_category() str[source]¶
Return the EveEntity category of this model if one exists else an empty string.
- eve_region¶
Type:
ForeignKeytoEveRegionEve region (related name:
eve_constellations)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')
- eve_region_id¶
Internal field, use
eve_regioninstead.
- eve_solarsystems¶
Type: Reverse
ForeignKeyfromEveSolarSystemAll eve solarsystems of this eve constellation (related name of
eve_constellation)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- position_x¶
Type:
FloatFieldPosition x. x position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_y¶
Type:
FloatFieldPosition y. y position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_z¶
Type:
FloatFieldPosition z. z position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- class EveDogmaAttribute(*args, **kwargs)[source]¶
A dogma attribute in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
default_value (FloatField) – Default value
description (TextField) – Description
display_name (CharField) – Display name
high_is_good (BooleanField) – High is good
icon_id (PositiveIntegerField) – Icon id
published (BooleanField) – Published
stackable (BooleanField) – Stackable
Relationship fields:
- Parameters:
eve_unit (
ForeignKeytoEveUnit) – Eve unit (related name:eve_units)
Reverse relationships:
- Parameters:
discharge_attribute_effects (Reverse
ForeignKeyfromEveDogmaEffect) – All discharge attribute effects of this eve dogma attribute (related name ofdischarge_attribute)duration_attribute_effects (Reverse
ForeignKeyfromEveDogmaEffect) – All duration attribute effects of this eve dogma attribute (related name ofduration_attribute)falloff_attribute_effects (Reverse
ForeignKeyfromEveDogmaEffect) – All falloff attribute effects of this eve dogma attribute (related name offalloff_attribute)range_attribute_effects (Reverse
ForeignKeyfromEveDogmaEffect) – All range attribute effects of this eve dogma attribute (related name ofrange_attribute)tracking_speed_attribute_effects (Reverse
ForeignKeyfromEveDogmaEffect) – All tracking speed attribute effects of this eve dogma attribute (related name oftracking_speed_attribute)modified_attribute_modifiers (Reverse
ForeignKeyfromEveDogmaEffectModifier) – All modified attribute modifiers of this eve dogma attribute (related name ofmodified_attribute)modifying_attribute_modifiers (Reverse
ForeignKeyfromEveDogmaEffectModifier) – All modifying attribute modifiers of this eve dogma attribute (related name ofmodifying_attribute)eve_type_dogma_attributes (Reverse
ForeignKeyfromEveTypeDogmaAttribute) – All eve type dogma attributes of this eve dogma attribute (related name ofeve_dogma_attribute)
- default_value¶
Type:
FloatFieldDefault value
A wrapper for a deferred-loading field. When the value is read from this
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- discharge_attribute_effects¶
Type: Reverse
ForeignKeyfromEveDogmaEffectAll discharge attribute effects of this eve dogma attribute (related name of
discharge_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- display_name¶
Type:
CharFieldDisplay name
A wrapper for a deferred-loading field. When the value is read from this
- duration_attribute_effects¶
Type: Reverse
ForeignKeyfromEveDogmaEffectAll duration attribute effects of this eve dogma attribute (related name of
duration_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_type_dogma_attributes¶
Type: Reverse
ForeignKeyfromEveTypeDogmaAttributeAll eve type dogma attributes of this eve dogma attribute (related name of
eve_dogma_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_unit¶
Type:
ForeignKeytoEveUnitEve unit (related name:
eve_units)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')
- falloff_attribute_effects¶
Type: Reverse
ForeignKeyfromEveDogmaEffectAll falloff attribute effects of this eve dogma attribute (related name of
falloff_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- high_is_good¶
Type:
BooleanFieldHigh is good
A wrapper for a deferred-loading field. When the value is read from this
- icon_id¶
Type:
PositiveIntegerFieldIcon id
A wrapper for a deferred-loading field. When the value is read from this
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- modified_attribute_modifiers¶
Type: Reverse
ForeignKeyfromEveDogmaEffectModifierAll modified attribute modifiers of this eve dogma attribute (related name of
modified_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- modifying_attribute_modifiers¶
Type: Reverse
ForeignKeyfromEveDogmaEffectModifierAll modifying attribute modifiers of this eve dogma attribute (related name of
modifying_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- published¶
Type:
BooleanFieldPublished
A wrapper for a deferred-loading field. When the value is read from this
- range_attribute_effects¶
Type: Reverse
ForeignKeyfromEveDogmaEffectAll range attribute effects of this eve dogma attribute (related name of
range_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- stackable¶
Type:
BooleanFieldStackable
A wrapper for a deferred-loading field. When the value is read from this
- tracking_speed_attribute_effects¶
Type: Reverse
ForeignKeyfromEveDogmaEffectAll tracking speed attribute effects of this eve dogma attribute (related name of
tracking_speed_attribute)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- class EveDogmaEffect(*args, **kwargs)[source]¶
A dogma effect in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
name (CharField) – Name. Eve Online name
description (TextField) – Description
disallow_auto_repeat (BooleanField) – Disallow auto repeat
display_name (CharField) – Display name
effect_category (PositiveIntegerField) – Effect category
electronic_chance (BooleanField) – Electronic chance
icon_id (PositiveIntegerField) – Icon id
is_assistance (BooleanField) – Is assistance
is_offensive (BooleanField) – Is offensive
is_warp_safe (BooleanField) – Is warp safe
post_expression (PositiveIntegerField) – Post expression
pre_expression (PositiveIntegerField) – Pre expression
published (BooleanField) – Published
range_chance (BooleanField) – Range chance
Relationship fields:
- Parameters:
discharge_attribute (
ForeignKeytoEveDogmaAttribute) – Discharge attribute (related name:discharge_attribute_effects)duration_attribute (
ForeignKeytoEveDogmaAttribute) – Duration attribute (related name:duration_attribute_effects)falloff_attribute (
ForeignKeytoEveDogmaAttribute) – Falloff attribute (related name:falloff_attribute_effects)range_attribute (
ForeignKeytoEveDogmaAttribute) – Range attribute (related name:range_attribute_effects)tracking_speed_attribute (
ForeignKeytoEveDogmaAttribute) – Tracking speed attribute (related name:tracking_speed_attribute_effects)
Reverse relationships:
- Parameters:
modifiers (Reverse
ForeignKeyfromEveDogmaEffectModifier) – All modifiers of this eve dogma effect (related name ofeve_dogma_effect)modifying_effect_modifiers (Reverse
ForeignKeyfromEveDogmaEffectModifier) – All modifying effect modifiers of this eve dogma effect (related name ofmodifying_effect)eve_type_dogma_effects (Reverse
ForeignKeyfromEveTypeDogmaEffect) – All eve type dogma effects of this eve dogma effect (related name ofeve_dogma_effect)
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- disallow_auto_repeat¶
Type:
BooleanFieldDisallow auto repeat
A wrapper for a deferred-loading field. When the value is read from this
- discharge_attribute¶
Type:
ForeignKeytoEveDogmaAttributeDischarge attribute (related name:
discharge_attribute_effects)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')
- discharge_attribute_id¶
Internal field, use
discharge_attributeinstead.
- display_name¶
Type:
CharFieldDisplay name
A wrapper for a deferred-loading field. When the value is read from this
- duration_attribute¶
Type:
ForeignKeytoEveDogmaAttributeDuration attribute (related name:
duration_attribute_effects)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')
- duration_attribute_id¶
Internal field, use
duration_attributeinstead.
- effect_category¶
Type:
PositiveIntegerFieldEffect category
A wrapper for a deferred-loading field. When the value is read from this
- electronic_chance¶
Type:
BooleanFieldElectronic chance
A wrapper for a deferred-loading field. When the value is read from this
- eve_type_dogma_effects¶
Type: Reverse
ForeignKeyfromEveTypeDogmaEffectAll eve type dogma effects of this eve dogma effect (related name of
eve_dogma_effect)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- falloff_attribute¶
Type:
ForeignKeytoEveDogmaAttributeFalloff attribute (related name:
falloff_attribute_effects)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')
- falloff_attribute_id¶
Internal field, use
falloff_attributeinstead.
- icon_id¶
Type:
PositiveIntegerFieldIcon id
A wrapper for a deferred-loading field. When the value is read from this
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- is_assistance¶
Type:
BooleanFieldIs assistance
A wrapper for a deferred-loading field. When the value is read from this
- is_offensive¶
Type:
BooleanFieldIs offensive
A wrapper for a deferred-loading field. When the value is read from this
- is_warp_safe¶
Type:
BooleanFieldIs warp safe
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- modifiers¶
Type: Reverse
ForeignKeyfromEveDogmaEffectModifierAll modifiers of this eve dogma effect (related name of
eve_dogma_effect)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- modifying_effect_modifiers¶
Type: Reverse
ForeignKeyfromEveDogmaEffectModifierAll modifying effect modifiers of this eve dogma effect (related name of
modifying_effect)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- post_expression¶
Type:
PositiveIntegerFieldPost expression
A wrapper for a deferred-loading field. When the value is read from this
- pre_expression¶
Type:
PositiveIntegerFieldPre expression
A wrapper for a deferred-loading field. When the value is read from this
- published¶
Type:
BooleanFieldPublished
A wrapper for a deferred-loading field. When the value is read from this
- range_attribute¶
Type:
ForeignKeytoEveDogmaAttributeRange attribute (related name:
range_attribute_effects)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')
- range_attribute_id¶
Internal field, use
range_attributeinstead.
- range_chance¶
Type:
BooleanFieldRange chance
A wrapper for a deferred-loading field. When the value is read from this
- tracking_speed_attribute¶
Type:
ForeignKeytoEveDogmaAttributeTracking speed attribute (related name:
tracking_speed_attribute_effects)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')
- tracking_speed_attribute_id¶
Internal field, use
tracking_speed_attributeinstead.
- class EveDogmaEffectModifier(*args, **kwargs)[source]¶
A modifier for a dogma effect in Eve Online
- Parameters:
id (AutoField) – Primary key: ID
domain (CharField) – Domain
func (CharField) – Func
operator (IntegerField) – Operator
Relationship fields:
- Parameters:
eve_dogma_effect (
ForeignKeytoEveDogmaEffect) – Eve dogma effect (related name:modifiers)modified_attribute (
ForeignKeytoEveDogmaAttribute) – Modified attribute (related name:modified_attribute_modifiers)modifying_attribute (
ForeignKeytoEveDogmaAttribute) – Modifying attribute (related name:modifying_attribute_modifiers)modifying_effect (
ForeignKeytoEveDogmaEffect) – Modifying effect (related name:modifying_effect_modifiers)
- domain¶
Type:
CharFieldDomain
A wrapper for a deferred-loading field. When the value is read from this
- eve_dogma_effect¶
Type:
ForeignKeytoEveDogmaEffectEve dogma effect (related name:
modifiers)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')
- eve_dogma_effect_id¶
Internal field, use
eve_dogma_effectinstead.
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- modified_attribute¶
Type:
ForeignKeytoEveDogmaAttributeModified attribute (related name:
modified_attribute_modifiers)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')
- modified_attribute_id¶
Internal field, use
modified_attributeinstead.
- modifying_attribute¶
Type:
ForeignKeytoEveDogmaAttributeModifying attribute (related name:
modifying_attribute_modifiers)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')
- modifying_attribute_id¶
Internal field, use
modifying_attributeinstead.
- modifying_effect¶
Type:
ForeignKeytoEveDogmaEffectModifying effect (related name:
modifying_effect_modifiers)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')
- modifying_effect_id¶
Internal field, use
modifying_effectinstead.
- objects = <django.db.models.Manager object>¶
- operator¶
Type:
IntegerFieldOperator
A wrapper for a deferred-loading field. When the value is read from this
- class EveEntity(*args, **kwargs)[source]¶
An Eve object from one of the categories supported by ESI’s /universe/names/ endpoint:
alliance, character, constellation, faction, type, region, solar system, station
This is a special model model dedicated to quick resolution of Eve IDs to names and their categories, e.g. for characters. See also manager methods.
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
category (CharField) – Category
- CATEGORY_ALLIANCE = 'alliance'¶
- CATEGORY_CHARACTER = 'character'¶
- CATEGORY_CHOICES = (('alliance', 'alliance'), ('character', 'character'), ('constellation', 'constellation'), ('corporation', 'corporation'), ('faction', 'faction'), ('inventory_type', 'inventory_type'), ('region', 'region'), ('solar_system', 'solar_system'), ('station', 'station'))¶
- CATEGORY_CONSTELLATION = 'constellation'¶
- CATEGORY_CORPORATION = 'corporation'¶
- CATEGORY_FACTION = 'faction'¶
- CATEGORY_INVENTORY_TYPE = 'inventory_type'¶
- CATEGORY_REGION = 'region'¶
- CATEGORY_SOLAR_SYSTEM = 'solar_system'¶
- CATEGORY_STATION = 'station'¶
- category¶
Type:
CharFieldCategory
Choices:
alliancecharacterconstellationcorporationfactioninventory_typeregionsolar_systemstation
A wrapper for a deferred-loading field. When the value is read from this
- get_category_display(*, field=<django.db.models.CharField: category>)¶
Shows the label of the
category. Seeget_FOO_display()for more information.
- icon_url(size: int = 64) str[source]¶
Create image URL for related EVE icon
- Parameters:
size – size of image file in pixels, allowed values: 32, 64, 128, 256, 512
- Returns:
strings with image URL
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- classmethod is_npc_id(id: int) bool[source]¶
True if this entity ID is an NPC character or NPC corporation, else False.
- property is_npc_starter_corporation: bool¶
Reports whether this entity is an NPC starter corporation.
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- objects = <django.db.models.manager.EveEntityManagerBaseFromEveEntityQuerySet object>¶
- class EveFaction(*args, **kwargs)[source]¶
A faction in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
corporation_id (PositiveIntegerField) – Corporation id
description (TextField) – Description
is_unique (BooleanField) – Is unique
militia_corporation_id (PositiveIntegerField) – Militia corporation id
size_factor (FloatField) – Size factor
station_count (PositiveIntegerField) – Station count
station_system_count (PositiveIntegerField) – Station system count
Relationship fields:
- Parameters:
eve_solar_system (
ForeignKeytoEveSolarSystem) – Eve solar system (related name:eve_factions)
- corporation_id¶
Type:
PositiveIntegerFieldCorporation id
A wrapper for a deferred-loading field. When the value is read from this
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- classmethod eve_entity_category() str[source]¶
Return the EveEntity category of this model if one exists else an empty string.
- eve_solar_system¶
Type:
ForeignKeytoEveSolarSystemEve solar system (related name:
eve_factions)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')
- eve_solar_system_id¶
Internal field, use
eve_solar_systeminstead.
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- is_unique¶
Type:
BooleanFieldIs unique
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- logo_url(size=64) str[source]¶
returns an image URL for this faction
- Parameters:
size – optional size of the image
- militia_corporation_id¶
Type:
PositiveIntegerFieldMilitia corporation id
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- size_factor¶
Type:
FloatFieldSize factor
A wrapper for a deferred-loading field. When the value is read from this
- station_count¶
Type:
PositiveIntegerFieldStation count
A wrapper for a deferred-loading field. When the value is read from this
- station_system_count¶
Type:
PositiveIntegerFieldStation system count
A wrapper for a deferred-loading field. When the value is read from this
- class EveGraphic(*args, **kwargs)[source]¶
A graphic in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
collision_file (CharField) – Collision file
graphic_file (CharField) – Graphic file
icon_folder (CharField) – Icon folder
sof_dna (CharField) – Sof dna
sof_fation_name (CharField) – Sof fation name
sof_hull_name (CharField) – Sof hull name
sof_race_name (CharField) – Sof race name
Reverse relationships:
- Parameters:
eve_types (Reverse
ForeignKeyfromEveType) – All eve types of this eve graphic (related name ofeve_graphic)
- FILENAME_MAX_CHARS = 255¶
- collision_file¶
Type:
CharFieldCollision file
A wrapper for a deferred-loading field. When the value is read from this
- eve_types¶
Type: Reverse
ForeignKeyfromEveTypeAll eve types of this eve graphic (related name of
eve_graphic)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- graphic_file¶
Type:
CharFieldGraphic file
A wrapper for a deferred-loading field. When the value is read from this
- icon_folder¶
Type:
CharFieldIcon folder
A wrapper for a deferred-loading field. When the value is read from this
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- sof_dna¶
Type:
CharFieldSof dna
A wrapper for a deferred-loading field. When the value is read from this
- sof_fation_name¶
Type:
CharFieldSof fation name
A wrapper for a deferred-loading field. When the value is read from this
- class EveGroup(*args, **kwargs)[source]¶
An inventory group in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
published (BooleanField) – Published
Relationship fields:
- Parameters:
eve_category (
ForeignKeytoEveCategory) – Eve category (related name:eve_groups)
Reverse relationships:
- Parameters:
eve_types (Reverse
ForeignKeyfromEveType) – All eve types of this eve group (related name ofeve_group)
- eve_category¶
Type:
ForeignKeytoEveCategoryEve category (related name:
eve_groups)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')
- eve_category_id¶
Internal field, use
eve_categoryinstead.
- eve_types¶
Type: Reverse
ForeignKeyfromEveTypeAll eve types of this eve group (related name of
eve_group)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- published¶
Type:
BooleanFieldPublished
A wrapper for a deferred-loading field. When the value is read from this
- class EveIndustryActivity(*args, **kwargs)[source]¶
An industry activity in Eve Online.
- Parameters:
id (IntegerField) – Primary key: Id
description (CharField) – Description
name (CharField) – Name
Reverse relationships:
- Parameters:
eveindustryactivityduration (Reverse
ForeignKeyfromEveIndustryActivityDuration) – All eve industry activity durations of this eve industry activity (related name ofactivity)eveindustryactivitymaterial (Reverse
ForeignKeyfromEveIndustryActivityMaterial) – All eve industry activity materials of this eve industry activity (related name ofactivity)eveindustryactivityproduct (Reverse
ForeignKeyfromEveIndustryActivityProduct) – All eve industry activity products of this eve industry activity (related name ofactivity)eveindustryactivityskill (Reverse
ForeignKeyfromEveIndustryActivitySkill) – All eve industry activity skills of this eve industry activity (related name ofactivity)
- description¶
Type:
CharFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- eveindustryactivityduration_set¶
Type: Reverse
ForeignKeyfromEveIndustryActivityDurationAll eve industry activity durations of this eve industry activity (related name of
activity)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eveindustryactivitymaterial_set¶
Type: Reverse
ForeignKeyfromEveIndustryActivityMaterialAll eve industry activity materials of this eve industry activity (related name of
activity)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eveindustryactivityproduct_set¶
Type: Reverse
ForeignKeyfromEveIndustryActivityProductAll eve industry activity products of this eve industry activity (related name of
activity)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eveindustryactivityskill_set¶
Type: Reverse
ForeignKeyfromEveIndustryActivitySkillAll eve industry activity skills of this eve industry activity (related name of
activity)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
IntegerFieldPrimary key: Id
A wrapper for a deferred-loading field. When the value is read from this
- objects = <django.db.models.Manager object>¶
- class EveIndustryActivityDuration(*args, **kwargs)[source]¶
Number of seconds it takes to create a blueprint product.
- Parameters:
id (AutoField) – Primary key: ID
time (PositiveIntegerField) – Time
Relationship fields:
- Parameters:
eve_type (
ForeignKeytoEveType) – Eve type. Blueprint type (related name:industry_durations)activity (
ForeignKeytoEveIndustryActivity) – Activity (related name:eveindustryactivityduration)
- activity¶
Type:
ForeignKeytoEveIndustryActivityActivity (related name:
eveindustryactivityduration)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')
- eve_type¶
Type:
ForeignKeytoEveTypeEve type. Blueprint type (related name:
industry_durations)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')
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.sde.EveIndustryActivityDurationManager object>¶
- time¶
Type:
PositiveIntegerFieldTime
A wrapper for a deferred-loading field. When the value is read from this
- class EveIndustryActivityMaterial(*args, **kwargs)[source]¶
The materials and amounts required to create a blueprint product.
- Parameters:
id (AutoField) – Primary key: ID
quantity (PositiveIntegerField) – Quantity
Relationship fields:
- Parameters:
eve_type (
ForeignKeytoEveType) – Eve type. Blueprint type (related name:industry_materials)activity (
ForeignKeytoEveIndustryActivity) – Activity (related name:eveindustryactivitymaterial)material_eve_type (
ForeignKeytoEveType) – Material eve type. Material required type (related name:+)
- activity¶
Type:
ForeignKeytoEveIndustryActivityActivity (related name:
eveindustryactivitymaterial)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')
- eve_type¶
Type:
ForeignKeytoEveTypeEve type. Blueprint type (related name:
industry_materials)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')
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- material_eve_type¶
Type:
ForeignKeytoEveTypeMaterial eve type. Material required type (related name:
+)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')
- material_eve_type_id¶
Internal field, use
material_eve_typeinstead.
- objects = <eveuniverse.managers.sde.EveIndustryActivityMaterialManager object>¶
- quantity¶
Type:
PositiveIntegerFieldQuantity
A wrapper for a deferred-loading field. When the value is read from this
- class EveIndustryActivityProduct(*args, **kwargs)[source]¶
Quantities of products for blueprints.
- Parameters:
id (AutoField) – Primary key: ID
quantity (PositiveIntegerField) – Quantity
Relationship fields:
- Parameters:
eve_type (
ForeignKeytoEveType) – Eve type. Blueprint type (related name:industry_products)activity (
ForeignKeytoEveIndustryActivity) – Activity (related name:eveindustryactivityproduct)product_eve_type (
ForeignKeytoEveType) – Product eve type. Result type (related name:+)
- activity¶
Type:
ForeignKeytoEveIndustryActivityActivity (related name:
eveindustryactivityproduct)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')
- eve_type¶
Type:
ForeignKeytoEveTypeEve type. Blueprint type (related name:
industry_products)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')
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.sde.EveIndustryActivityProductManager object>¶
- product_eve_type¶
Type:
ForeignKeytoEveTypeProduct eve type. Result type (related name:
+)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')
- product_eve_type_id¶
Internal field, use
product_eve_typeinstead.
- quantity¶
Type:
PositiveIntegerFieldQuantity
A wrapper for a deferred-loading field. When the value is read from this
- class EveIndustryActivitySkill(*args, **kwargs)[source]¶
Levels of skills required for blueprint run.
- Parameters:
id (AutoField) – Primary key: ID
level (PositiveIntegerField) – Level
Relationship fields:
- Parameters:
eve_type (
ForeignKeytoEveType) – Eve type. Blueprint type (related name:industry_skills)activity (
ForeignKeytoEveIndustryActivity) – Activity (related name:eveindustryactivityskill)skill_eve_type (
ForeignKeytoEveType) – Skill eve type. Skill book type (related name:+)
- activity¶
Type:
ForeignKeytoEveIndustryActivityActivity (related name:
eveindustryactivityskill)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')
- eve_type¶
Type:
ForeignKeytoEveTypeEve type. Blueprint type (related name:
industry_skills)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')
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- level¶
Type:
PositiveIntegerFieldLevel
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.sde.EveIndustryActivitySkillManager object>¶
- skill_eve_type¶
Type:
ForeignKeytoEveTypeSkill eve type. Skill book type (related name:
+)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')
- skill_eve_type_id¶
Internal field, use
skill_eve_typeinstead.
- class EveMarketGroup(*args, **kwargs)[source]¶
A market group in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
description (TextField) – Description
Relationship fields:
- Parameters:
parent_market_group (
ForeignKeytoEveMarketGroup) – Parent market group (related name:market_group_children)
Reverse relationships:
- Parameters:
market_group_children (Reverse
ForeignKeyfromEveMarketGroup) – All market group children of this eve market group (related name ofparent_market_group)eve_types (Reverse
ForeignKeyfromEveType) – All eve types of this eve market group (related name ofeve_market_group)
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- eve_types¶
Type: Reverse
ForeignKeyfromEveTypeAll eve types of this eve market group (related name of
eve_market_group)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- market_group_children¶
Type: Reverse
ForeignKeyfromEveMarketGroupAll market group children of this eve market group (related name of
parent_market_group)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- parent_market_group¶
Type:
ForeignKeytoEveMarketGroupParent market group (related name:
market_group_children)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')
- parent_market_group_id¶
Internal field, use
parent_market_groupinstead.
- class EveMarketPrice(*args, **kwargs)[source]¶
A market price of an Eve Online type
- Parameters:
adjusted_price (FloatField) – Adjusted price
average_price (FloatField) – Average price
updated_at (DateTimeField) – Updated at
Relationship fields:
- Parameters:
eve_type (
OneToOneFieldtoEveType) – Primary key: Eve type (related name:market_price)
- DEFAULT_MINUTES_UNTIL_STALE = 60¶
- adjusted_price¶
Type:
FloatFieldAdjusted price
A wrapper for a deferred-loading field. When the value is read from this
- average_price¶
Type:
FloatFieldAverage price
A wrapper for a deferred-loading field. When the value is read from this
- eve_type¶
Type:
OneToOneFieldtoEveTypePrimary key: Eve type (related name:
market_price)Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
- get_next_by_updated_at(*, field=<django.db.models.DateTimeField: updated_at>, is_next=True, **kwargs)¶
Finds next instance based on
updated_at. Seeget_next_by_FOO()for more information.
- get_previous_by_updated_at(*, field=<django.db.models.DateTimeField: updated_at>, is_next=False, **kwargs)¶
Finds previous instance based on
updated_at. Seeget_previous_by_FOO()for more information.
- objects = <eveuniverse.managers.universe.EveMarketPriceManager object>¶
- updated_at¶
Type:
DateTimeFieldUpdated at
A wrapper for a deferred-loading field. When the value is read from this
- class EveMoon(*args, **kwargs)[source]¶
A moon in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
position_x (FloatField) – Position x. x position in the solar system
position_y (FloatField) – Position y. y position in the solar system
position_z (FloatField) – Position z. z position in the solar system
Relationship fields:
- Parameters:
eve_planet (
ForeignKeytoEvePlanet) – Eve planet (related name:eve_moons)
- eve_planet¶
Type:
ForeignKeytoEvePlanetEve planet (related name:
eve_moons)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')
- eve_planet_id¶
Internal field, use
eve_planetinstead.
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.universe.EveMoonManager object>¶
- position_x¶
Type:
FloatFieldPosition x. x position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_y¶
Type:
FloatFieldPosition y. y position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_z¶
Type:
FloatFieldPosition z. z position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- class EvePlanet(*args, **kwargs)[source]¶
A planet in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
position_x (FloatField) – Position x. x position in the solar system
position_y (FloatField) – Position y. y position in the solar system
position_z (FloatField) – Position z. z position in the solar system
enabled_sections (BitField) – Enabled sections. Flags for loadable sections. True if instance was loaded with section.
Relationship fields:
- Parameters:
eve_solar_system (
ForeignKeytoEveSolarSystem) – Eve solar system (related name:eve_planets)eve_type (
ForeignKeytoEveType) – Eve type (related name:eve_planets)
Reverse relationships:
- Parameters:
eve_asteroid_belts (Reverse
ForeignKeyfromEveAsteroidBelt) – All eve asteroid belts of this eve planet (related name ofeve_planet)eve_moons (Reverse
ForeignKeyfromEveMoon) – All eve moons of this eve planet (related name ofeve_planet)
- class Section(value)[source]¶
Sections that can be optionally loaded with each instance
- ASTEROID_BELTS = 'asteroid_belts'¶
- MOONS = 'moons'¶
- enabled_sections = ['asteroid_belts', 'moons']¶
- eve_asteroid_belts¶
Type: Reverse
ForeignKeyfromEveAsteroidBeltAll eve asteroid belts of this eve planet (related name of
eve_planet)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_moons¶
Type: Reverse
ForeignKeyfromEveMoonAll eve moons of this eve planet (related name of
eve_planet)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_solar_system¶
Type:
ForeignKeytoEveSolarSystemEve solar system (related name:
eve_planets)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')
- eve_solar_system_id¶
Internal field, use
eve_solar_systeminstead.
- eve_type¶
Type:
ForeignKeytoEveTypeEve type (related name:
eve_planets)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')
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.universe.EvePlanetManager object>¶
- position_x¶
Type:
FloatFieldPosition x. x position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_y¶
Type:
FloatFieldPosition y. y position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_z¶
Type:
FloatFieldPosition z. z position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- class EveRace(*args, **kwargs)[source]¶
A race in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
alliance_id (PositiveIntegerField) – Alliance id
description (TextField) – Description
Reverse relationships:
- Parameters:
eve_bloodlines (Reverse
ForeignKeyfromEveBloodline) – All eve bloodlines of this eve race (related name ofeve_race)eve_stations (Reverse
ForeignKeyfromEveStation) – All eve stations of this eve race (related name ofeve_race)
- alliance_id¶
Type:
PositiveIntegerFieldAlliance id
A wrapper for a deferred-loading field. When the value is read from this
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- eve_bloodlines¶
Type: Reverse
ForeignKeyfromEveBloodlineAll eve bloodlines of this eve race (related name of
eve_race)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_stations¶
Type: Reverse
ForeignKeyfromEveStationAll eve stations of this eve race (related name of
eve_race)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- class EveRegion(*args, **kwargs)[source]¶
A star region in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
description (TextField) – Description
Reverse relationships:
- Parameters:
eve_constellations (Reverse
ForeignKeyfromEveConstellation) – All eve constellations of this eve region (related name ofeve_region)
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- eve_constellations¶
Type: Reverse
ForeignKeyfromEveConstellationAll eve constellations of this eve region (related name of
eve_region)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- classmethod eve_entity_category() str[source]¶
Return the EveEntity category of this model if one exists else an empty string.
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- class EveSolarSystem(*args, **kwargs)[source]¶
A solar system in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
position_x (FloatField) – Position x. x position in the solar system
position_y (FloatField) – Position y. y position in the solar system
position_z (FloatField) – Position z. z position in the solar system
security_status (FloatField) – Security status
enabled_sections (BitField) – Enabled sections. Flags for loadable sections. True if instance was loaded with section.
Relationship fields:
- Parameters:
eve_constellation (
ForeignKeytoEveConstellation) – Eve constellation (related name:eve_solarsystems)eve_star (
OneToOneFieldtoEveStar) – Eve star (related name:eve_solarsystem)
Reverse relationships:
- Parameters:
eve_factions (Reverse
ForeignKeyfromEveFaction) – All eve factions of this eve solar system (related name ofeve_solar_system)eve_planets (Reverse
ForeignKeyfromEvePlanet) – All eve planets of this eve solar system (related name ofeve_solar_system)destination_eve_stargates (Reverse
ForeignKeyfromEveStargate) – All destination eve stargates of this eve solar system (related name ofdestination_eve_solar_system)eve_stargates (Reverse
ForeignKeyfromEveStargate) – All eve stargates of this eve solar system (related name ofeve_solar_system)eve_stations (Reverse
ForeignKeyfromEveStation) – All eve stations of this eve solar system (related name ofeve_solar_system)
- class NearestCelestial(eve_type, eve_object, distance)¶
Container for a nearest celestial
- distance¶
- eve_object¶
- eve_type¶
- class Section(value)[source]¶
Sections that can be optionally loaded with each instance
- PLANETS = 'planets'¶
- STARGATES = 'stargates'¶
- STARS = 'stars'¶
- STATIONS = 'stations'¶
- destination_eve_stargates¶
Type: Reverse
ForeignKeyfromEveStargateAll destination eve stargates of this eve solar system (related name of
destination_eve_solar_system)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- distance_to(destination: EveSolarSystem) float | None[source]¶
Calculates the distance in meters between the current and the given solar system
- Parameters:
destination – Other solar system to use in calculation
- Returns:
Distance in meters or None if one of the systems is in WH space
- enabled_sections = ['planets', 'stargates', 'stars', 'stations']¶
- eve_constellation¶
Type:
ForeignKeytoEveConstellationEve constellation (related name:
eve_solarsystems)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')
- eve_constellation_id¶
Internal field, use
eve_constellationinstead.
- eve_factions¶
Type: Reverse
ForeignKeyfromEveFactionAll eve factions of this eve solar system (related name of
eve_solar_system)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_planets¶
Type: Reverse
ForeignKeyfromEvePlanetAll eve planets of this eve solar system (related name of
eve_solar_system)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_star¶
Type:
OneToOneFieldtoEveStarEve star (related name:
eve_solarsystem)Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
- eve_stargates¶
Type: Reverse
ForeignKeyfromEveStargateAll eve stargates of this eve solar system (related name of
eve_solar_system)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_stations¶
Type: Reverse
ForeignKeyfromEveStationAll eve stations of this eve solar system (related name of
eve_solar_system)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- property is_abyssal_deadspace: bool¶
Return True when this solar system is in abyssal deadspace, else False.
- is_trig_space¶
- jumps_to(destination: EveSolarSystem) int | None[source]¶
Calculates the shortest route between the current and the given solar system
- Parameters:
destination – Other solar system to use in calculation
- Returns:
Number of total jumps or None if no route can be found (e.g. if one system is in WH space)
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- nearest_celestial(x: int, y: int, z: int, group_id: int | None = None) NearestCelestial | None[source]¶
Determine nearest celestial to given coordinates as eveuniverse object.
- Parameters:
x – Start point in space to look from
y – Start point in space to look from
z – Start point in space to look from
group_id – Eve ID of group to filter results by
- Raises:
HTTPError – If an HTTP error is encountered
ValueError – If there is an semantic issue
- Returns:
Eve item or None if none is found
- position_x¶
Type:
FloatFieldPosition x. x position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_y¶
Type:
FloatFieldPosition y. y position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_z¶
Type:
FloatFieldPosition z. z position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- property profile_url: str¶
Return URL to default third party website with profile info about this solar system.
- route_to(destination: EveSolarSystem) List[EveSolarSystem] | None[source]¶
Calculates the shortest route between the current and the given solar system
- Parameters:
destination – Other solar system to use in calculation
- Returns:
List of solar system objects incl. origin and destination or None if no route can be found (e.g. if one system is in WH space)
- security_status¶
Type:
FloatFieldSecurity status
A wrapper for a deferred-loading field. When the value is read from this
- class EveStar(*args, **kwargs)[source]¶
A star in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
age (BigIntegerField) – Age
luminosity (FloatField) – Luminosity
radius (PositiveIntegerField) – Radius
spectral_class (CharField) – Spectral class
temperature (PositiveIntegerField) – Temperature
Relationship fields:
- Parameters:
eve_type (
ForeignKeytoEveType) – Eve type (related name:eve_stars)
Reverse relationships:
- Parameters:
eve_solarsystem (Reverse
OneToOneFieldfromEveSolarSystem) – The eve solarsystem of this eve star (related name ofeve_star)
- age¶
Type:
BigIntegerFieldAge
A wrapper for a deferred-loading field. When the value is read from this
- eve_solarsystem¶
Type: Reverse
OneToOneFieldfromEveSolarSystemThe eve solarsystem of this eve star (related name of
eve_star)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')
- eve_type¶
Type:
ForeignKeytoEveTypeEve type (related name:
eve_stars)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')
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- luminosity¶
Type:
FloatFieldLuminosity
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- radius¶
Type:
PositiveIntegerFieldRadius
A wrapper for a deferred-loading field. When the value is read from this
- spectral_class¶
Type:
CharFieldSpectral class
A wrapper for a deferred-loading field. When the value is read from this
- temperature¶
Type:
PositiveIntegerFieldTemperature
A wrapper for a deferred-loading field. When the value is read from this
- class EveStargate(*args, **kwargs)[source]¶
A stargate in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
position_x (FloatField) – Position x. x position in the solar system
position_y (FloatField) – Position y. y position in the solar system
position_z (FloatField) – Position z. z position in the solar system
Relationship fields:
- Parameters:
destination_eve_stargate (
OneToOneFieldtoEveStargate) – Destination eve stargate (related name:evestargate)destination_eve_solar_system (
ForeignKeytoEveSolarSystem) – Destination eve solar system (related name:destination_eve_stargates)eve_solar_system (
ForeignKeytoEveSolarSystem) – Eve solar system (related name:eve_stargates)eve_type (
ForeignKeytoEveType) – Eve type (related name:eve_stargates)
Reverse relationships:
- Parameters:
evestargate (Reverse
OneToOneFieldfromEveStargate) – The eve stargate of this eve stargate (related name ofdestination_eve_stargate)
- destination_eve_solar_system¶
Type:
ForeignKeytoEveSolarSystemDestination eve solar system (related name:
destination_eve_stargates)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')
- destination_eve_solar_system_id¶
Internal field, use
destination_eve_solar_systeminstead.
- destination_eve_stargate¶
Type:
OneToOneFieldtoEveStargateDestination eve stargate (related name:
evestargate)Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
- destination_eve_stargate_id¶
Internal field, use
destination_eve_stargateinstead.
- eve_solar_system¶
Type:
ForeignKeytoEveSolarSystemEve solar system (related name:
eve_stargates)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')
- eve_solar_system_id¶
Internal field, use
eve_solar_systeminstead.
- eve_type¶
Type:
ForeignKeytoEveTypeEve type (related name:
eve_stargates)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')
- evestargate¶
Type: Reverse
OneToOneFieldfromEveStargateThe eve stargate of this eve stargate (related name of
destination_eve_stargate)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')
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.universe.EveStargateManager object>¶
- position_x¶
Type:
FloatFieldPosition x. x position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_y¶
Type:
FloatFieldPosition y. y position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_z¶
Type:
FloatFieldPosition z. z position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- class EveStation(*args, **kwargs)[source]¶
A space station in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
max_dockable_ship_volume (FloatField) – Max dockable ship volume
office_rental_cost (FloatField) – Office rental cost
owner_id (PositiveIntegerField) – Owner id
position_x (FloatField) – Position x. x position in the solar system
position_y (FloatField) – Position y. y position in the solar system
position_z (FloatField) – Position z. z position in the solar system
reprocessing_efficiency (FloatField) – Reprocessing efficiency
reprocessing_stations_take (FloatField) – Reprocessing stations take
Relationship fields:
- Parameters:
eve_race (
ForeignKeytoEveRace) – Eve race (related name:eve_stations)eve_solar_system (
ForeignKeytoEveSolarSystem) – Eve solar system (related name:eve_stations)eve_type (
ForeignKeytoEveType) – Eve type (related name:eve_stations)services (
ManyToManyFieldtoEveStationService) – Services (related name:evestation)
- classmethod eve_entity_category() str[source]¶
Return the EveEntity category of this model if one exists else an empty string.
- eve_race¶
Type:
ForeignKeytoEveRaceEve race (related name:
eve_stations)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')
- eve_solar_system¶
Type:
ForeignKeytoEveSolarSystemEve solar system (related name:
eve_stations)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')
- eve_solar_system_id¶
Internal field, use
eve_solar_systeminstead.
- eve_type¶
Type:
ForeignKeytoEveTypeEve type (related name:
eve_stations)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')
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- max_dockable_ship_volume¶
Type:
FloatFieldMax dockable ship volume
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- office_rental_cost¶
Type:
FloatFieldOffice rental cost
A wrapper for a deferred-loading field. When the value is read from this
- owner_id¶
Type:
PositiveIntegerFieldOwner id
A wrapper for a deferred-loading field. When the value is read from this
- position_x¶
Type:
FloatFieldPosition x. x position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_y¶
Type:
FloatFieldPosition y. y position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- position_z¶
Type:
FloatFieldPosition z. z position in the solar system
A wrapper for a deferred-loading field. When the value is read from this
- reprocessing_efficiency¶
Type:
FloatFieldReprocessing efficiency
A wrapper for a deferred-loading field. When the value is read from this
- reprocessing_stations_take¶
Type:
FloatFieldReprocessing stations take
A wrapper for a deferred-loading field. When the value is read from this
- services¶
Type:
ManyToManyFieldtoEveStationServiceServices (related name:
evestation)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.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager
- class EveStationService(*args, **kwargs)[source]¶
A service in a space station
Reverse relationships:
- Parameters:
evestation (Reverse
ManyToManyFieldfromEveStation) – All eve stations of this eve station service (related name ofservices)
- evestation_set¶
Type: Reverse
ManyToManyFieldfromEveStationAll eve stations of this eve station service (related name of
services)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.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- objects = <django.db.models.Manager object>¶
- class EveType(*args, **kwargs)[source]¶
An inventory type in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
capacity (FloatField) – Capacity
description (TextField) – Description
icon_id (PositiveIntegerField) – Icon id
mass (FloatField) – Mass
packaged_volume (FloatField) – Packaged volume
portion_size (PositiveIntegerField) – Portion size
radius (FloatField) – Radius
published (BooleanField) – Published
volume (FloatField) – Volume
enabled_sections (BitField) – Enabled sections. Flags for loadable sections. True if instance was loaded with section.
Relationship fields:
- Parameters:
eve_group (
ForeignKeytoEveGroup) – Eve group (related name:eve_types)eve_graphic (
ForeignKeytoEveGraphic) – Eve graphic (related name:eve_types)eve_market_group (
ForeignKeytoEveMarketGroup) – Eve market group (related name:eve_types)
Reverse relationships:
- Parameters:
eve_bloodlines (Reverse
ForeignKeyfromEveBloodline) – All eve bloodlines of this eve type (related name ofeve_ship_type)market_price (Reverse
OneToOneFieldfromEveMarketPrice) – The market price of this eve type (related name ofeve_type)dogma_attributes (Reverse
ForeignKeyfromEveTypeDogmaAttribute) – All dogma attributes of this eve type (related name ofeve_type)dogma_effects (Reverse
ForeignKeyfromEveTypeDogmaEffect) – All dogma effects of this eve type (related name ofeve_type)industry_durations (Reverse
ForeignKeyfromEveIndustryActivityDuration) – All industry durations of this eve type (related name ofeve_type)industry_materials (Reverse
ForeignKeyfromEveIndustryActivityMaterial) – All industry materials of this eve type (related name ofeve_type)industry_products (Reverse
ForeignKeyfromEveIndustryActivityProduct) – All industry products of this eve type (related name ofeve_type)industry_skills (Reverse
ForeignKeyfromEveIndustryActivitySkill) – All industry skills of this eve type (related name ofeve_type)materials (Reverse
ForeignKeyfromEveTypeMaterial) – All materials of this eve type (related name ofeve_type)material_types (Reverse
ForeignKeyfromEveTypeMaterial) – All material types of this eve type (related name ofmaterial_eve_type)eve_planets (Reverse
ForeignKeyfromEvePlanet) – All eve planets of this eve type (related name ofeve_type)eve_stars (Reverse
ForeignKeyfromEveStar) – All eve stars of this eve type (related name ofeve_type)eve_stargates (Reverse
ForeignKeyfromEveStargate) – All eve stargates of this eve type (related name ofeve_type)eve_stations (Reverse
ForeignKeyfromEveStation) – All eve stations of this eve type (related name ofeve_type)
- class IconVariant(value)[source]¶
Variant of icon to produce with icon_url()
- BPC = 3¶
- BPO = 2¶
- REGULAR = 1¶
- SKIN = 4¶
- class Section(value)[source]¶
Sections that can be optionally loaded with each instance
- DOGMAS = 'dogmas'¶
- GRAPHICS = 'graphics'¶
- INDUSTRY_ACTIVITIES = 'industry_activities'¶
- MARKET_GROUPS = 'market_groups'¶
- TYPE_MATERIALS = 'type_materials'¶
- capacity¶
Type:
FloatFieldCapacity
A wrapper for a deferred-loading field. When the value is read from this
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- dogma_attributes¶
Type: Reverse
ForeignKeyfromEveTypeDogmaAttributeAll dogma attributes of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- dogma_effects¶
Type: Reverse
ForeignKeyfromEveTypeDogmaEffectAll dogma effects of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- enabled_sections = ['dogmas', 'graphics', 'market_groups', 'type_materials', 'industry_activities']¶
- eve_bloodlines¶
Type: Reverse
ForeignKeyfromEveBloodlineAll eve bloodlines of this eve type (related name of
eve_ship_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- classmethod eve_entity_category() str[source]¶
Return the EveEntity category of this model if one exists else an empty string.
- eve_graphic¶
Type:
ForeignKeytoEveGraphicEve graphic (related name:
eve_types)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')
- eve_graphic_id¶
Internal field, use
eve_graphicinstead.
- eve_group¶
Type:
ForeignKeytoEveGroupEve group (related name:
eve_types)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')
- eve_market_group¶
Type:
ForeignKeytoEveMarketGroupEve market group (related name:
eve_types)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')
- eve_market_group_id¶
Internal field, use
eve_market_groupinstead.
- eve_planets¶
Type: Reverse
ForeignKeyfromEvePlanetAll eve planets of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_stargates¶
Type: Reverse
ForeignKeyfromEveStargateAll eve stargates of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_stars¶
Type: Reverse
ForeignKeyfromEveStarAll eve stars of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- eve_stations¶
Type: Reverse
ForeignKeyfromEveStationAll eve stations of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- icon_id¶
Type:
PositiveIntegerFieldIcon id
A wrapper for a deferred-loading field. When the value is read from this
- icon_url(size: int = 64, variant: IconVariant | None = None, category_id: int | None = None, is_blueprint: bool | None = None) str[source]¶
returns an image URL to this type as icon. Also works for blueprints and SKINs.
Will try to auto-detect the variant based on the types’s category, unless variant or category_id is specified.
- Parameters:
variant – icon variant to use
category_id – category ID of this type
is_blueprint – DEPRECATED - type is assumed to be a blueprint
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- industry_durations¶
Type: Reverse
ForeignKeyfromEveIndustryActivityDurationAll industry durations of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- industry_materials¶
Type: Reverse
ForeignKeyfromEveIndustryActivityMaterialAll industry materials of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- industry_products¶
Type: Reverse
ForeignKeyfromEveIndustryActivityProductAll industry products of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- industry_skills¶
Type: Reverse
ForeignKeyfromEveIndustryActivitySkillAll industry skills of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- market_price¶
Type: Reverse
OneToOneFieldfromEveMarketPriceThe market price of this eve type (related name of
eve_type)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')
- mass¶
Type:
FloatFieldMass
A wrapper for a deferred-loading field. When the value is read from this
- material_types¶
Type: Reverse
ForeignKeyfromEveTypeMaterialAll material types of this eve type (related name of
material_eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- materials¶
Type: Reverse
ForeignKeyfromEveTypeMaterialAll materials of this eve type (related name of
eve_type)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- objects = <eveuniverse.managers.universe.EveTypeManager object>¶
- packaged_volume¶
Type:
FloatFieldPackaged volume
A wrapper for a deferred-loading field. When the value is read from this
- portion_size¶
Type:
PositiveIntegerFieldPortion size
A wrapper for a deferred-loading field. When the value is read from this
- published¶
Type:
BooleanFieldPublished
A wrapper for a deferred-loading field. When the value is read from this
- radius¶
Type:
FloatFieldRadius
A wrapper for a deferred-loading field. When the value is read from this
- volume¶
Type:
FloatFieldVolume
A wrapper for a deferred-loading field. When the value is read from this
- class EveTypeDogmaAttribute(*args, **kwargs)[source]¶
A dogma attribute of on inventory type in Eve Online
- Parameters:
id (AutoField) – Primary key: ID
value (FloatField) – Value
Relationship fields:
- Parameters:
eve_dogma_attribute (
ForeignKeytoEveDogmaAttribute) – Eve dogma attribute (related name:eve_type_dogma_attributes)eve_type (
ForeignKeytoEveType) – Eve type (related name:dogma_attributes)
- eve_dogma_attribute¶
Type:
ForeignKeytoEveDogmaAttributeEve dogma attribute (related name:
eve_type_dogma_attributes)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')
- eve_dogma_attribute_id¶
Internal field, use
eve_dogma_attributeinstead.
- eve_type¶
Type:
ForeignKeytoEveTypeEve type (related name:
dogma_attributes)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')
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- objects = <django.db.models.Manager object>¶
- value¶
Type:
FloatFieldValue
A wrapper for a deferred-loading field. When the value is read from this
- class EveTypeDogmaEffect(*args, **kwargs)[source]¶
A dogma effect of on inventory type in Eve Online
- Parameters:
id (AutoField) – Primary key: ID
is_default (BooleanField) – Is default
Relationship fields:
- Parameters:
eve_dogma_effect (
ForeignKeytoEveDogmaEffect) – Eve dogma effect (related name:eve_type_dogma_effects)eve_type (
ForeignKeytoEveType) – Eve type (related name:dogma_effects)
- eve_dogma_effect¶
Type:
ForeignKeytoEveDogmaEffectEve dogma effect (related name:
eve_type_dogma_effects)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')
- eve_dogma_effect_id¶
Internal field, use
eve_dogma_effectinstead.
- eve_type¶
Type:
ForeignKeytoEveTypeEve type (related name:
dogma_effects)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')
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- is_default¶
Type:
BooleanFieldIs default
A wrapper for a deferred-loading field. When the value is read from this
- objects = <django.db.models.Manager object>¶
- class EveTypeMaterial(*args, **kwargs)[source]¶
Material type for an Eve online type
- Parameters:
id (AutoField) – Primary key: ID
quantity (PositiveIntegerField) – Quantity
Relationship fields:
- Parameters:
eve_type (
ForeignKeytoEveType) – Eve type (related name:materials)material_eve_type (
ForeignKeytoEveType) – Material eve type (related name:material_types)
- eve_type¶
Type:
ForeignKeytoEveTypeEve type (related name:
materials)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')
- id¶
Type:
AutoFieldPrimary key: ID
A wrapper for a deferred-loading field. When the value is read from this
- material_eve_type¶
Type:
ForeignKeytoEveTypeMaterial eve type (related name:
material_types)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')
- material_eve_type_id¶
Internal field, use
material_eve_typeinstead.
- objects = <eveuniverse.managers.sde.EveTypeMaterialManager object>¶
- quantity¶
Type:
PositiveIntegerFieldQuantity
A wrapper for a deferred-loading field. When the value is read from this
- class EveUnit(*args, **kwargs)[source]¶
A unit in Eve Online
- Parameters:
id (PositiveIntegerField) – Primary key: Id. Eve Online ID
name (CharField) – Name. Eve Online name
last_updated (DateTimeField) – Last updated. When this object was last updated from ESI
display_name (CharField) – Display name
description (TextField) – Description
Reverse relationships:
- Parameters:
eve_units (Reverse
ForeignKeyfromEveDogmaAttribute) – All eve units of this eve unit (related name ofeve_unit)
- description¶
Type:
TextFieldDescription
A wrapper for a deferred-loading field. When the value is read from this
- display_name¶
Type:
CharFieldDisplay name
A wrapper for a deferred-loading field. When the value is read from this
- eve_units¶
Type: Reverse
ForeignKeyfromEveDogmaAttributeAll eve units of this eve unit (related name of
eve_unit)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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager
- id¶
Type:
PositiveIntegerFieldPrimary key: Id. Eve Online ID
A wrapper for a deferred-loading field. When the value is read from this
- last_updated¶
Type:
DateTimeFieldLast updated. When this object was last updated from ESI
A wrapper for a deferred-loading field. When the value is read from this
- name¶
Type:
CharFieldName. Eve Online name
A wrapper for a deferred-loading field. When the value is read from this
- objects = <django.db.models.Manager object>¶
Model Managers¶
Managers and Querysets for EveEntity models.
- class EveEntityManagerBase(*args, **kwargs)[source]¶
Custom manager for EveEntity
- bulk_create_esi(ids: Iterable[int]) int[source]¶
Resolve given IDs from ESI and update or create corresponding objects.
- Parameters:
ids – List of valid EveEntity IDs
- Returns:
Count of updated entities
Deprecated since version 1.5.0: Use
bulk_resolve_ids()instead.
- bulk_resolve_ids(ids: Iterable[int]) int[source]¶
Resolve given IDs from ESI and update or create corresponding objects.
- Parameters:
ids – IDs to be resolved
- Returns:
Count of updated entities
- bulk_resolve_names(ids: Iterable[int]) EveEntityNameResolver[source]¶
Resolve given IDs to names and return them.
- Parameters:
ids – List of valid EveEntity IDs
- Returns:
EveEntityNameResolver object helpful for quick resolving a large amount of IDs
- bulk_update_all_esi()[source]¶
Update all EveEntity objects in the database from ESI.
- Returns:
Count of updated entities.
- bulk_update_new_esi() int[source]¶
Update all unresolved EveEntity objects in the database from ESI.
- Returns:
Count of updated entities.
- fetch_by_names_esi(names: Iterable[str], update: bool = False) models.QuerySet[EveEntity][source]¶
Fetch entities matching given names. Will fetch missing entities from ESI if needed or requested.
Note that names that are not found by ESI are ignored.
- Parameters:
names – Names of entities to fetch
update – When True will always update from ESI
- Returns:
query with matching entities.
- get_or_create_esi(*, id: int, include_children: bool = False, wait_for_children: bool = True, enabled_sections: Iterable[str] | None = None, task_priority: int | None = None) Tuple[Any, bool][source]¶
gets or creates an EvEntity object.
The object is automatically fetched from ESI if it does not exist (blocking) or if it has not yet been resolved.
- Parameters:
id – Eve Online ID of object
- Returns:
A tuple consisting of the requested EveEntity object and a created flag Returns a None objects if the ID is invalid
- resolve_name(id: int) str[source]¶
Return the name for the given Eve entity ID or an empty string if ID is not valid.
- update_from_esi_by_id(ids: Iterable[int]) int[source]¶
Updates all Eve entity objects by id from ESI.
- update_or_create_all_esi(*, include_children: bool = False, wait_for_children: bool = True, enabled_sections: Iterable[str] | None = None, task_priority: int | None = None) None[source]¶
not implemented - do not use
- update_or_create_esi(*, id: int, include_children: bool = False, wait_for_children: bool = True, enabled_sections: Iterable[str] | None = None, task_priority: int | None = None) Tuple[Any, bool][source]¶
Update or create an EveEntity object by fetching it from ESI (blocking).
- Parameters:
id – Eve Online ID of object
include_children – (no effect)
wait_for_children – (no effect)
- Returns:
A tuple consisting of the requested object and a created flag When the ID is invalid the returned object will be None
- Exceptions:
Raises all HTTP codes of ESI endpoint /universe/names except 404
- class EveEntityQuerySet(model=None, query=None, using=None, hints=None)[source]¶
Custom queryset for EveEntity.
Managers and Querysets for Eve universe models.
- class EveIndustryActivityDurationManager(*args, **kwargs)[source]¶
Custom manager for EveIndustryActivityDuration.
- class EveIndustryActivityMaterialManager(*args, **kwargs)[source]¶
Custom manager for EveIndustryActivityMaterial.
- class EveIndustryActivityProductManager(*args, **kwargs)[source]¶
Custom manager for EveIndustryActivityProduct.
- class EveIndustryActivitySkillManager(*args, **kwargs)[source]¶
Custom manager for EveIndustryActivitySkill.
Managers and Querysets for Eve universe models.
- class EveMarketPriceManager(*args, **kwargs)[source]¶
Custom manager for EveMarketPrice.
- update_from_esi(minutes_until_stale: int | None = None) int[source]¶
Updates market prices from ESI. Will only create new price objects for EveTypes that already exist in the database.
- Parameters:
minutes_until_stale – only prices older then given minutes are regarding
default (as stale and will be updated. Will use)
- Returns:
Count of updated types
- class EveUniverseEntityModelManager(*args, **kwargs)[source]¶
Custom manager adding the ability to fetch objects from ESI.
- bulk_get_or_create_esi(*, ids: Iterable[int], include_children: bool = False, wait_for_children: bool = True, enabled_sections: Iterable[str] | None = None, task_priority: int | None = None) QuerySet[source]¶
Gets or creates objects in bulk.
Nonexisting objects will be fetched from ESI (blocking). Will always get/create parent objects.
- Parameters:
ids – List of valid IDs of Eve objects
include_children – when needed to updated/created if child objects should be updated/created as well (if any)
wait_for_children – when true child objects will be updated/created blocking (if any), else async
enabled_sections – Sections to load regardless of current settings
- Returns:
Queryset with all requested eve objects
- get_or_create_esi(*, id: int, include_children: bool = False, wait_for_children: bool = True, enabled_sections: Iterable[str] | None = None, task_priority: int | None = None) Tuple[Any, bool][source]¶
gets or creates an eve universe object.
The object is automatically fetched from ESI if it does not exist (blocking). Will always get/create parent objects.
- Parameters:
id – Eve Online ID of object
include_children – if child objects should be updated/created as well
created) ((only when a new object is)
wait_for_children – when true child objects will be updated/created blocking
any) ((if)
async (else)
enabled_sections – Sections to load regardless of current settings,
EveTypes (e.g. [EveType.Section.DOGMAS] will always load dogmas for)
task_priority – priority of started tasks
- Returns:
A tuple consisting of the requested object and a created flag
- update_or_create_all_esi(*, include_children: bool = False, wait_for_children: bool = True, enabled_sections: Iterable[str] | None = None, task_priority: int | None = None) None[source]¶
Update or create all objects of this class from ESI.
Loading all objects can take a long time. Use with care!
- Parameters:
include_children – if child objects should be updated/created as well (if any)
wait_for_children – when false all objects will be loaded async, else blocking
enabled_sections – Sections to load regardless of current settings
- update_or_create_esi(*, id: int, include_children: bool = False, wait_for_children: bool = True, enabled_sections: Iterable[str] | None = None, task_priority: int | None = None) Tuple[Any, bool][source]¶
updates or creates an Eve universe object by fetching it from ESI (blocking). Will always get/create parent objects
- Parameters:
id – Eve Online ID of object
include_children – if child objects should be updated/created as well (if any)
wait_for_children – when true child objects will be updated/created blocking
any) ((if)
async (else)
enabled_sections – Sections to load regardless of current settings,
EveTypes (e.g. [EveType.Section.DOGMAS] will always load dogmas for)
task_priority – priority of started tasks
- Returns:
A tuple consisting of the requested object and a created flag
Helpers¶
Helper functions and classes for Eve Universe.
Tasks¶
Eve Universe tasks¶
- load_eve_object(model_name: str, id: int, include_children=False, wait_for_children=True) None[source]¶
Task for loading an eve object. Will only be created from ESI if it does not exist
- update_or_create_eve_object(model_name: str, id: int, include_children=False, wait_for_children=True, enabled_sections: List[str] | None = None, task_priority: int | None = None) None[source]¶
Update or create an eve object from ESI.
- Parameters:
model_name – Name of the respective Django model, e.g.
"EveType"id – Eve Online ID of object
include_children – if child objects should be updated/created as well
created) ((only when a new object is)
wait_for_children – when true child objects will be updated/created blocking (if any),
async (else)
enabled_sections – Sections to load regardless of current settings,
EveTypes (e.g. [EveType.Section.DOGMAS] will always load dogmas for)
task_priority – priority of started tasks
EveEntity tasks¶
Object loader tasks¶
- create_eve_entities(ids: Iterable[int]) None[source]
Task for bulk creating and resolving multiple entities from ESI.
- update_unresolved_eve_entities() None[source]
Update all unresolved EveEntity objects from ESI.
Will resolve entities in parallel to speed up resolving large sets.
- load_map(enabled_sections: List[str] | None = None) None[source]¶
Load the complete Eve map with all regions, constellation and solar systems and additional related entities if they are enabled.
- Parameters:
enabled_sections – Sections to load regardless of current settings
- load_all_types(enabled_sections: List[str] | None = None) None[source]¶
Load all eve types.
- Parameters:
enabled_sections – Sections to load regardless of current settings
- load_eve_types(category_ids: List[int] | None = None, group_ids: List[int] | None = None, type_ids: List[int] | None = None, force_loading_dogma: bool = False) None[source]¶
Load specified eve types from ESI. Will always load all children except for EveType
Args: - category_ids: EveCategory IDs - group_ids: EveGroup IDs - type_ids: EveType IDs - load_dogma: When True will load dogma for all types
Other tasks¶
Tools¶
Testdata¶
Tools for generating fixtures from production data for Eve Universe models.
- class ModelSpec(model_name: str, ids: List[int], include_children: bool = False, enabled_sections: Iterable[str] | None = None)[source]¶
A ModelSpec class defines what objects are to be loaded as test data.
- Parameters:
model_name – Name of Eve Universe model
ids – List of Eve IDs to be loaded
include_children – Whether to also load children of those objects
enabled_sections – Sections to load regardless of current settings, e.g. [EveType.Section.DOGMAS] will always load dogmas for EveTypes
- create_testdata(spec: List[ModelSpec], filepath: str | Path) None[source]¶
Loads eve data from ESI as defined by spec and dumps it to file as JSON
- Parameters:
spec – Specification of which Eve objects to load.
once. (The specification can contain the same model more than)
filepath – absolute path of where to store the resulting JSON file
- load_testdata_from_dict(testdata: dict) None[source]¶
Create eve objects in the database from testdata dump given as dict.
- Parameters:
testdata – The dict containing the testdata as created by create_testdata()
- load_testdata_from_file(filepath: str | Path) None[source]¶
Create eve objects in the database from testdata dump given as JSON file.
- Parameters:
filepath – Absolute path to the JSON file containing the testdata
create_testdata() (created by)
See also
Please also see Test data on how to create test data for your app.
Web APIs¶
APIs for accessing external web sites related to Eve Online.
dotlan¶
Generates profile URLs for dotlan.
esitools¶
Tools for interacting with ESI.
eveimageserver¶
Fetching image URLs for Eve objects.
- class EsiCategory(value)[source]¶
Enum class for ESI categories
- ALLIANCE = 1¶
- CHARACTER = 2¶
- CORPORATION = 3¶
- FACTION = 4¶
- TYPE = 5¶
- class ImageVariant(value)[source]¶
Enum class for image variants
- BPC = 'bpc'¶
- BPO = 'bp'¶
- ICON = 'icon'¶
- LOGO = 'logo'¶
- PORTRAIT = 'portrait'¶
- RENDER = 'render'¶
- alliance_logo_url(alliance_id: int, size: int = 32) str[source]¶
image URL for the given alliance ID
- character_portrait_url(character_id: int, size: int = 32) str[source]¶
image URL for the given character ID
- corporation_logo_url(corporation_id: int, size: int = 32) str[source]¶
image URL for the given corporation ID
- type_bp_url(type_id: int, size: int = 32) str[source]¶
blueprint original image URL for the given type ID
eveitems¶
URLs for profile pages on eveitems webpage.
evesdeapi¶
Wrapper to access evesdeapi website.
- nearest_celestial(solar_system_id: float, x: float, y: float, z: float, group_id: int | None = None) EveItem | None[source]¶
Fetch nearest celestial to given coordinates from API. Results are cached.
- Parameters:
solar_system_id – Eve ID of solar system
x – Start point in space to look from
y – Start point in space to look from
z – Start point in space to look from
group_id – Eve ID of group to filter results by
- Raises:
HTTPError – If an HTTP error is encountered
- Returns:
Found Eve item or None if nothing found nearby.
eveskinserver¶
Wrapper for accessing eveskinserver API.
evewho¶
Wrapper for generating profile URLs on evewho.
evexml¶
Tools for dealing with eve data in XML.
- eve_link_to_url(link: str) str[source]¶
Convert an eve style link into a normal URL.
Example:
showinfo:5//30004984=>"https://evemaps.dotlan.net/system/Abune"- Supported variants:
Alliance, Character, Corporation, Inventory Type, Killmail, Solar System, Station and normal URLs
- Returns:
Converted URL or an empty string if the link was invalid or not supported
- Exceptions:
The function will try to fetch entities from ESI and may throw an OSError or HTTPError.
zkillboard¶
Generates profile URLs for zKillboard.