qe-tma 0.1.5 0.1.6.9002

Python TMA (Transmodal Analysis) modeling — sister package to tma, with libtma compiled in

Python >=3.10 · License: GPL-3.0-only · API documentation · Source code · Homepage · Source · Issues

Also available for R: tma · npm: @qe-libs/tma-wasm · Julia: tma · C++ (Conan): tma

Install

uv

uv add qe-tma --index qe-libs=https://qe-libs.org/py/simple/

pip

pip install --extra-index-url https://qe-libs.org/py/simple/ qe-tma

requirements.txt

--extra-index-url https://qe-libs.org/py/simple/
qe-tma

Latest development build (0.1.6.9002)

pip install --extra-index-url https://qe-libs.org/py/dev/simple/ qe-tma
uv add qe-tma --index qe-libs-dev=https://qe-libs.org/py/dev/simple/

Development builds are built from main and served only by the development index; the regular index installs releases.

Versions

Links in the wheel columns are the Python versions each wheel supports; pip and uv pick the right file automatically.

VersionPublishedSourceLinux
x86_64 · glibc 2.27+
macOS
arm64 · macOS 26.0+
Windows
x64
0.1.6.90022026-10-15.tar.gz3.11 3.12 3.133.11 3.12 3.133.11 3.12 3.13
0.1.52026-10-15.tar.gz3.11 3.12 3.133.11 3.12 3.133.11 3.12 3.13
0.1.42026-10-13.tar.gz3.11 3.12 3.133.11 3.12 3.133.11 3.12 3.13
0.1.32026-10-10.tar.gz3.11 3.12 3.133.11 3.12 3.133.11 3.12 3.13

Dependencies

For 0.1.5.

Description

qe-tma

Python Transmodal Analysis (TMA) — sister package to the tma R package (import tma). Formerly pyTMA (import pytma), which was never published.

The math runs in C++ shared with R: accumulation (stanza windows, context tensors, row connections, weight models) is libtma, compiled into this package (tma.libtma); node positions come from qe-ena (libena) and generic numerics from qe-lib (libqe).

Installation

pip install qe-tma --extra-index-url https://qe-libs.org/py/simple/

Development builds from main are on https://qe-libs.org/py/dev/simple/.

Development install

Building from a checkout compiles the libtma extension: it needs a C++17 compiler, CMake and Armadillo (brew install armadillo, apt install libarmadillo-dev), plus the headers that scripts/sync-headers.sh vendors into python/include/ (libtma from this repo, libqe from Conan; set LIBQE_INCLUDE=<libqe checkout>/include to use a local libqe instead).

sh scripts/sync-headers.sh                 # from the repo root
pip install qe-lib qe-ena --extra-index-url https://qe-libs.org/py/simple/
pip install "./python[dev]"
pytest python/tests --import-mode=importlib   # tests the installed package

Quick start

import pandas as pd
from tma import TMA, contexts, context_tensor

# rules / contexts / context_tensor mirror tma's R functions; TMA().fit()
# runs contexts -> accumulate -> normalize -> SVD -> node positions.

The low-level accumulation functions (apply_tensor_unit, aggregate_row_connections, accumulate_stanza, ...) are in tma.libtma.

