gchar.games.fgo

Character

class gchar.games.fgo.Character(raw_data: dict)[source]

EnglishName

class gchar.games.fgo.EnglishName(name: Union[str, List[str]])[source]

JapaneseName

class gchar.games.fgo.JapaneseName(name: str)[source]

ChineseName

class gchar.games.fgo.ChineseName(name: str)[source]

ChineseAliasName

class gchar.games.fgo.ChineseAliasName(name: str)[source]

Rarity

enum gchar.games.fgo.Rarity(value)[source]

Enum representing the rarity of FGO characters.

Variables:
Member Type:

int

Valid values are as follows:

ZERO = <Rarity.ZERO: 0>
ONE = <Rarity.ONE: 1>
TWO = <Rarity.TWO: 2>
THREE = <Rarity.THREE: 3>
FOUR = <Rarity.FOUR: 4>
FIVE = <Rarity.FIVE: 5>

The Enum and its members also have the following methods:

classmethod loads(val) → gchar.games.fgo.property.Rarity[source]

Load a rarity from a value.

Parameters:

val (Union[int, Rarity]) – The value to load the rarity from.

Returns:

The loaded rarity.

Return type:

Rarity

Raises:

ValueError – If the value is invalid.

Clazz

enum gchar.games.fgo.Clazz(value)[source]

Enum representing the class of FGO characters.

Variables:

Valid values are as follows:

SABER = <Clazz.SABER: 1>
LANCER = <Clazz.LANCER: 2>
ARCHER = <Clazz.ARCHER: 3>
RIDER = <Clazz.RIDER: 4>
CASTER = <Clazz.CASTER: 5>
ASSASSIN = <Clazz.ASSASSIN: 6>
BERSERKER = <Clazz.BERSERKER: 7>
AVENGER = <Clazz.AVENGER: 8>
RULER = <Clazz.RULER: 9>
MOONCANCER = <Clazz.MOONCANCER: 10>
SHIELDER = <Clazz.SHIELDER: 11>
ALTEREGO = <Clazz.ALTEREGO: 12>
PRETENDER = <Clazz.PRETENDER: 13>
FOREIGNER = <Clazz.FOREIGNER: 14>

The Enum and its members also have the following methods:

classmethod loads(val) → gchar.games.fgo.property.Clazz[source]

Load a class from a value.

Parameters:

val (Union[str, Clazz]) – The value to load the class from.

Returns:

The loaded class.

Return type:

Clazz

Raises:

ValueError – If the value is invalid.