Arkham Horror LCG utilities
A simple set of utilities to read from ArkhamDB and OCTGN files mainly used to generate printable proxies in PDF format.
pip install arkham-utils
Using ArkhamDB images
Note the images from ArkhamDB have an FFG watermark on them.
from arkham_utils.arkhamdb import db
from arkham_utils.pdf.builder import PDFBuilder
cards = [db.search(name) for name in [
'Blackjack',
'Guts',
'Emergency Cache',
'Elder Sign',
'Shrivelling',
'Daisy Walker'
]]
pdf = PDFBuilder(cards)
pdf.write('proxies.pdf')
Using OCTGN images
You will need to first download the image packs from https://ahlcgoctgn.wordpress.com/image-packs/ into a subfolder named o8c in your application support directory (Library/Application Support/arkham_utils/o8c on MacOS).
from arkham_utils.octgn import db
from arkham_utils.pdf.builder import PDFBuilder
cards = [db.find(name) for name in [
'Blackjack',
'Guts',
'Emergency Cache',
'Elder Sign',
'Shrivelling',
'Daisy Walker'
]]
pdf = PDFBuilder(cards)
pdf.write('proxies.pdf')
Proxying an entire set
from arkham_utils.octgn import db
from arkham_utils.pdf.builder import PDFBuilder, PDFBuilderConfig
# write all the non-mini cards as a PDF
barkham = db.find_set('Meowlathotep')
PDFBuilder([c for c in barkham.cards if c.type != 'Mini']).write('barkham.pdf')
# write the mini investigator cards
mini_cfg = PDFBuilderConfig()
mini_cfg.cards_per_row = 4
mini_cfg.rows_per_page = 4
mini_cfg.card_height = 2.5
mini_cfg.card_width = 1.625
PDFBuilder([c for c in barkham.cards if c.type == 'Mini'], mini_cfg).write('barkham_minis.pdf')
Proxying a deck
Download the taboo PDF from https://www.fantasyflightgames.com/en/products/arkham-horror-the-card-game/ FAQ section.
Download the Scarlet Keys Investigator upgrade sheets from the Player Resources section.
from arkham_utils.arkhamdb.public_deck import ArkhamDBPublicDeck
from arkham_utils.pdf.builder import PDFBuilder
deck = ArkhamDBPublicDeck(ARKHAMDB_DECK_ID,
taboo_pdf='chapter_one_taboo_cards_v25_web.pdf',
customizable_pdf='ahc69_upgrades_v5.pdf',
include_investigator=True,
include_signature_cards=True,
use_octgn=True)
pdf = PDFBuilder(deck.cards)
pdf.write('deck.pdf')
Release files for arkham-utils 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arkham_utils-0.2.0.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arkham_utils-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.0 kB
Release files / arkham_utils-0.2.0.tar.gz
| Download URL | arkham_utils-0.2.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2996f64bd2de34ff38f5b27677faf8278db44cd8ced970a474ffa8030aa13268
|
|
BLAKE2b-256 checksum How to use checksums |
a2c4932f4c693b8c3decb2881002b81a120ee4e2e199b4600bd0d5c694f8e23c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/22.5.0
|
Release files / arkham_utils-0.2.0-py3-none-any.whl
| Download URL | arkham_utils-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d109265845e3833fccc795d95a9e8d5a6bac2c1653233c1e2f2366ef6e5f9949
|
|
BLAKE2b-256 checksum How to use checksums |
233861b2981604de18a34c466402ceaa931d1ce2b439455c589dcf28de773136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/22.5.0
|