Metadata-Version: 2.4
Name: scenet
Version: 0.13.0
Summary: A semantic DSL for comic panels, compiled to SVG.
Keywords: comics,dsl,compiler,svg,layout,constraint-solving
Author: Scenet contributors
License-Expression: 0BSD
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: Compilers
Classifier: Typing :: Typed
Requires-Dist: pydantic>=2.9
Requires-Dist: pyyaml>=6.0
Requires-Dist: kiwisolver>=1.4
Requires-Dist: shapely>=2.0
Requires-Dist: fonttools>=4.55
Requires-Dist: numpy>=2.1
Requires-Dist: fonts>=0.1
Requires-Dist: font-source-sans-pro>=0.0.1
Requires-Dist: mcp>=2.2 ; extra == 'mcp'
Requires-Dist: watchfiles>=1.1 ; extra == 'watch'
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/creatoan/scenet
Project-URL: Documentation, https://creatoan.github.io/scenet/
Project-URL: Repository, https://github.com/creatoan/scenet
Project-URL: Issues, https://github.com/creatoan/scenet/issues
Project-URL: Changelog, https://github.com/creatoan/scenet/blob/main/CHANGELOG.md
Project-URL: Playground, https://creatoan.github.io/scenet/playground/
Provides-Extra: mcp
Provides-Extra: watch
Description-Content-Type: text/markdown

# Scenet

**Write what is in a comic panel. Scenet works out where everything goes, and draws it.**

[![CI](https://github.com/creatoan/scenet/actions/workflows/ci.yml/badge.svg)](https://github.com/creatoan/scenet/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/scenet.svg)](https://pypi.org/project/scenet/)
[![Python](https://img.shields.io/pypi/pyversions/scenet.svg)](https://pypi.org/project/scenet/)
[![License: 0BSD](https://img.shields.io/badge/License-0BSD-brightgreen.svg)](https://github.com/creatoan/scenet/blob/main/LICENSE)

![A comic page of three panels lettered over painted pictures: Alice and Bob in the rain on a street at dusk, with Alice worrying in an inset, then Ana and Ben, whom the picture draws, waiting on a station platform](https://raw.githubusercontent.com/creatoan/scenet/main/docs/images/gallery/38-tour.page-1.svg)

*[The gallery's tour](https://github.com/creatoan/scenet/blob/main/examples/gallery/38-tour.scene.yaml),
exactly as `scenet build` draws it from one YAML file.
[Open it in the playground](https://creatoan.github.io/scenet/playground/#example=38-tour.scene.yaml).*

Scenet compiles a written description of a comic, whether a panel, a sequence, a page or a
whole comic script, into SVG and into a PDF for print: it frames each shot, stages
the cast, sizes, places and tails every balloon in reading order, letters over your own art,
reads right to left, writes pictures a screen reader can read, and exports each panel for
image models, all without an image model of its own.

**[Try the playground](https://creatoan.github.io/scenet/playground/)** ·
**[See the gallery](https://creatoan.github.io/scenet/gallery.html)** ·
**[Install](https://creatoan.github.io/scenet/howto/install.html)**

**This project is deliberately AI-generated.** This project is, by design, almost entirely
generated by AI. It exists as a personal training ground for learning to work with AI coding
tools. The architecture, code, tests and documentation are overwhelmingly AI-authored, under
human direction and review. Treat it accordingly: an experiment first, a usable tool second.

## See it work

You write what is in the panel, and no coordinates:

```yaml
panel:
  size: [1000, 800]

camera:
  shot: medium_shot

cast:
  alice: {reference: alice, pose: pointing,     at: left_third}
  bob:   {reference: bob,   pose: arms_crossed, at: right_third, facing: left}

staging:
  - alice left_of bob
  - alice looking_at bob
  - alice ground_shared_with bob

script:
  - say: {by: alice, text: "You forgot your umbrella!", prefer: top_left}
  - say: {by: bob,   text: "I know."}
```

![Alice points at Bob, saying "You forgot your umbrella!"; Bob, arms crossed, answers "I know."](https://raw.githubusercontent.com/creatoan/scenet/main/docs/images/gallery/01-two-characters.svg)

The compiler decides how large each figure is for a medium shot, where they stand and which
way they face, how big each balloon must be for its words, where it can sit without covering a
face, and how its tail reaches the speaker's mouth.
[Open it in the playground](https://creatoan.github.io/scenet/playground/#example=01-two-characters.panel.yaml),
and change it.

## Where to start

- **Discover**: [the gallery](https://creatoan.github.io/scenet/gallery.html), every example
  drawn beside its source, and [what Scenet does today](https://creatoan.github.io/scenet/explanation/status.html).
- **Write comics**: [the author's tour](https://creatoan.github.io/scenet/tutorial/index.html),
  twelve chapters from a first panel to a printed page, then
  [the language, key by key](https://creatoan.github.io/scenet/reference/language/index.html).
- **Build with Python**: [Learn Scenet from Python](https://creatoan.github.io/scenet/tutorial/python/index.html),
  then [the Python API](https://creatoan.github.io/scenet/reference/api/index.html).
- **Drive from a model**: [the spec pack, the Agent Skill and `scenet mcp`](https://creatoan.github.io/scenet/howto/drive_from_a_model.html).
- **Contribute**: [the contributor's guide](https://github.com/creatoan/scenet/blob/main/CONTRIBUTING.md)
  and [the maintainer's documentation](https://creatoan.github.io/scenet/maintainer/index.html).

## Install

```bash
pip install scenet
```

Python 3.12 or newer, with no system libraries and no fonts to install.
`pip install 'scenet[mcp]'` adds the MCP server; [the install guide](https://creatoan.github.io/scenet/howto/install.html)
has the rest.

<!-- mcp-name: io.github.creatoan/scenet -->

## Why

Music has a score, which says what is played and leaves the sound to a performer. Scenet is a
score for comics: [Why Scenet](https://creatoan.github.io/scenet/explanation/why.html) says what
that buys, and [what changed in each release](https://creatoan.github.io/scenet/explanation/whats_new.html)
is on the site.

## License

[0BSD](https://github.com/creatoan/scenet/blob/main/LICENSE): use it for anything, with no
notice to keep. The language is free to implement. Third-party components are listed in
[THIRD_PARTY_NOTICES.md](https://github.com/creatoan/scenet/blob/main/THIRD_PARTY_NOTICES.md).
