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 your application support directory (Library/Application Support/arkham_utils 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.0.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.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arkham_utils-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6be2dd5a9dcbda6d0241a72d38851bdd941ea1be664ff944089944ef56804583
MD5 364c913594aee56f01765c582a722d4b
BLAKE2b-256 3d395102b7223de918b6719a6090feba949b6741177aa2233a3e944b3002b94b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arkham_utils-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18c6e2e090831657f3e1c28312d802848fb4f4f8599b7361c2e9b190df88166c
MD5 c9ff8535375facf24c3615d1e2de94ae
BLAKE2b-256 c03af7261e9eee5849b53f4a83d620b6537d4c1a1e53ceb0eb99086787361faf

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