Metadata-Version: 2.3
Name: compressor-models
Version: 0.4.2
Summary: Functions for generating compressor monitoring models
Author: Åsmund Våge Fannemel
Author-email: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>
Classifier: Programming Language :: Python :: 3
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: tagmapper>=0.9.2,<0.10.0
Requires-Dist: stidapi>=1.3.4,<2.0.0
Requires-Python: >=3.11, <4.0
Description-Content-Type: text/markdown

# compressor-models
Monitoring models for compressors. Get time series data and compressor curves from SPD.

# Install
Install from pypi using `pip install compressor-models`.

# Usage
## From SPD database

```python
from compressor_models import CompressorPerformance, CurveFile

print(CompressorPerformance.models_in_database())

cmp = CompressorPerformance.from_database(functional_location="1130-KA101")
cf = CurveFile.from_Compressor(cmp)

print(cmp.get_yaml())
print(cf.to_json())
```

## Create model from JSON curves

```python
from compressor_models import CompressorPerformance

cmp = CompressorPerformance.get_empty(functional_location="TEST-KA101")
cmp.add_curves(curve_file="examples/compressor_curves.json")

print(cmp.get_yaml())
```

# Develop / testing
Clone from github and install using `uv sync`.

