Polars expression plugins for techr indicators
Project description
polars-techr
polars-techr exposes techr indicators as Polars expression plugins.
Installation
uv add polars-techr
Supported indicators
sma,wma,ema,disparitymacd,macd_signal,macd_histbband_middle,bband_lower,bband_upperstochf_percent_k,stochf_percent_dstoch_percent_k,stoch_percent_dichimoku_base_line,ichimoku_conversion_lineichimoku_leading_span_a,ichimoku_leading_span_b,ichimoku_lagging_span
Usage
import polars as pl
import polars_techr as ta
df = pl.DataFrame(
{
"high": [11.0, 12.0, 13.0],
"low": [9.0, 10.0, 11.0],
"close": [10.0, 11.0, 12.0],
}
)
result = df.select(
ta.sma(pl.col("close"), period=2).alias("sma_2"),
ta.macd(pl.col("close"), fast_period=12, slow_period=26).alias("macd"),
ta.stochf_percent_k(
pl.col("high"),
pl.col("low"),
pl.col("close"),
fastk_period=14,
fastd_period=3,
).alias("stochf_k"),
)
Ichimoku Notes
- Standalone Ichimoku rolling-window lines such as
ichimoku_base_lineandichimoku_conversion_lineuseperiod. ichimoku_leading_span_ausesbase_line_periodandconversion_line_periodbecause it combines two lines.ichimoku_leading_span_busesperiodfor the rolling window andbase_line_periodfor the forward displacement. The Python wrapper defaultsbase_line_periodto26.ichimoku_lagging_spanusesbase_line_periodfor its backward displacement.- Polars plugins keep the output row-aligned with the input, so
ichimoku_leading_span_aandichimoku_leading_span_btruncate the forward-projected tail from the core result.
Development
cd polars
uv sync --group dev
uv run maturin develop --uv
uv run pytest
Build distributable artifacts locally with:
cd polars
uv run maturin build --release --sdist --out dist
uv run python scripts/check_artifacts.py dist
Release
- Update the version in
Cargo.toml. - Merge the version bump to
main. Polars Releasebuilds the artifacts and publishes them to PyPI.- After the PyPI publish succeeds, the workflow creates the matching
polars-vX.Y.ZGitHub Release.
If the matching GitHub Release already exists, the workflow exits without publishing a duplicate release.
Before the first release, configure a Trusted Publisher for PyPI on alphaprime-dev/techr.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polars_techr-0.1.0.tar.gz.
File metadata
- Download URL: polars_techr-0.1.0.tar.gz
- Upload date:
- Size: 44.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f2106465140f92c02e178237be4d097346c0c7969c44ba413c61acc07df7d72
|
|
| MD5 |
ff325c3a9e6760193005047a1636c518
|
|
| BLAKE2b-256 |
a437250bc7da5f5d0c86e8abe0283fa7d6b1768ec759f41a141fd22709f034e0
|
Provenance
The following attestation bundles were made for polars_techr-0.1.0.tar.gz:
Publisher:
polars-release.yml on alphaprime-dev/techr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_techr-0.1.0.tar.gz -
Subject digest:
2f2106465140f92c02e178237be4d097346c0c7969c44ba413c61acc07df7d72 - Sigstore transparency entry: 1316272245
- Sigstore integration time:
-
Permalink:
alphaprime-dev/techr@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alphaprime-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
polars-release.yml@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file polars_techr-0.1.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: polars_techr-0.1.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e759dbddb022991eff19e9913a79b6bc7be58d2680c6eb313dda6570ac329e7
|
|
| MD5 |
09e1c22eeebb91afc1f54ac4aec16a0f
|
|
| BLAKE2b-256 |
d2807171218bc529a95c640505f9640516dd945b8f50f61111ce26cb7828d105
|
Provenance
The following attestation bundles were made for polars_techr-0.1.0-cp310-abi3-win_amd64.whl:
Publisher:
polars-release.yml on alphaprime-dev/techr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_techr-0.1.0-cp310-abi3-win_amd64.whl -
Subject digest:
0e759dbddb022991eff19e9913a79b6bc7be58d2680c6eb313dda6570ac329e7 - Sigstore transparency entry: 1316272359
- Sigstore integration time:
-
Permalink:
alphaprime-dev/techr@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alphaprime-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
polars-release.yml@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file polars_techr-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: polars_techr-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d4305f193a3d67a565fa864e13ad20ff63e54bb3ce5be39ec27c405a1cdf4c8
|
|
| MD5 |
9f19003e93e03adbc0c457fd693554ea
|
|
| BLAKE2b-256 |
a9a10b68a8b6af6c56038061a39bbe71913767131011482feec83d4d63c41b16
|
Provenance
The following attestation bundles were made for polars_techr-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
polars-release.yml on alphaprime-dev/techr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_techr-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
0d4305f193a3d67a565fa864e13ad20ff63e54bb3ce5be39ec27c405a1cdf4c8 - Sigstore transparency entry: 1316272504
- Sigstore integration time:
-
Permalink:
alphaprime-dev/techr@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alphaprime-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
polars-release.yml@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file polars_techr-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: polars_techr-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb427dd8927b0b4b6f6e910b2e22ba6f48fdd12b476894de7801836a1b4f2b08
|
|
| MD5 |
807f31829e870b93d2684822a26ba1c8
|
|
| BLAKE2b-256 |
8316ead9606cbdfb471114a4febb0a500d5f1a332db7f52e9f97654f7d57a31f
|
Provenance
The following attestation bundles were made for polars_techr-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
polars-release.yml on alphaprime-dev/techr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_techr-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
fb427dd8927b0b4b6f6e910b2e22ba6f48fdd12b476894de7801836a1b4f2b08 - Sigstore transparency entry: 1316272431
- Sigstore integration time:
-
Permalink:
alphaprime-dev/techr@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alphaprime-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
polars-release.yml@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file polars_techr-0.1.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: polars_techr-0.1.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.10+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
480c9bff4c326d4741a290c679bd42cc2ca355015abd4d5d7d27c4c135943d76
|
|
| MD5 |
8e534579b632449ed3a63def0b3cc0f1
|
|
| BLAKE2b-256 |
9f69a1ff3cbb9d7de0da85939333756c12471948d5027b6e42c1f71181bc3847
|
Provenance
The following attestation bundles were made for polars_techr-0.1.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:
Publisher:
polars-release.yml on alphaprime-dev/techr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_techr-0.1.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl -
Subject digest:
480c9bff4c326d4741a290c679bd42cc2ca355015abd4d5d7d27c4c135943d76 - Sigstore transparency entry: 1316272297
- Sigstore integration time:
-
Permalink:
alphaprime-dev/techr@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alphaprime-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
polars-release.yml@b1506f4ba07b399bd84e13fb1fd4bf67b65dccf1 -
Trigger Event:
workflow_dispatch
-
Statement type: