Skip to main content

Legends of Runeterra deck coder and decoder

Project description

Python Implementation

Install

python >=3.5 required pip >= 19.0.0

pip install lor-deckcodes

Usage

Ever expanding rich API with method to display cards conveniently

from lor_deckcodes import LoRDeck, CardCodeAndCount


# Decoding
deck = LoRDeck.from_deckcode('CEBAIAIFB4WDANQIAEAQGDAUDAQSIJZUAIAQCBIFAEAQCBAA')

# list all cards with card format 3:01SI001
list(deck)

card = deck.cards[0] # instance of CardCodeAndCount
card.faction # SI/FR...
card.card_id # 111
card.set # 01


# Encoding
# These are equivalent
deck = LoRDeck(['3:01SI015', '3:01SI044'])
deck = LoRDeck([
    CardCodeAndCount.from_card_string('3:01SI015'),
    CardCodeAndCount('01SI015', 3)]
)
# returns encoded string
deck.encode()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lor_deckcodes-5.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

lor_deckcodes-5.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file lor_deckcodes-5.0.0.tar.gz.

File metadata

  • Download URL: lor_deckcodes-5.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.7

File hashes

Hashes for lor_deckcodes-5.0.0.tar.gz
Algorithm Hash digest
SHA256 f889ea765295c99f44aa9b1125b697656675b5304fa9fabfd4a971643eaf0078
MD5 9ecdb2b65fb1007970a6ed16378730fd
BLAKE2b-256 d6c0ae9ef82b077ca494576d6963f040e01f05fd60dc6a31f9c80741945cae12

See more details on using hashes here.

File details

Details for the file lor_deckcodes-5.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lor_deckcodes-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 190f95cb55ca0922b5b66969ef513c17e1e8aa535be229c3bd9be00d2a64baa3
MD5 47b886fe671f538371a2a59bd428170b
BLAKE2b-256 b94f0e846e6a1d6667072c297bcf4018c2bba6d36a009ae07c395f6d959a0799

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page