Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

castletool

PyPI Version Python Versions Downloads License

Images, vector graphics, videos, audio. You name it, castletool (probably) supports it.

Castletool is a custom tool that lets you import things to castle more easily.

Installation

pip install castletool

Requires Python and the Castle CLI

Usage

Run castletool inside a folder containing your Castle deck(s). You may also use castletool --cli for the legacy interface. castletool --version (or -v) prints the installed version.

Capabilities

  • Add image — bitmap images, animated GIF/WEBP/APNG, video (with sound), and SVG are all supported.
  • Add MIDI — converts a MIDI file into a Castle Music component. Optionally splits notes into separate instruments by note length (same length + same MIDI instrument share one).
  • Add Font — renders a font's characters as vectors.
  • Edit Background Color — sets the card's background color.
  • Upload Deck — strips whitespace from every JSON file in the deck, then runs castle save-deck.

Add Font: Basic

Choose from preset unicode ranges and select as many as you want:

  • Standard (0-255, excluding control characters)
  • ASCII
  • Alphanumeric
  • Numeric
  • Currency Symbols
  • Greek Characters
  • Fraction Symbols
  • Arrows
  • Mathematical Operators
  • Miscellaneous Technical
  • Box Drawing
  • Block Elements
  • Dingbats
  • Braille Patterns
  • Musical Symbols

Add Font: Advanced

Choose all characters/codepoints yourself:

  • Plain characters are typed as-is: 0123456789ABCDEF.
  • A specific codepoint is written U+XXXX (hex): U+03A9 is Ω.
  • Separate every codepoint with a space: Something like U+03A9U+0021 is invalid.
  • Any character or codepoint used twice is rejected.

Loading from a file uses the same rules, plus -- starts a comment that runs to the end of the line.

Star History

Star History Chart

Metadata

Release files for castletool 0.5.0a3

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

Source distribution (sdist)

Source distribution for castletool 0.5.0a3
File Size Uploaded
castletool-0.5.0a3.tar.gz 34.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for castletool 0.5.0a3
File Interpreter ABI Platform
castletool-0.5.0a3-py3-none-any.whl Python 3 none any Details

Total release size: 68.6 kB

Release files / castletool-0.5.0a3.tar.gz

Download URL castletool-0.5.0a3.tar.gz
Size 34.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88a5b0267162860b4ada6e3bcba54ade970b5c16d4610b40492bfcc62e522d13
BLAKE2b-256 checksum
How to use checksums
cdfbfbfb84a8f941e201047f90a446e30a517ee7b8ef177506f2daad821a2d47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 3, 2026.

Transparency log

Release files / castletool-0.5.0a3-py3-none-any.whl

Download URL castletool-0.5.0a3-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51645fcd68db8de01157691ecdb22d08b4a9ba41fa8712c16cbeb072b88c3021
BLAKE2b-256 checksum
How to use checksums
a24cca3d516847bc56b6633ff9b88a5e8e65d524e293886717ade441e08ad2fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.0

2 release files

0.6.0

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.1

2 release files

0.5.0

2 release files

This release

0.5.0a3 This release

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.4

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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