File size: 518 Bytes
048b1e8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # Examples
## Setup
Install dependencies
```sh
poetry install
```
## Running Examples
Run any example with environment variables:
```sh
OPENMETER_ENDPOINT=https://openmeter.cloud \
OPENMETER_TOKEN=om_xxx \
poetry run python ./sync/ingest.py
```
## Type Checking
The examples are type-checked using **Pyright**:
```sh
poetry run pyright
```
**Note**: Mypy is not compatible with the generated SDK models due to how it handles overloaded constructors. Pyright is the recommended type checker for this project.
|