Skip to main content

The Python interface for methods — base structures for structured outputs and the base runner for executing methods via API.

Project description

mthds

The Python interface for methods — base structures for structured outputs and the base runner for executing methods via API.

Learn more at mthds.ai and browse the Hub at mthds.sh.

Runners

This package provides the base structures that define methods and their structured outputs, as well as the base runner that executes methods through API calls. Other runners have been implemented on top of it:

  • Pipelex — a full-featured runner

Related packages

  • mthds (npm) — CLI to install methods + light client

Installation

pip install mthds

Quick Start

# Configure the API runner (default)
mthds config set api-key YOUR_KEY
mthds config set api-url https://your-api-instance.com

# Run a pipe
mthds run my_pipe_code

# Validate the manifest
mthds validate

# Initialize a new package
mthds package init

API Configuration

The default runner is api. To use it, configure your Pipelex API credentials:

mthds config set api-key YOUR_KEY
mthds config set api-url https://your-api-instance.com

Credentials are stored in ~/.mthds/credentials and shared between mthds-python and mthds-js.

You can also use environment variables, which take precedence over the credentials file:

Variable Description Default
PIPELEX_API_KEY API authentication key (empty)
PIPELEX_API_URL API base URL https://api.pipelex.com
MTHDS_RUNNER Default runner (api or pipelex) api

See mthds config list to view all current settings and their sources.

For the full CLI reference, see CLI.md.

Project details


Download files

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

Source Distribution

mthds-0.1.1.tar.gz (112.3 kB view details)

Uploaded Source

Built Distribution

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

mthds-0.1.1-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file mthds-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for mthds-0.1.1.tar.gz
Algorithm Hash digest
SHA256 409d744b13987c2890e9fcdb005e35e0b8497b8288ecbfbdda2e26d5401483b9
MD5 8f79ba1cbcf96d4b28fb62cc8b7ee557
BLAKE2b-256 88f3dad8e15a09a336e79255420f00d8a1bafbd9e449b4f193534c696f33c1d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mthds-0.1.1.tar.gz:

Publisher: publish.yml on mthds-ai/mthds-python

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

File details

Details for the file mthds-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mthds-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mthds-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2742a0d0d886315de4a60866fb7995fcef682b1f56df37026f36c24ebdc86ca0
MD5 bfad91f7130a5f2b03ea4381f896069f
BLAKE2b-256 965a8ebd5ec801bd37323c2a0cf8b7b57bc09775fa768ab8c67c475824521ea4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mthds-0.1.1-py3-none-any.whl:

Publisher: publish.yml on mthds-ai/mthds-python

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 Pingdom Monitoring Sentry Error logging StatusPage Status page