Skip to main content
Version: 0.0.98

Installation

ts-shape needs Python 3.13 or later and is tested on 3.13, 3.14 and 3.15. The core install depends only on pandas, numpy and scipy.

Supported Python versions follow the scientific Python ecosystem's SPEC 0: a Python version is supported for three years after its release. On an older Python (3.11 or 3.12), pip installs the last ts-shape release that supported it.

pip install ts-shape
python -c "import ts_shape; print(ts_shape.__version__)"

Optional extras​

Loader backends and a few detectors need extra packages. A loader whose backend is missing raises an ImportError that names the extra to install.

ExtraInstallsNeeded for
parquetpyarrowreading and writing parquet files
s3s3fs, pyarrowS3ProxyDataAccess and other S3 loaders
azureazure-storage-blob, pyarrowAzureBlobParquetLoader, AzureBlobFlexibleFileLoader
apirequestsREST metadata and energy API loaders
sqlsqlalchemyTimescaleDB and SQL metadata loaders
postgressqlalchemy, psycopg2-binarysql plus the PostgreSQL driver
yamlpyyamlSignalSpecs.from_yaml, ts_shape.eventlog.load_yaml
unitspintUnitConverter
mlscikit-learnOutlierDetectionEvents.detect_outliers_isolation_forest
allall of the above
pip install "ts-shape[parquet,azure]"

For Azure AAD authentication, also install azure-identity.

From source​

git clone https://github.com/ts-shape/ts-shape.git
cd ts-shape
pip install -e ".[dev]" # editable install with test and lint tools
pytest

See Development for linting, the docs build and the release process.