Skip to main content

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

from compressor_models import CompressorPerformance, CurveFile

print(CompressorPerformance.models_in_database())

# Optionally filter by an SAP code prefix:
print(CompressorPerformance.models_in_database(sap_code="1130"))

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

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.

Metadata

Release files for compressor-models 0.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compressor-models 0.4.6
File Size Uploaded Provenance Actions
compressor_models-0.4.6.tar.gz 7.2 kB Without provenance Details for compressor_models-0.4.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for compressor-models 0.4.6
File Interpreter ABI Platform Actions
compressor_models-0.4.6-py3-none-any.whl Python 3 none any Details for compressor_models-0.4.6-py3-none-any.whl

Total release size: 15.8 kB

Release files / compressor_models-0.4.6.tar.gz

Download URL compressor_models-0.4.6.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cf02ce6e4f7ca1aa1320ee688747f2a1381d37b62cd655100e340a303b3b85df
BLAKE2b-256 checksum
How to use checksums
81d59483a4d05b0de1bdb72ba503cd3a1abdfd2e6a84427085ac2607a26826ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.13.7 Darwin/27.2.0

Release files / compressor_models-0.4.6-py3-none-any.whl

Download URL compressor_models-0.4.6-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3885fa3c440bf363f1ee875d456440f94456c919a29c94ca8a031a6cd3cc24c5
BLAKE2b-256 checksum
How to use checksums
4d0a88849b41a107fc79d5014b9d59e5fb1b2e060618d675afcca2c8a5f5a4f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.13.7 Darwin/27.2.0

Security for compressor-models 0.4.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page