Skip to main content

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()

Release files for lor-deckcodes 5.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lor-deckcodes 5.0.0
File Size Uploaded
lor_deckcodes-5.0.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lor-deckcodes 5.0.0
File Interpreter ABI Platform
lor_deckcodes-5.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / lor_deckcodes-5.0.0.tar.gz

Download URL lor_deckcodes-5.0.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f889ea765295c99f44aa9b1125b697656675b5304fa9fabfd4a971643eaf0078
BLAKE2b-256 checksum
How to use checksums
d6c0ae9ef82b077ca494576d6963f040e01f05fd60dc6a31f9c80741945cae12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.7

Release files / lor_deckcodes-5.0.0-py3-none-any.whl

Download URL lor_deckcodes-5.0.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
190f95cb55ca0922b5b66969ef513c17e1e8aa535be229c3bd9be00d2a64baa3
BLAKE2b-256 checksum
How to use checksums
b94f0e846e6a1d6667072c297bcf4018c2bba6d36a009ae07c395f6d959a0799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

5.0.0 This release

2 release files

4.0.0

2 release files

3.0.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page