All files and SHA-256 hashes (40)
FileSizeSHA-256
qe_tma-0.1.6.9002.tar.gz62.3 KB92b2cd2d4418585f966447f48587a3c8a73333d6645b6d8938fa9f69d6e59724
qe_tma-0.1.6.9002-cp313-cp313-win_amd64.whl782.3 KB571bd553928f71df65d7a4dd541e7d2854fa1a4cc025fc13c1a53764bd137cc1
qe_tma-0.1.6.9002-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MBb029305089101ae7b3e4e33a1bc133852df46847ba5e32107c5e702f06f6c499
qe_tma-0.1.6.9002-cp313-cp313-macosx_26_0_arm64.whl96.7 KB76d8aeb18365e30b06606bf4db4c129b44329374ed840b2f1802170ec81bbd9f
qe_tma-0.1.6.9002-cp312-cp312-win_amd64.whl782.3 KB74756abc5f0a9ac11a496a5a04be6a21e7f3a40a8c69f5d094f49b06ad744371
qe_tma-0.1.6.9002-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MBf49d2c3b78468b1acb1f961afbde5d29d2d854632049ef8cfcc3cd78be71070f
qe_tma-0.1.6.9002-cp312-cp312-macosx_26_0_arm64.whl96.7 KBb568c030a123560fe452e6917c706746990fc485c763a9a0e76f6a46793c6666
qe_tma-0.1.6.9002-cp311-cp311-win_amd64.whl782.2 KB25edca9bfc6d1e70df4ad83f960d91cda335637767aadea53367526ac2cd51ed
qe_tma-0.1.6.9002-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB6dfc404a89d15215299a8127513f750892049ee0c13162df8222567d7e6a59ef
qe_tma-0.1.6.9002-cp311-cp311-macosx_26_0_arm64.whl97.3 KB6d0c8cf4f753277a5f948c2f9462cb448edaaed1bab13b823c76aefacd0e51ba
qe_tma-0.1.5.tar.gz62.3 KB54a4e4e4a4bea429de0a044e770e23fe1d2150707cf56a0d8cab1a2b09e364f7
qe_tma-0.1.5-cp313-cp313-win_amd64.whl782.2 KB1273492fcf4862cd4be0ebbe019e813462d34f0450f5ddc7be2acb03ab0e5524
qe_tma-0.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MBf5c51c28c01880d6094062abdec6b2a7614872f94f49ead99ee885986f84de95
qe_tma-0.1.5-cp313-cp313-macosx_26_0_arm64.whl96.6 KBbe4f297dffed20330a98302bf388ebb4b3e1842ffb121c3934dc99e44239a36c
qe_tma-0.1.5-cp312-cp312-win_amd64.whl782.2 KBed02c5155ed1f90bc0de38b5055b553c6632a89e1c08d69cdb42307cf2aa417f
qe_tma-0.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MBb104b1898431f8ffdaf87b11ad83f127753bba328aeb763c69c98191dd2d754b
qe_tma-0.1.5-cp312-cp312-macosx_26_0_arm64.whl96.6 KB4f3149cb16e17221043ba76135a0513693cff80323e4d49ae2411ac83e7848c0
qe_tma-0.1.5-cp311-cp311-win_amd64.whl782.1 KB3ac5e4f37ed21273e7498ff6150e32dd0d59f4e34a38418cd263ca35dbd2031b
qe_tma-0.1.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB57c6044b9fa4926e0f115c7858f82aa2d9ca7e40853cf90b7e43f057743c898e
qe_tma-0.1.5-cp311-cp311-macosx_26_0_arm64.whl97.3 KB79cd5af0b89e7585b0728b60a3a172b48dc520a66010ac989548b0011c036cc2
qe_tma-0.1.4.tar.gz59.8 KB4f3a63932f1ff51b350c6bf73d25f2de6844ae514b635c4d30e7089a73709551
qe_tma-0.1.4-cp313-cp313-win_amd64.whl780.6 KB0355c301589bd993969e70f2ed7ed47c48bd3f6264c3f6e849476c64d7663556
qe_tma-0.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB9264f63d6ef1f02ce03f1fb0df7d3e91abd014d1b53d195952fa19fdd1df6fe7
qe_tma-0.1.4-cp313-cp313-macosx_26_0_arm64.whl95.0 KB7beaac01a0f11cc223077e9c34052a9d01045eab66874ca3569bdfcde2dc7b17
qe_tma-0.1.4-cp312-cp312-win_amd64.whl780.6 KBa7557224c3f3d9a440b7cb95021558d1d316b89731578f3215baf2e951fc8238
qe_tma-0.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB754c021d5802c198de395cd86d68968a797c0fafd3ac17525986460c64330e67
qe_tma-0.1.4-cp312-cp312-macosx_26_0_arm64.whl95.0 KB6aee0c46a8fcb0a31254f193ad44d09e737177b57fd289219737f3ec8e832574
qe_tma-0.1.4-cp311-cp311-win_amd64.whl780.6 KBcd93f4c340bd8b579aa6d90ffb3d4175b9406e69eae33ed91763bbd4fa020e5a
qe_tma-0.1.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB376e71ff8516f1f668a70f968cb467f5ce1b665e45033fcf0f10d5eab65bcfb2
qe_tma-0.1.4-cp311-cp311-macosx_26_0_arm64.whl95.8 KB78d8c352c8a4293d91718cf25c9c63a7578e8ec3d376c19444a8100504ec8728
qe_tma-0.1.3.tar.gz59.8 KB509dec24fd7f2dba50bb0030c656f6c8dbb046e9fed7cd33af217c6ce7331d24
qe_tma-0.1.3-cp313-cp313-win_amd64.whl780.6 KBad9001c5c53580da1d14380e87e572851aaa6a44c70731e29a8f6eeb17766009
qe_tma-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB781773be891fb3b324541cbb272d0cd0c4cbc678562980c597e31198ce67fda6
qe_tma-0.1.3-cp313-cp313-macosx_26_0_arm64.whl95.0 KB9f304e0d059bb083ffe56bb4f73231d8b03074eb30bdf1c8b0eff88d87076d6b
qe_tma-0.1.3-cp312-cp312-win_amd64.whl780.6 KB96a8b4efadd8f9aecf085edcff4ad31f202e9eb3fda3881d9f245e68da6acd81
qe_tma-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB75fd9096cdfcf39e096ff45cff8777b6e24afddc5b18b4a64122b2f1e33437b7
qe_tma-0.1.3-cp312-cp312-macosx_26_0_arm64.whl95.0 KBe4181b3e581c1378ed53f2be7a4936f6c4f20e9379f9dacb8b7180e230552352
qe_tma-0.1.3-cp311-cp311-win_amd64.whl780.6 KB817a3d394862cfb09142aa656688695d74f2e79989dd59fbb44a6beab74dc7e3
qe_tma-0.1.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl11.5 MB9e0920914036a42604acca115607b2fc591fa3564608da53992d6079a9accfbe
qe_tma-0.1.3-cp311-cp311-macosx_26_0_arm64.whl95.8 KBd28c26dc30a1dce135774dcda7322365d7cb7a73bd4b6b8967a75b4ed2a4ca36