enums
Global enums used throughout the project.
Activities
module-attribute
Activities: FrozenSet[Metric] = frozenset({LeaguePoints, BountyHunterHunter, BountyHunterRogue, ClueScrollsAll, ClueScrollsBeginner, ClueScrollsEasy, ClueScrollsMedium, ClueScrollsHard, ClueScrollsElite, ClueScrollsMaster, CollectionsLogged, ColosseumGlory, LastManStanding, PvpArena, SoulWarsZeal, GuardiansOfTheRift})
Set containing activities.
Bosses
module-attribute
Bosses: FrozenSet[Metric] = frozenset({AbyssalSire, AlchemicalHydra, Amoxliatl, Araxxor, Artio, BarrowsChests, Brutus, Bryophyta, Callisto, Calvarion, Cerberus, ChambersOfXeric, ChambersOfXericChallenge, ChaosElemental, ChaosFanatic, CommanderZilyana, CorporealBeast, CrazyArchaeologist, DagannothPrime, DagannothRex, DagannothSupreme, DerangedArchaeologist, DoomOfMokhaiotl, DukeSucellus, GeneralGraardor, GiantMole, GrotesqueGuardians, Hespori, Hueycoatl, KalphiteQueen, KingBlackDragon, Kraken, Kreearra, KrilTsutsaroth, LunarChests, MadAngel, MaggotKing, Mimic, Nex, Nightmare, PhosanisNightmare, Obor, PhantomMuspah, Sarachnis, Scorpia, Scurrius, ShellbaneGryphon, Skotizo, SolHeredit, Spindel, Tempoross, TheGauntlet, TheCorruptedGauntlet, TheLeviathan, TheWhisperer, TheRoyalTitans, TheatreOfBlood, TheatreOfBloodHard, ThermonuclearSmokeDevil, TombsOfAmascut, TombsOfAmascutExpert, TzKalZuk, TzTokJad, Vardorvis, Venenatis, Vetion, Vorkath, Wintertodt, Yama, Zalcano, Zulrah})
Set containing bosses.
ComputedMetrics
module-attribute
Set containing all the types of computed metrics.
Skills
module-attribute
Skills: FrozenSet[Metric] = frozenset({Overall, Attack, Defence, Strength, Hitpoints, Ranged, Prayer, Magic, Cooking, Woodcutting, Fletching, Fishing, Firemaking, Crafting, Smithing, Mining, Herblore, Agility, Thieving, Slayer, Farming, Runecrafting, Hunter, Construction, Sailing})
Set containing skills.
BaseEnum
Bases: Enum
The base enum all library enums inherit from.
Source code in wom/enums.py
at_random
classmethod
Generates a random variant of this enum.
Returns:
| Type | Description |
|---|---|
T
|
The randomly generated enum. |
BaseEnumMeta
Bases: EnumMeta
Metaclass for BaseEnum.
Source code in wom/enums.py
__iter__
Iterates over the enum's members, skipping the Unknown variant.
Metric
Bases: BaseEnum
Represents all metrics including skills, bosses, activities, and computed metrics.
Source code in wom/enums.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | |
Period
UnknownEnumWarning
Bases: UserWarning
Warns that the API returned an enum value the library does not
recognize, which was coerced to the Unknown variant.
Filter or silence it like any other warning, e.g.
warnings.filterwarnings("ignore", category=wom.UnknownEnumWarning).