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.1.3.tar.gz (122.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.1.3-cp38-abi3-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

pipelex_tools_py-0.1.3-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.1.3-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.1.3-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.1.3-cp38-abi3-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

pipelex_tools_py-0.1.3-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.1.3.tar.gz.

File metadata

  • Download URL: pipelex_tools_py-0.1.3.tar.gz
  • Upload date:
  • Size: 122.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.1.3.tar.gz
Algorithm Hash digest
SHA256 f8f981fe9faf112095d41cea74e3a2945dd29321f61edc17e30621c328fa5a13
MD5 df58b09a9b42cbfa6339c4300ac4c7cd
BLAKE2b-256 fda67ec8bb4b89c8f2c70d99a932c803a04f8dcd42c56c707e76f64f19d94004

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3.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.1.3-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1cfd0fb2943fd3109d0ee1f88591965e619a2d9dd523510174585cfbc6727431
MD5 e4fdb8a34396011a769c0b7fc8eedfa7
BLAKE2b-256 6a51c9c9fdf3b0174787f1e0e1f38b9adf15919613104557018f46d93e30030b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3-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.1.3-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.3-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 1532b8c41b10d8177a1da015cabe9f734619f64b4c46e114e0a666fb76db8139
MD5 f49efb4b309e50b074a693bab730eb2c
BLAKE2b-256 f50f994bd53ae88062808c483785c3d2726bf0d16cad754357569f159b2fb263

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3-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.1.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a63a23a0bde82ebb1fac8542a54ba4f18f61506628b4ad9c81c4f7376bd7ac22
MD5 a1eae921f16cb1666f5997d06edbdbe7
BLAKE2b-256 d4c33b175e5f2121175a1c7524449c948f08a2f71d55ecb72f4b72fbd6b9e6b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3-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.1.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dd835b69f607272848a21ed866dd48ec62f43bb1b90c256602450aa872cc9082
MD5 cf37eef971931b5433e274ae82844457
BLAKE2b-256 6022d257d4a1ddb2d7a6ae03010f19512666f4352ebf66e05a30e4aaa7bd36cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3-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.1.3-cp38-abi3-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.3-cp38-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 7b047b60ef003747225b31bf967e2635ba66f1b5c1a21044bb249dff41c1a000
MD5 56eddb8a9a8269e6f9ae2c8ade31a61d
BLAKE2b-256 4fb139e00ce3ef90f300834e10ca134de94ce82e44e4a4aad6fb8508805a39ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3-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.1.3-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c60923bc86a7bd65f47abd83a4fefade442d10e450e637fc64941373748149a
MD5 88afbb97f71f37a329fbd4c9cda5e8c1
BLAKE2b-256 3efbb7eb60fc384e5a79eaaaf0e60c23a240e7c00cb0c889deef274de810ecd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3-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.1.3-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b93257f98505d0dda936bcd23274e353d495a2f0673b315c13cc64cbd71e30d5
MD5 56fc963b95dcb4ff84a80a44da45bed8
BLAKE2b-256 ffd9daf353eb2a5e33b215d9baae6f80a6ef5a194fda7a251378be337f3bd64c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipelex_tools_py-0.1.3-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