Metadata-Version: 2.4
Name: py-assettocorsa
Version: 0.1.3
Summary: Read Assetto Corsa shared memory on Windows.
Project-URL: Homepage, https://github.com/ooocheckitout/py-assettocorsa
Project-URL: Repository, https://github.com/ooocheckitout/py-assettocorsa.git
Project-URL: Issues, https://github.com/ooocheckitout/py-assettocorsa/issues
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: enum34==1.1.10; python_version < "3.4"
Dynamic: license-file

# py-assettocorsa

The Python library to read shared memory of Assetto Corsa.

## Install

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

## Example

```python
from ac import ACSharedMemory

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

## Available Models

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