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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mthds-0.3.0.tar.gz.
File metadata
- Download URL: mthds-0.3.0.tar.gz
- Upload date:
- Size: 112.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de479f977b2ec3614b23bdb53ed3e28e2332a2f1653ee92e118c530fe3d5d820
|
|
| MD5 |
0cf425692b08018faae2b8d910c5d21f
|
|
| BLAKE2b-256 |
5b3ceea615b49c011657246ff61371ca4a95ab3baa94d4b79541bd4b0f816ae5
|
Provenance
The following attestation bundles were made for mthds-0.3.0.tar.gz:
Publisher:
publish.yml on mthds-ai/mthds-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mthds-0.3.0.tar.gz -
Subject digest:
de479f977b2ec3614b23bdb53ed3e28e2332a2f1653ee92e118c530fe3d5d820 - Sigstore transparency entry: 1401082276
- Sigstore integration time:
-
Permalink:
mthds-ai/mthds-python@ffafa2bd58c952322b30b8754811db09e13e77e1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mthds-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ffafa2bd58c952322b30b8754811db09e13e77e1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mthds-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mthds-0.3.0-py3-none-any.whl
- Upload date:
- Size: 49.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f9822c23beb82607ec4bafcff99717fb6531eed8d19b86086dc9deb7825b06b
|
|
| MD5 |
92dcb0ef5ccadc003f04460c2f3fe563
|
|
| BLAKE2b-256 |
f3861184f31583d3089baea9316853b329720cb786d8e01f38f303a17f1e3f4c
|
Provenance
The following attestation bundles were made for mthds-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on mthds-ai/mthds-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mthds-0.3.0-py3-none-any.whl -
Subject digest:
3f9822c23beb82607ec4bafcff99717fb6531eed8d19b86086dc9deb7825b06b - Sigstore transparency entry: 1401082343
- Sigstore integration time:
-
Permalink:
mthds-ai/mthds-python@ffafa2bd58c952322b30b8754811db09e13e77e1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mthds-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ffafa2bd58c952322b30b8754811db09e13e77e1 -
Trigger Event:
push
-
Statement type: