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.4.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.1.4-cp38-abi3-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

pipelex_tools_py-0.1.4-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.4-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.4-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.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: pipelex_tools_py-0.1.4.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.1.4.tar.gz
Algorithm Hash digest
SHA256 5b4c64bb5d5b43b032c59a09f946d98242f7924ec9ac9763ef59a17df207a3ae
MD5 949d904c74c4dee6e4904d79b65ae52d
BLAKE2b-256 91b72931b7a798a4537eb36dfb895523016833a46f4fbeea39eb2779aa7a90ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c548933580edb308fe3d6c2f1c43116ab0731445df0aa7e77b107a0072ee8584
MD5 dec256fbcecec2f5f934a84cd56919d1
BLAKE2b-256 1fa9a6ce253ff98dcff497cee9b0a7b09e85ef8292e95e13f33b32abcf8c8bbd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.4-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 1a624bb5ef694da6af7fc8177b5123c27a9dd0133e8213cee08d1f87347608b8
MD5 af1f023198b20162de2352adc860b793
BLAKE2b-256 17182563a4b695b1bfbaa481dc736d41d3f48689ed75830797d01a84e09842c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7329f6657b76828b6d370d2385595e85e525e22fcff356171ddb9cbc4b27fe18
MD5 c3af755a8289ed0aa76c24a852127bee
BLAKE2b-256 c785ee8395199d977aa82b6dfaf6343a719407de1b25e696f6016ab120a65d94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 67f324232bb8cd20725b35d8e96db30e4e4707bae525005ca1c3e829f3983056
MD5 72693e07e6febaa5422db4ffda4d2bd0
BLAKE2b-256 253dd4040c4b9b597f85bcd963f1e15bdb0eba799e2d1a3e0d5518d01f183eac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.4-cp38-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 5a8fe923e1f4930161c4b31ae6f494dfd590d60fd334a04570b362f8fe56a5b6
MD5 2481248ac37e2d1abf764063b90ebab1
BLAKE2b-256 52ea6bae0789b557afa7d3e8029a941889ffdd57fe1a757e8cedd96cef41b203

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47cb36625191b8261a064a2db9acd5fa8f1d58a8066863443ebee7ec1df0f593
MD5 7374371cdb5608541318311b5f12a649
BLAKE2b-256 1dba90eefe4468ad230ccdaa2fed87713c9b0a7f28d150db1cd79ffc1f177098

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pipelex_tools_py-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9c28fb9b0e60f64562946c517db02b1dfec28dd2052396e4b245c765ec351b19
MD5 6f492be6430543371f233f31d7717f71
BLAKE2b-256 f61fec6f5e1c9f05c0265da6d1d9f8929a2ecc3e3fc81fc0dd8e848b0e7193fd

See more details on using hashes here.

Provenance

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