🔷
Pyot Documentation
  • Pyot Documentation
  • Cores
    • Installation
    • Configuration
    • Objects
    • Concurrency
    • Resources
    • Exceptions
    • Warnings
  • Examples
    • Single File
    • Multi Root
    • Module Based
  • Pipeline
    • Expirations
    • Handler
    • Object
    • Token
  • Stores
    • CDragon
    • DDragon
    • DiskCache
    • DjangoCache
    • MerakiCDN
    • MongoDB
    • Omnistone
    • RedisCache
    • RiotAPI
  • Limiters
    • MemoryLimiter
    • RedisLimiter
  • Models
    • League of Legends
      • Champion
      • Championmastery
      • Championrotation
      • Clash
      • Item
      • League
      • Match
      • Merakichampion
      • Merakiitem
      • Profileicon
      • Rune
      • Spectator
      • Spell
      • Status
      • Summoner
      • Thirdpartycode
      • Tournament
    • Legends of Runeterra
      • Card
      • Match
      • Ranked
      • Status
    • Riot Services
      • Account
    • Teamfight Tactics
      • Champion
      • Item
      • League
      • Match
      • Profileicon
      • Summoner
      • Thirdpartycode
      • Trait
    • Valorant
      • Content
      • Match
      • Ranked
      • Status
  • Utils
    • LoL
      • Cdragon
      • Champion
      • Routing
    • LoR
      • Cards
    • Tft
      • Cdragon
      • Routing
    • Aiohttp
    • Copy
    • Functools
    • Importlib
    • Itertools
    • Logging
    • Nullsafe
    • Safejson
    • Sync
    • Text
    • Threading
  • Integrations
    • Django
    • FastAPI
    • Celery
  • Changelog
    • 5.x.x
    • 6.x.x
Powered by GitBook
On this page
  • class Card
  • class Cards
  • class CardAssetData
  • class Batch
  • class Deck
  1. Models
  2. Legends of Runeterra

Card

Module: pyot.models.lor.card

class Card

Type: PyotCore

Definitions:

  • __init__ -> None

    • code: str = empty

    • version: str = models.lor.DEFAULT_VERSION

    • locale: str = models.lor.DEFAULT_LOCALE

  • __str__ -> str

Endpoints:

  • ddragon_lor_set_data: ['set', '?code', 'version', 'locale']

Attributes:

  • associated_card_codes -> List[str]

  • associated_card_refs -> List[str]

  • assets -> List[pyot.models.lor.card.CardAssetData]

  • region -> str

  • region_ref -> str

  • regions -> List[str]

  • region_refs -> List[str]

  • attack -> int

  • cost -> int

  • health -> int

  • description -> str

  • description_raw -> str

  • levelup_description -> str

  • levelup_description_raw -> str

  • flavor_text -> str

  • artist_name -> str

  • name -> str

  • code -> str

  • keywords -> List[str]

  • keyword_refs -> List[str]

  • spell_speed -> str

  • spell_speed_ref -> str

  • rarity -> str

  • rarity_ref -> str

  • subtype -> str

  • subtypes -> List[str]

  • supertype -> str

  • type -> str

  • collectible -> bool

  • set -> int

  • faction -> str

  • number -> int

  • subcode -> str

Properties:

  • property associated_cards -> List[ForwardRef(Card)]

class Cards

Type: PyotCore

Definitions:

  • __init__ -> None

    • set: int = empty

    • version: str = models.lor.DEFAULT_VERSION

    • locale: str = models.lor.DEFAULT_LOCALE

  • __iter__ -> Iterator[pyot.models.lor.card.Card]

  • __len__ -> int

Endpoints:

  • ddragon_lor_set_data: ['set', 'version', 'locale']

Attributes:

  • cards -> List[pyot.models.lor.card.Card]

class CardAssetData

Type: PyotStatic

Attributes:

  • game_absolute_path -> str

  • full_absolute_path -> str

class Batch

Type: PyotUtils

Methods:

  • method add -> None

    • amount: int = 1

    Add a copy to the batch, amount may be passed to add more than 1 copy.

  • method remove -> None

    • amount: int = 1

    Remove a copy from the batch, amount may be passed to remove more than 1 copy.

Attributes:

  • code -> str

  • count -> int

  • faction -> str

  • set -> int

  • number -> int

Properties:

  • property card -> pyot.models.lor.card.Card

class Deck

Type: PyotUtils

Methods:

  • method append -> None

    • batch: Union[pyot.models.lor.card.Batch, str]

    Appends a Batch object or CardCodeAndCount string to the Deck.

  • method decode -> None

    Decode the string in self.code, rebuild the batches and return self.

  • method encode -> str

    Encode the content in self.batches, set the code and return it.

  • method pop -> pyot.models.lor.card.Batch

    • ind: int = -1

    Remove and return a Batch object by index.

  • method pull -> None

    • card_code: str

    Remove and return a Batch object by code.

Attributes:

  • batches -> List[pyot.models.lor.card.Batch]

  • code -> str

PreviousLegends of RuneterraNextMatch

Last updated 2 years ago