Metadata-Version: 2.1
Name: sims-reia
Version: 0.1.0
Summary: 
Author: Ammar Askar
Author-email: ammar@ammaraskar.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: pillow (>=9.3.0,<10.0.0)
Description-Content-Type: text/markdown

# Sims2 Reia File Library

This is a parser for Sims 2 `.reia` files in Python.

## Basic Usage

Read a `.reia` file:

```python
with open("N001.reia", "rb") as f:
    reia_file = sims_reia.read_from_file(input)
    print(f"resolution={reia_file.width}x{reia_file.height}, fps={reia_file.frames_per_second}")

    for i, frame in enuemrate(reia_file.frames):
        frame.image.save(f"frame{i}.png")
```

## Testing

`poetry run pytest`

## Formatting

`poetry run black .`


