Skip to main content

pipelex-tools-py

Python bindings for Pipelex Tools. This package installs the importable pipelex_tools module for formatting and linting MTHDS content in-process, without shelling out to the plxt CLI.

What is MTHDS? MTHDS is an open standard for defining AI methods as typed, composable, human-readable TOML files. A .mthds file describes what an AI should do: its inputs, outputs, logic, and data types. Pipelex is the runtime that executes them.

Installation

pip install pipelex-tools-py
uv add pipelex-tools-py

Usage

import pipelex_tools

formatted = pipelex_tools.format_mthds("a=1")
print(formatted["formatted"])
# a = 1

linted = pipelex_tools.lint_mthds("""
domain = "example"

[concept]

[pipe]
""")
print(linted["diagnostics"])

API

format_mthds(content: str, *, options: dict | None = None) -> dict

Returns:

{
    "formatted": str,
    "changed": bool,
    "diagnostics": list[dict],
}

lint_mthds(content: str, *, source: str | None = None) -> dict

Returns:

{
    "diagnostics": list[dict],
}

Diagnostics use this shape:

{
    "kind": "syntax" | "semantic" | "schema",
    "severity": "error",
    "message": str,
    "location": str | None,
    "range": {
        "start_offset": int,
        "end_offset": int,
        "start_line": int,
        "start_col": int,
        "end_line": int,
        "end_col": int,
    } | None,
}

Malformed MTHDS content is returned as diagnostics, not raised as an exception. Malformed formatter option values may raise ValueError.

CLI package

This is the Python library package. To install the plxt command-line tool, use the separate pipelex-tools package:

uv tool install pipelex-tools

Links

TOML support built on Taplo.

"Pipelex" is a trademark of Evotis S.A.S.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipelex_tools_py-0.2.0.tar.gz (123.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pipelex_tools_py-0.2.0-cp38-abi3-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.8+Windows x86-64

pipelex_tools_py-0.2.0-cp38-abi3-win32.whl (2.4 MB view details)

Uploaded CPython 3.8+Windows x86

pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (2.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.12+ i686

pipelex_tools_py-0.2.0-cp38-abi3-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

pipelex_tools_py-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file pipelex_tools_py-0.2.0.tar.gz.

File metadata

  • Download URL: pipelex_tools_py-0.2.0.tar.gz
  • Upload date:
  • Size: 123.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pipelex_tools_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6977e8c860a23e4e11e53a7c6f3b2b7f98b819b7551c1b5cbf089280568f59bc
MD5 a0daa3eda1eca45bb73c31b9a1c97e82
BLAKE2b-256 0c51df2418aa6b3c4b661026e3a836b880b73f8533d242d1066c7011dfaed701

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0.tar.gz:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipelex_tools_py-0.2.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.2.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0a0d22b67d410be15b2429b466022b82e512c43a24f2c64588b4271145e9115d
MD5 c4e7e66b229ed7e3227f7349c70ebf2b
BLAKE2b-256 bdc007825ec2457d50ec96ad960c7652f6566bd33a090349fddeceb2f811a425

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0-cp38-abi3-win_amd64.whl:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipelex_tools_py-0.2.0-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.2.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 45c66c4ba34026cc56a4722afd68009bd999b0908f37e53b80bc6b427e4bb049
MD5 46fae8a4ccf7209a23e707f2fe1358b7
BLAKE2b-256 53644fba5704af38c185dd6243b76bec36fb09d1ab8ed2128dce9529aa458366

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0-cp38-abi3-win32.whl:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96ef74c7c2a98be2be27da67deb8a243047d743b8a4749f810057de72ba274c4
MD5 601353286703b41a31bf43db35360238
BLAKE2b-256 2dc4bba35622fd11e8ca9e19b17e5ca41b36463bf1b4d03940bc3efede2acc1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 659afc39b9bb42d98e524e196baec82d67fddaa1b35374708622aa9362c87847
MD5 a4162a7cd7757da0e6e41b161a25cfe1
BLAKE2b-256 b56c5ef7c14e0c70d4cbb0f3abc70da0f6d57ccc8b8a80c7ab1e4af8e71324fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 914076eb05e375042e824ad2dd2a2405c4a6d49f9f203a57a521b28c5fd8e736
MD5 61e65e3a08837a7a6516ef0722940edb
BLAKE2b-256 b9e3c4ea756d4eb27435d7ceccba6f3eceaf2b7604802acd2e7d9df5663b23c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0-cp38-abi3-manylinux_2_12_i686.manylinux2010_i686.whl:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipelex_tools_py-0.2.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9a8add3fc81258c8136c571792bdc4fac0cd0ff4ab6c068b4df0e76053efdc1
MD5 fa9d5d81f69e6491c8d82d0073c8bd48
BLAKE2b-256 fe00193aa65157895d639b607c6ba66de4eb66da3968f3009d46e444d6aa4392

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipelex_tools_py-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 36e155fb2a23ef4e19fe029928ea8faba82343fc2612b663090b4a880015f9e6
MD5 5de59220d6374a772cda671e46514842
BLAKE2b-256 9081562b7f105a3b467d5839d57f2cecc96f905028417263bc9417f30751f7e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: releases.yaml on Pipelex/vscode-pipelex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page