Skip to main content

Vaelchi

Vaelchi

Vaelchi is a pre-alpha Python package for time-series analysis, including preprocessing, clustering, and representative periods. Its API may change in later releases.

Installation

Python 3.12 or newer is required.

python -m pip install vaelchi

Features

  • Cluster consecutive periods with adjacency-constrained agglomerative hierarchical clustering (AHC).
  • Group nonadjacent periods with reproducible Euclidean k-means.
  • Align unequal-length scalar sequences with exact absolute-cost DTW.
  • Use shared clustering results while retaining AHCResult compatibility.
  • Complete timestamped calendars and fill missing values using forward fill, backward fill, or time interpolation.
  • Select observed representative profiles and retain their original units.
  • Export profiles, chronological mappings, weights, and errors as plain data.

Quick start

from vaelchi import ahc

result = ahc(
    [10, 12, 10, 12, 20, 24, 20, 24],
    periods=2,
    period_length=2,
)
print(result.weights)  # [2 2]
payload = result.to_dict()
chronological_values = result.reconstruct()

Each positional input is one feature. Four two-timestep periods become two representative periods. Profiles retain input units; weights count the original periods assigned to each representative. The default, nearest_centroid, selects an observed member of each cluster. Pass selection="legacy" to reproduce the Vaelchi 0.1.0 default.

See the repository and installation guide, examples, and documentation. Report problems through GitHub Issues.

MIT license, copyright Rahul Kakodkar. Original author credits and numerical validation records are retained.

Metadata

Release files for vaelchi 0.2.0

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

Source distribution (sdist)

Source distribution for vaelchi 0.2.0
File Size Uploaded Provenance Actions
vaelchi-0.2.0.tar.gz 1.1 MB With provenance Details for vaelchi-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vaelchi 0.2.0
File Interpreter ABI Platform Actions
vaelchi-0.2.0-py3-none-any.whl Python 3 none any Details for vaelchi-0.2.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / vaelchi-0.2.0.tar.gz

Download URL vaelchi-0.2.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
dd6ae31250bc39656c2ad56a504fd8f58f543813af258992d48ff7d5ac275298
BLAKE2b-256 checksum
How to use checksums
54068388c0b54c63ee897f1d77991a8983e87b85f8167a04f3d02e2cd7217b8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / vaelchi-0.2.0-py3-none-any.whl

Download URL vaelchi-0.2.0-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6369d7debecd7c431a1d81523be9b95d5ff9875073b800e3b2f7179a14184a3f
BLAKE2b-256 checksum
How to use checksums
79747d8e4e52bedbd1c495702f77244f4d2b645e7e5870c8e4321d23cf24ae48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for vaelchi 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vaelchi-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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