$npx skillfedfor your agent

trx-python

A community-oriented file format for tractography

Worth itPyPI Scientific/EngineeringReleased Mar 2026100.1K downloads / moBSD LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — trx_python-0.4.0-py3-none-any.whl
v0.4.0 · released 2026-03-05 · Python >=3.11 · 4 runtime deps: deepdiff, nibabel, numpy, typer

Yes. trx-python is worth installing if you work with tractography data in neuroimaging. It has low install friction, active maintenance, no known vulnerabilities, a permissive license, and fills a clear need for TRX format support. The CLI tools are convenient for one-off conversions and validation; the Python API integrates well into larger pipelines. The Alpha status reflects the format's maturity, not instability.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later.
  • Large tractography files use memory-mapped temporary storage; ensure adequate disk space (several gigabytes possible) and set TRX_TMPDIR if default temp location is insufficient.
  • Low friction: pure Python wheel with four runtime dependencies (deepdiff, nibabel, numpy, typer).

License · maintenance · safety

BSD License (permissive) — BSD License (permissive) — you can use, modify, and distribute this package freely in both open and closed projects with minimal restrictions.

last release 2026-03-05 (162 days) · last repo commit 2026-08-11 · 26 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 100,126 downloads/mo, #13,000 on PyPI

Verify before relying

pip install trx-python

from trx.io import load, save

trx = load("tractogram.trx")
save(trx, "output.trk")
  • Whether nibabel and numpy versions have known compatibility constraints with the supported Python versions.
  • Performance characteristics and memory overhead when processing very large tractography files.
  • Completeness of format support across all advertised file types (TRK, TCK, VTK, FIB, DPY) in practice.
Same gist for agents: .md · .json

What it is and what it does

trx-python is a Python library for working with TRX, a community-oriented file format for tractography data used in neuroimaging research. It provides both a programmatic API and a unified command-line interface for loading, saving, converting, validating, and concatenating tractography files. The library supports multiple input formats (TRX, TRK, TCK, VTK, FIB, DPY) and can export to any of these formats, making it useful for interoperability across neuroimaging pipelines.

The package depends on numpy for numerical operations, nibabel for neuroimaging file I/O, deepdiff for data comparison, and typer for CLI argument parsing. It uses memory-mapped files to handle large tractography datasets efficiently without loading entire files into RAM. The project is actively maintained, supports Python 3.11–3.13, and is licensed under the permissive BSD License.

Use it for

  • Convert brain fiber tract data between TRX and legacy formats (TRK, TCK, VTK) in neuroimaging pipelines.
  • Validate TRX tractography files for data integrity before processing or sharing with collaborators.
  • Merge multiple tractography datasets into a single file using the concatenate command.
  • Inspect TRX file metadata, headers, groups, and archive contents via the CLI info command.
  • Integrate tractography I/O into Python-based neuroimaging analysis workflows.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

trx-python is worth installing if you work with tractography data in neuroimaging. It has low install friction, active maintenance, no known vulnerabilities, a permissive license, and fills a clear need for TRX format support. The CLI tools are convenient for one-off conversions and validation; the Python API integrates well into larger pipelines. The Alpha status reflects the format's maturity, not instability.

Install

trx-python on PyPI

Before you install

Low friction: pure Python wheel with four runtime dependencies (deepdiff, nibabel, numpy, typer). Active maintenance with a recent commit on 2026-08-11 and a release on 2026-03-05.

Requires Python 3.11 or later. Large tractography files use memory-mapped temporary storage; ensure adequate disk space (several gigabytes possible) and set TRX_TMPDIR if default temp location is insufficient.

License in practice

BSD License (permissive) — you can use, modify, and distribute this package freely in both open and closed projects with minimal restrictions.

Quickstart

pip install trx-python

from trx.io import load, save

trx = load("tractogram.trx")
save(trx, "output.trk")

Verify before relying

  • Whether nibabel and numpy versions have known compatibility constraints with the supported Python versions.
  • Performance characteristics and memory overhead when processing very large tractography files.
  • Completeness of format support across all advertised file types (TRK, TCK, VTK, FIB, DPY) in practice.

Package facts

LicenseBSD License permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
deepdiffnibabelnumpytyper
MaintenanceActively maintained 162 days since the last release
Last repo commit
First released
Downloads100,126 / month, #13,000 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering

Evidence: trx_python-0.4.0-py3-none-any.whl

Tags

Capabilities
tractography file format pythontrx file reader writerneuroimaging fiber tract toolsconvert tractogram formatstrx cli command linebrain fiber tract processingtractogram validation concatenation
Topics
neuroimagingtractographyfile-format

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “tractography file format python”

  • trx-pythonReads, writes, and manipulates TRX tractography files in Python,…
  • dipyDIPY is a Python library for analyzing diffusion MRI data, providing…
  • RoffIORoffio reads and writes Roxar Open File Format (ROFF) files in both…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also dipy · pynrrd · mne-bids · hdx-python-utilities · bidsschematools · meshio · pyevtk · segyio · nibabel · pybids