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.1.2.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file lor_deckcodes-1.1.2.tar.gz
.
File metadata
- Download URL: lor_deckcodes-1.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c0e1484bb5d58c74fe8a0384e63737e6e8922688faeca575b82ba0a1788e0028
|
|
MD5 |
ebf6b57cc86816e0d3d088d7e2618122
|
|
BLAKE2b-256 |
756a6bf4e606f184f522c54e0125d8deb9b1554e12dd1a383f3d12ad550b3711
|
File details
Details for the file lor_deckcodes-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: lor_deckcodes-1.1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
02288d35f11ceeac5fdac26e68897c57504c630370c543a3bff3001aed6e6155
|
|
MD5 |
91c66590b3a1c6a74f1cd6d173aa561f
|
|
BLAKE2b-256 |
418213d742a32bdece359aede70bf81dcaa99c324d12163bb3266fdbe0fcd6d8
|