Skip to main content

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

arkham_utils-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arkham_utils-0.1.1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file arkham_utils-0.1.1.tar.gz.

File metadata

  • Download URL: arkham_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.6.0

File hashes

Hashes for arkham_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9b811075d1ff3b002ac2bb310ef98650734bf7e7b465a277ee45b2649b773b82
MD5 c723863b30730982742b23afbcdad08e
BLAKE2b-256 2385c289a58941c75d212f652bb4bec61e5e1a86b128dce0326639c1945c99a1

See more details on using hashes here.

File details

Details for the file arkham_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: arkham_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.6.0

File hashes

Hashes for arkham_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa9be56560601ed906c461b8680d0e61636defbd6c7e217a9eba4cbf5d1d381
MD5 ed896a39998269e9fec7c03e7e5c9fc4
BLAKE2b-256 e6eff2550a6f362ee81bacee95d722825dd4d1feb6a0cd2e743a6bc74fbd65ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page