Skip to main content

riscos-dumpsprites

riscos-dumpsprites is a Python command line tool for inspecting RISC OS Sprite files.

It supports two output modes:

  • A column summary of all sprites in a sprite file.
  • A field-by-field report for a single named sprite.
  • Machine-readable JSON output for either form.
  • Validation reporting for malformed or suspicious sprite structures.

Usage

Summarise the contents of a sprite file:

./riscos-dumpsprites sprites/wavytile,ff9

Describe a single sprite:

./riscos-dumpsprites sprites/basi3p02,ff9 basi3p02

Emit JSON:

./riscos-dumpsprites --json sprites/manysprites,ff9
./riscos-dumpsprites --json sprites/basi3p02,ff9 basi3p02

Validate a file:

./riscos-dumpsprites --check sprites/wavytile,ff9

Show richer text output:

./riscos-dumpsprites --verbose sprites/manysprites,ff9

Filter the sprite list:

./riscos-dumpsprites --name 'basi4*' sprites/manysprites,ff9
./riscos-dumpsprites --type 32bpp+a --has-mask sprites/manysprites,ff9
./riscos-dumpsprites --mode 27 sprites/wavytile,ff9

Extract a single sprite into its own sprite file:

./riscos-dumpsprites sprites/wavytile,ff9 tile_1r --extract tile_1r,ff9

The parser understands both old-format sprite mode words and the newer sprite mode word format, including alpha-channel and CMYK-related sprite type handling. Detailed reports and JSON output include decoded palette entries. Text output previews the first 16 palette entries for large palettes. For documented old-format mode numbers, the tool also reports standard mode metadata such as text resolution, graphics resolution, OS units, and logical colour count. Summary output distinguishes sprites with no mask, classic 1bpp masks, and 8bpp alpha masks.

Development

Run the test suite with:

python3 -m unittest discover -s tests

Sample sprite files used for testing live in sprites/.

Publishing

To publish a new version to PyPI:

  1. Update the version in pyproject.toml.
  2. Build and publish using make:
    make publish
    
    Note: This requires twine to be configured with your PyPI credentials.

References

Metadata

Release files for riscos-dumpsprites 0.1.0

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

Source distribution (sdist)

Source distribution for riscos-dumpsprites 0.1.0
File Size Uploaded
riscos_dumpsprites-0.1.0.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for riscos-dumpsprites 0.1.0
File Interpreter ABI Platform
riscos_dumpsprites-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.3 kB

Release files / riscos_dumpsprites-0.1.0.tar.gz

Download URL riscos_dumpsprites-0.1.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
992c9de37e6cf138ba1b147ddcef092764216372bc71eff7e192f3b9f0aed9a7
BLAKE2b-256 checksum
How to use checksums
c9caa94855a6c3740866c62cf9c00dabc696de53c0291179f96e019cf79a1a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.8

Release files / riscos_dumpsprites-0.1.0-py3-none-any.whl

Download URL riscos_dumpsprites-0.1.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
411f549a7b86f9d072df658a340a2f35cb8bad5d9ffb24a5c99ba814dd320c18
BLAKE2b-256 checksum
How to use checksums
19cc0c4b714c7af512e4c79526b05a5fed86addd9a1f28a023b08fc74502e5e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

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