Metadata-Version: 2.4
Name: py-assettocorsa-evo
Version: 0.1.3
Summary: Read Assetto Corsa EVO shared memory on Windows.
Author: Oleh Solomoichenko
License-Expression: MIT
Project-URL: Homepage, https://github.com/ooocheckitout/py-assettocorsa-evo
Project-URL: Repository, https://github.com/ooocheckitout/py-assettocorsa-evo.git
Project-URL: Issues, https://github.com/ooocheckitout/py-assettocorsa-evo/issues
Keywords: assetto-corsa-evo,assettocorsa,assetto-corsa,assetto,simracing,sim-racing,telemetry,shared-memory
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# py-assettocorsa-evo

The Python library to read shared memory of Assetto Corsa Evo.

## Install

```bash
pip install py-assettocorsa-evo
```

## Example

```python
from acevo import ACEvoSharedMemory

try:
    with ACEvoSharedMemory() as memory:
        static, physics, graphics = memory.read_snapshot()
        print(static.session_name, static.track)
        print(physics.speed_kmh, physics.gas, physics.brake)
        print(graphics.current_lap_time_ms, graphics.car_coordinates)
except FileNotFoundError as error:
    print("The AC Evo shared memory is unavailable. Start a driving session.")
```

## Available Models

| Model | Page | Description |
| --- | --- | --- |
| [Static](https://github.com/ooocheckitout/py-assettocorsa-evo/blob/main/acevo/models/static.py) | `acevo_pmf_static` | Session, track, and game information. |
| [Physics](https://github.com/ooocheckitout/py-assettocorsa-evo/blob/main/acevo/models/physics.py) | `acevo_pmf_physics` | Speed, controls, engine, and wheel telemetry. |
| [Graphics](https://github.com/ooocheckitout/py-assettocorsa-evo/blob/main/acevo/models/graphics.py) | `acevo_pmf_graphics` | Timing, positions, tyres, damage, and pit information. |
| [Enums](https://github.com/ooocheckitout/py-assettocorsa-evo/blob/main/acevo/models/enums.py) | | Named status, session, and flag values. |
