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.2.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.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arkham_utils-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d4e04f4b0deb2e61af2dbb7045fb8ecca19241275695a98447c250cfcfd97ff9
MD5 a1fea39d00b88557a8e288ceede8563f
BLAKE2b-256 ddc78e518dfe94438fc5c54d19eecef205054120f78aeee0f9285c059c1bbb04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arkham_utils-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1b1080882b6808c5c770aec50caf79e28a5a1881f0d424a102eaab7c1fd065f
MD5 e86cf86b8502689d2dba99f5bbd737b9
BLAKE2b-256 25b7b63f7625951d8e05bd35ce55150351a81665b49cf2bcff4325b6d9d703d0

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