Skip to main content

protograf

protograf

protograf is an application written in Python for creating simple, regular, graphical designs in PDF (or PNG/GIF/SVG) format via a script.

protograf has been primarily created to handle the prototyping of cards, counters, tiles, boards and boxes for board games, including hexagonal grids, but can also be used for creating any relatively simple design that has regular or repetitive elements; typically a mix of graphics and text. It also supports common or custom abstract games as well 18xx-series boards and markets.

You do not need to know the Python language to be able to use protograf but you do need Python installed on your machine!

Under-the-hood, protograf built on decades of well-tested tools and libraries and is easily extensible with this solid and user-friendly language.

📓 Documentation

The online documentation for protograf is available at Read the Docs; its highly recommended to read the sections in the order presented in the Guide.

If you're not familiar with any kind of programming or scripting, you should at least read some of the introductory sections, and especially the installation before proceeding...

💁 Support

News and discussion happens at the BoardGameGeek Guild; the developer is active there and can also be contacted with a request to join the Discord server for support and chats.

🛠️ Requirements

protograf requires Python (version of 3.13 or higher) to be installed and running on your machine.

If this is not your current Python version, or Python is not installed on your machine, you may want to install uv which is a cross-platform tool able to install Python.

If using uv, it is recommended to also create and use a virtual environment.

🧰 Quick Start (for the impatient)

Assuming that Python 3.13 or higher is installed on your machine, you can then install protograf via:

pip install protograf

or, if using uv:

uv pip install protograf

To check that protograf is working, you can use one (or more) of the files from any of the various examples sub-directories.

As a quick test, make a copy of example1.py script from the examples/manual directory. To do so, open the example1.py link in your browser, click on the Raw button (near the top right), and then save the web page as a file into a local directory on your machine.

Open a command-line window (also known as a terminal or a console), change to the directory where you saved the above file and type:

python example1.py

and press the Enter key.

This script is very simple - it just contains these lines:

# `example1` script for protograf
# Written by: Derek Hohls
# Created on: 29 February 2026
from protograf import *
Create()
Save()

and is designed to produce a single, blank, A4-sized page in a PDF file.

It should create an output file called example1.pdf, which will appear in the same directory as the script. You should be able to open and view this file using any PDF-capable program or application. (If you run the script in a Python shell, the output file will be called test.pdf)

If this works, then download and try out other scripts from any of the examples sub-directories (note some examples may require additional files such as images, CSV files, or spreadsheets). You can download all the examples in a single ZIP file.

If it does not work, you may want to look at more detail provided in the installation guide.

🤝 Contributions

Please see the list of contributors.

🎴 Recent Features

This section highlights a few of the more recent features added. The full feature list is available in the documentation.

  • RaceTrack
  • Image alteration operations
  • New abstract board example: Mancala
  • New shapes: Band (aka "Annular Sector")
  • CardBox: create foldable boxes for decks of cards
  • Common gaming objects: Cube, Domino, Die and Pentomino(es)
  • Wargame board: a hex board with terrain features (vector and bitmap)
  • WarpWar board: a fully-styled example
  • 18xx-series board: create a map with tracks, towns, cities and other features
  • 18xx-series market: create an annotated grid for a Stock Market
  • HexHex boards
  • Cards:
    • extract cards as a TableTopSimulator image
    • support for card-back designs
    • grid marks for hexagonal cards/tiles
    • corner crosses as grid marks
    • card-specific bleed areas
  • Color support for CYMK

🎲 Potential Features

Features not yet checked off are not guaranteed to be implemented; they just represent current / potential areas of work or ideas.

  • Common objects:
    • Meeple (Polyshape with curves)
  • Cards:
    • icon alignment
  • Others:
    • snail-drawn Greek Key

🧩 Potential Examples

These are possible examples to show board creation based on existing games:

  • Traveller board: show a fully-styled Star System

📣 Acknowledgements

The world is full of power and energy and a person can go far by just skimming off a tiny bit of it. "Snow Crash", Neal Stephenson, 1992.

As usual, with Python, you are building "on the shoulders of giants". In this case, the pyMuPDF library provides all of the core infrastructure used to do the underlying graphics processing, PDF file creation and images exports; protograf is effectively a highly customised wrapper to simplify common uses around its existing and extensive capabilities. Internal terminology, such as shapes, was developed before the adoption of pyMuPDF and it is just coincidental that these are similar!

Earlier versions of protograf used the ReportLab PDF Toolkit, which is also a powerful and useful library for supporting this type of application.

Users on BoardGameGeek have provided invaluable feedback and suggestions!

📚 Additional Libraries

📜 License

protograf is licensed under the GNU General Public License.

Metadata

Release files for protograf 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for protograf 0.6.3
File Size Uploaded Provenance Actions
protograf-0.6.3.tar.gz 1.1 MB With provenance Details for protograf-0.6.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for protograf 0.6.3
File Interpreter ABI Platform Actions
protograf-0.6.3-py3-none-any.whl Python 3 none any Details for protograf-0.6.3-py3-none-any.whl

Total release size: 2.3 MB

Release files / protograf-0.6.3.tar.gz

Download URL protograf-0.6.3.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b9acde81d3eb51092141f71ae524ff03aec104eda246cf102c2998b71e02cbc9
BLAKE2b-256 checksum
How to use checksums
a38b03da5abbc6fde89b5780dc6907b17d9109402df0b9cb25dd754da85a2e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / protograf-0.6.3-py3-none-any.whl

Download URL protograf-0.6.3-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
779fa5a5e84c57cc2937528c5a7f45af863d38e0a05ac869da3e68391b679fd3
BLAKE2b-256 checksum
How to use checksums
bf629189d39cb99f78c4e9cc4e996b84847d48885108e6d0c8b3370f62682b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for protograf 0.6.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for protograf-0.6.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page