Arkham Horror LCG utilities
Project description
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')
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arkham_utils-0.1.3.tar.gz.
File metadata
- Download URL: arkham_utils-0.1.3.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c3011b469111880ed0d4020b577272237f8267e3c0b99e2616229f71a94886
|
|
| MD5 |
a60c52a936608dbecd3e950a8e256523
|
|
| BLAKE2b-256 |
98edd8c585b0a2385f4896d6e6fb8b225fcd30e1899107eb86830054badbba90
|
File details
Details for the file arkham_utils-0.1.3-py3-none-any.whl.
File metadata
- Download URL: arkham_utils-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
516714a250f377ede6c95fa5dc60416db5b93c91b58be4a95d8f83ce07213d47
|
|
| MD5 |
44ef9c24a5eee7d04fdbcd29ee3f385a
|
|
| BLAKE2b-256 |
9414408a1693dda772610cb49901a933d3b13ccfbd7b3a6b13492af2de972c56
|