Metadata-Version: 2.4
Name: kitty-game-composer
Version: 0.2.1
Summary: Kitty, the game composer: declare a retro game session in one gamecomposer.yml and run it on the local Kiri runtime
Author: Enzo Vezzaro
License-Expression: MIT
Project-URL: Homepage, https://github.com/EnzoVezzaro/game-composer
Project-URL: Documentation, https://github.com/EnzoVezzaro/game-composer/blob/main/docs/user-guide.md
Project-URL: Changelog, https://github.com/EnzoVezzaro/game-composer/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/EnzoVezzaro/game-composer/issues
Project-URL: npm SDK, https://www.npmjs.com/package/@kitty-game-composer/sdk
Keywords: kitty,game-composer,emulation,homebrew,retro-games,sandbox,kiri,cli,manifest
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: System :: Emulators
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML<7,>=6
Requires-Dist: jsonschema<5,>=4.18
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/EnzoVezzaro/game-composer/main/docs/readme/hero.png" alt="Kitty, the game composer: a pixel tuxedo cat with lime headphones on a console, over voxel cubes" width="100%" />
</p>

# kitty-game-composer

The command-line core of [Kitty](https://github.com/EnzoVezzaro/game-composer), the game composer. You describe a retro game session in one `gamecomposer.yml` (emulator, game, controls, resources, saves) and the `kitty` command validates it and runs it in a Linux sandbox through the local [Kiri](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/architecture.md) runtime.

Every asset is pinned by URL and SHA-256, and the player listens on `127.0.0.1` only. Kitty does not bundle or link commercial ROMs, BIOS files or firmware; you can load any game file from your own computer, and the registry lists only games whose licence allows redistribution.

## Install

> **Not published on PyPI yet** — `kitty-game-composer` returns 404 today. Until it is published, install from source using the steps in [Get Kitty](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/INSTALL.md).

```sh
pipx install kitty-game-composer
```

Plain `pip install kitty-game-composer` inside a virtual environment works too. You need Python 3.10 or newer. To launch games you also need the Kiri CLI running and on `PATH` as `kiri`; validating a manifest does not.

There is also a thin npm launcher, `@kitty-game-composer/cli`, that finds this package and runs it. It is not published on npm yet either, and it does not install Python for you.

## Use

```sh
kitty config                                   # validate gamecomposer.yml, print normalized JSON
kitty up                                       # check digests, build the guest on Kiri, open the player
kitty --file examples/snes/gamecomposer.yml up # a specific manifest
kitty ps
kitty logs nes
kitty down                                     # remove containers, keep saves
kitty ls --json                                # every Kiri-managed instance
```

`up --new` starts a second copy of the same manifest and `-i ID` addresses it. Exit codes: `0` ok, `1` runtime error, `2` bad input or manifest.

## Links

- [Get Kitty / install guide](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/INSTALL.md)
- [Repository and desktop app](https://github.com/EnzoVezzaro/game-composer)
- [Registry](https://github.com/EnzoVezzaro/game-composer-registry) — contribute games, consoles and controllers there
- [User guide](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/user-guide.md)
- [Manifest spec](https://github.com/EnzoVezzaro/game-composer/blob/main/docs/GAMECOMPOSER-SPEC.md)
- [TypeScript SDK on npm](https://www.npmjs.com/package/@kitty-game-composer/sdk)
- [Releases](https://github.com/EnzoVezzaro/game-composer/releases) · [Changelog](https://github.com/EnzoVezzaro/game-composer/blob/main/CHANGELOG.md) · [Issues](https://github.com/EnzoVezzaro/game-composer/issues)

MIT licence. Emulators, games and other third-party assets keep their own licences.
