castletool
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
Musiccomponent. - Add Font — renders a font's characters as vectors.
- Edit Background Color — sets the card's background color.
- Upload Deck — runs
castle save-deckon the current 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+03A9is Ω. - Separate every codepoint with a space: Something like
U+03A9U+0021is 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
Metadata
Release files for castletool 0.4.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| castletool-0.4.9.tar.gz | 32.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| castletool-0.4.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.4 kB
Release files / castletool-0.4.9.tar.gz
| Download URL | castletool-0.4.9.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ecbe69414ee91e4002afbbd4cfea99cdfd073a84172c0dc0e945507c0f6e68d
|
|
BLAKE2b-256 checksum How to use checksums |
9164699dcd3a8c4496aa3eb81e71023ef73c27733bc5dbab0b4888a23a9e76ee
|
| 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 2, 2026.
Transparency logRelease files / castletool-0.4.9-py3-none-any.whl
| Download URL | castletool-0.4.9-py3-none-any.whl |
|---|---|
| Size | 32.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d13d47c93a8c0fc35612d40caedc7ece2444794503af7e803ae23db6e127237
|
|
BLAKE2b-256 checksum How to use checksums |
91c8dce7a333142c8af5e2bedba6765e7c43389de79074610d80e2cffb5f7b8b
|
| 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 2, 2026.
Transparency log