pyti
This library contains various financial technical indicators that can be used to analyze data.
Requires Python 3.10 or newer (tested on 3.10–3.14). The only runtime dependency is numpy.
Note: version 0.3.0 is a breaking release. Several indicators were fixed or reworked to match their textbook definitions, so numeric output differs from 0.2.x and a few functions take new high/low arguments. See CHANGELOG.md for the full list.
The complete list of indicators in this library:
Accumulation/Distribution
Aroon
-Aroon Up
-Aroon Down
Average Directional Index
Average True Range
Average True Range Percent
Bollinger Bands
-Upper Bollinger Band
-Middle Bollinger Band
-Lower Bollinger Band
-Bandwidth
-Percent Bandwidth
-Range
-%B
Chaikin Money Flow
Chande Momentum Oscillator
Commodity Channel Index
Detrended Price Oscillator
Double Exponential Moving Average
Double Smoothed Stochastic
Exponential Moving Average
Hull Moving Average
Ichimoku Cloud
-TenkanSen
-KijunSen
-Chiku Span
-Senkou A
-Senkou B
Keltner Bands
-Bandwidth
-Center Band
-Upper Band
-Lower Band
Linear Weighted Moving Average
Momentum
Money Flow
Money Flow Index
Moving Average Convergence Divergence
Moving Average Envelope
-Upper Band
-Center Band
-Lower Band
Negative Directional Index (-DI)
Negative Directional Movement (-DM)
On Balance Volume
Positive Directional Index (+DI)
Positive Directional Movement (+DM)
Price Channels
-Upper Price Channel
-Lower Price Channel
Price Oscillator
Simple Moving Average
Smoothed Moving Average
Standard Deviation
Standard Variance
Stochastic
-%K
-%D
StochRSI
Rate of Change
Relative Strength Index
Triangular Moving Average
Triple Exponential Moving Average
True Range
Typical Price
Ultimate Oscillator
Vertical Horizontal Filter
Volatility
Volume Adjusted Moving Average
Volume Index
-Positive Volume Index
-Negative Volume Index
Volume Oscillator
Weighted Moving Average
Williams %R
Install using pip:
pip install pyti
Simple example usage of library:
from pyti.exponential_moving_average import exponential_moving_average as ema
data = [6, 7, 3, 6, 3, 9, 5]
period = 2
res = ema(data, period)
# res = [nan, 6.5, 4.1667, 5.3889, 3.7963, 7.2654, 5.7551]
Running the test suite (uses uv, or any venv with pytest and pandas installed):
uv run pytest
To run a single test:
uv run pytest tests/test_file_you_want_to_test.py::TestClassName::test_method_name
If there is an indicator that you would like to see added or believe there is an error in one of the existing ones, feel free to submit it to Issues. If you would like to add your own indicator, fork the project and submit a pull request. Contributions are always welcome.
Metadata
Release files for pyti 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyti-0.3.0.tar.gz | 168.1 kB | With provenance | Details for pyti-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyti-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pyti-0.3.0-py3-none-any.whl |
Total release size: 195.7 kB
Release files / pyti-0.3.0.tar.gz
| Download URL | pyti-0.3.0.tar.gz |
|---|---|
| Size | 168.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41de82d33aa66ffe7503665f7daa50839c3022754c5112289c5613d702002759
|
|
BLAKE2b-256 checksum How to use checksums |
5040570b6e0c1f8182e78e5a8b6d1f84c7c75454b4cc2e87a323bb53d993d8e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 2, 2026.
Transparency logRelease files / pyti-0.3.0-py3-none-any.whl
| Download URL | pyti-0.3.0-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66a47cb3964bf62b2cf76162b7a538881bdd93490a787f63911e55a345647e77
|
|
BLAKE2b-256 checksum How to use checksums |
30adc9aa9d86f160e426c2d74201be830f094c85920c10d17a1ba060dddda86a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 2, 2026.
Transparency logSecurity for pyti 0.3.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.
Attestation for pyti-0.3.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 Jul 2, 2026.
Transparency logA 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.