Martian SDK
One Python SDK for agent evaluations and adversarial testing.
martian.evals: pinned datasets, local MLflow evaluation, Backend-scored regression gates and recorded CI sessions.martian.redteam: adversarial probes against a customer callback, with simulation and judging through the Martian Backend API.assert_redteam(...): record saved adversarial probe results alongside dataset and quality checks in one eval session.martian ci: one persisted session for evals, redteam, or both, with typed Python results.
The distribution is martian-sdk; install its evals extra for both modules.
Use an available PyPI release or a validated wheel. Hosted use requires
compatible Backend SDK APIs and authorized tenant credentials.
uv sync --locked --extra evals
uv run --extra evals martian --help
uv run --extra evals martian redteam validate examples/config.yaml
# In the customer checkout, after configuring the Backend origin and one Martian API token:
martian ci --evals-path tests/evals --redteam-config redteam.yaml --output results
Unified SDK and CI documents imports, the shared connection, installation, the combined gate, compatibility and rollout limits. Documentation index covers the existing redteam contracts.
The wheel retains martian_redteam, martian_evals_kit and martian-redteam
for existing integrations. Both test engines run in the customer's process.
The Backend admits and stores customer work; Agents owns redteam simulation and judging.
The same Backend API key authorizes both modules when granted the required capabilities.
Development
uv sync --locked --extra evals
uv run --extra evals ruff format --check src tests examples
uv run --extra evals ruff check src tests examples
uv run --extra mcp --extra evals mypy src
uv run --extra evals pytest -q
uv build
The existing eval regression suite has moved into this SDK's CI. Tests use local MLflow and loopback service fixtures; hosted/paid execution is a separate qualification. See development.
License
Metadata
Release files for martian-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| martian_sdk-0.1.1.tar.gz | 275.6 kB | With provenance | Details for martian_sdk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| martian_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for martian_sdk-0.1.1-py3-none-any.whl |
Total release size: 368.4 kB
Release files / martian_sdk-0.1.1.tar.gz
| Download URL | martian_sdk-0.1.1.tar.gz |
|---|---|
| Size | 275.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa7c58a6b03429a1c1ceef9b2e1b2b774e8dcf1410c92ae2a930ee18c96ebffb
|
|
BLAKE2b-256 checksum How to use checksums |
26b5dd985e44ea46251b0fc63716709e4b8349e78bf6130f6f3d9d62f71f3165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / martian_sdk-0.1.1-py3-none-any.whl
| Download URL | martian_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 92.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1fd02f0ee22b57099596a86c7015bf92b6ccb26d57b620be532e38e5b84d5f25
|
|
BLAKE2b-256 checksum How to use checksums |
9f0f2f6148f87baae076b3a17936ccc26915911bd2d49b035dba1e4bcdf53ae0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for martian-sdk 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for martian_sdk-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.