Script to generate card descriptions for JLTG.EU House Rules
  • Python 71.4%
  • Jinja 28.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Giles Antonio Radford a6c7cbc660
All checks were successful
Build and Publish Package / Build and Publish Package (push) Successful in 49s
feat: Added the ability to generate a PDF File for Curse cards.
Bumped version to 1.0.0
2026-09-04 20:22:47 +02:00
.forgejo/workflows Publish with a package token secret 2026-06-25 16:36:36 +02:00
.vscode Added a command to create one markdown file per directory, and a summary file 2026-06-25 22:10:30 +02:00
src/jltg_cards feat: Added the ability to generate a PDF File for Curse cards. 2026-09-04 20:22:47 +02:00
tests Updated card script to take units into account 2026-06-25 18:19:19 +02:00
.gitignore Initial check in with tests 2026-06-25 14:03:25 +02:00
.python-version Initial check in with tests 2026-06-25 14:03:25 +02:00
LICENSE.txt Initial check in with tests 2026-06-25 14:03:25 +02:00
pyproject.toml feat: Added the ability to generate a PDF File for Curse cards. 2026-09-04 20:22:47 +02:00
README.md Moved rulebook rendering logic to tree.py. Added command line and README. 2026-06-25 15:36:56 +02:00
uv.lock feat: Added the ability to generate a PDF File for Curse cards. 2026-09-04 20:22:47 +02:00

jltg-cards

A library and commands to read the Jet Lag: The Game - Hide + Seek card definitions for the KAM House Rules.

How to use

This packaged is designed to be used with uv. To run it, with uv installed, you just need to execute:

uvx --from jltg-cards --index https://code.moof.space/api/packages/JetLag/pypi/simple/ rulebook -c Cards -t Curse

This will output a markdown file to sdout. You can also specify an output file with -o.

You must specify a directory that contains Card Description files with -c, this can include subdirectories. See the Card Documentation for more details.

You must specify the type of card with -t, whcih must be one of Curse, PowerUp or TimeBonus.

You can also specify a template directory with Jinja2 templates using --template, that must contain a file called card.md.jinja2 which will be used to render individual cards. Otherwise it will use the default template to render it.

You can also install the command with:

uv tool install jltg-cards --index https://code.moof.space/api/packages/JetLag/pypi/simple/

That then allows you to run

rulebook -c Cards -t Curse

AI Disclosure

Some of the code has been created with the help of LLM tools running on the programmer's local machine. They have been used to assist the programmer in creating and understanding code, but any changes or modifications have been reviewed and approved by a human programmer.

As can be seen by inspection, this repository contains no real cards, and no LLMs have been used in the creation of game cards, or in rule rewrites.

Licence

This code is released under the MIT license. See LICENSE.txt for details.