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
Release history Release notifications | RSS feed
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-1.0.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for lor_deckcodes-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199e15b459e1aca1dc27c4958b9c1e57dd86646a2a029d7b12e1b129143f9616 |
|
MD5 | e355ccb3fdbf5f4efe6823a94ad96b56 |
|
BLAKE2b-256 | e88b5133e141f1a8b12e4bfcaacfe3a047e5f5beadf5af5feb1a2d7850b5c969 |