Metadata-Version: 2.4
Name: vestra
Version: 0.1.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: jsonschema==4.26.0 ; extra == 'dev'
Requires-Dist: maturin>=1.14,<2 ; extra == 'dev'
Requires-Dist: mypy>=1.13 ; extra == 'dev'
Requires-Dist: pytest>=8 ; extra == 'dev'
Requires-Dist: ruff>=0.12,<0.13 ; extra == 'dev'
Requires-Dist: jsonschema==4.26.0 ; extra == 'test'
Requires-Dist: mypy>=1.13 ; extra == 'test'
Requires-Dist: pytest>=8 ; extra == 'test'
Provides-Extra: dev
Provides-Extra: test
License-File: LICENSE
License-File: licenses/FFmpeg-LGPL-2.1.txt
Summary: Native video composition and rendering engine with Python authoring and a Rust core
Keywords: video editing,video rendering,ffmpeg
Home-Page: https://github.com/evgen2571/vestra
License-Expression: MIT
Requires-Python: >=3.11, <3.15
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://github.com/evgen2571/vestra/tree/main/docs
Project-URL: Homepage, https://github.com/evgen2571/vestra
Project-URL: Issues, https://github.com/evgen2571/vestra/issues
Project-URL: Repository, https://github.com/evgen2571/vestra

# Vestra

Vestra is a native video composition and rendering engine with a Python
authoring API and a Rust core. Render compositions through CPU or WGPU.

![Animated showcase: animation, media, compositing and audio-reactive graphics](examples/showcase/readme-demo/preview.gif)

[Full demo](https://github.com/evgen2571/vestra/blob/main/examples/showcase/readme-demo/render.mp4)
· [Python source](https://github.com/evgen2571/vestra/blob/main/examples/showcase/readme-demo/main.py)
· [Asset credits](https://github.com/evgen2571/vestra/blob/main/examples/showcase/ASSETS.md)

## Quick start

With uv:

```bash
uv add vestra
uv run python example.py
```

Or with pip:

```bash
python -m pip install vestra
python example.py
```

Install **ffmpeg and ffprobe** on `PATH` before rendering.
Save this as `example.py` to create `output.mp4`:

```python
from vestra import Project
from vestra.sources import Color, Rectangle


project = Project(size=(640, 360), fps=30, duration=2)
project.root.add(Color("#171d20"), duration=2)

bar = project.root.add(Rectangle(width=240, height=8, fill="#a9c4aa"), duration=2)
bar.transform.scale.keyframe(0, (0.05, 1))
bar.transform.scale.keyframe(2, (1, 1))

project.render("output.mp4", backend="cpu", overwrite=True)
```

## Features

- Images, video, shapes, text and particles.
- Keyframes, nested compositions, masks, effects and transitions.
- Audio mixing, fades, spectrum graphics and audio signals.
- Python authoring, Rust SDK and JSON CLI with validation and render progress.

## Examples

Browse the [showcases](https://github.com/evgen2571/vestra/blob/main/examples/showcase/README.md)
for rendered videos and source, or the [reference examples](https://github.com/evgen2571/vestra/blob/main/examples/README.md)
for individual features.

## Documentation

[Python quickstart](https://github.com/evgen2571/vestra/blob/main/docs/getting-started/python-quickstart.md)
· [Docs index](https://github.com/evgen2571/vestra/blob/main/docs/index.md)
· [API reference](https://github.com/evgen2571/vestra/blob/main/docs/reference/python-api.md)
· [Contributing](https://github.com/evgen2571/vestra/blob/main/CONTRIBUTING.md)

## Development

```bash
nix develop
just check
```

See the contributing guide above and [testing](https://github.com/evgen2571/vestra/blob/main/docs/development/testing.md)
for setup and verification details.

## License

[MIT](https://github.com/evgen2571/vestra/blob/main/LICENSE).
See [third-party notices](https://github.com/evgen2571/vestra/blob/main/THIRD_PARTY_NOTICES.md)
and [asset licenses](https://github.com/evgen2571/vestra/blob/main/examples/showcase/ASSETS.md).

