Skip to main content

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

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for martian-sdk 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for martian-sdk 0.1.2
File Size Uploaded Provenance Actions
martian_sdk-0.1.2.tar.gz 277.1 kB With provenance Details for martian_sdk-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for martian-sdk 0.1.2
File Interpreter ABI Platform Actions
martian_sdk-0.1.2-py3-none-any.whl Python 3 none any Details for martian_sdk-0.1.2-py3-none-any.whl

Total release size: 370.2 kB

Release files / martian_sdk-0.1.2.tar.gz

Download URL martian_sdk-0.1.2.tar.gz
Size 277.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f68503f3186f5e6772e4b284e31ce6420e9f49dcdaf7bf40c927a9bb1cdabd61
BLAKE2b-256 checksum
How to use checksums
a716a94d3f096ff850e4e7af59d112b9e4a682b85531d18911644b69a7d60680
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 11, 2026.

Transparency log

Release files / martian_sdk-0.1.2-py3-none-any.whl

Download URL martian_sdk-0.1.2-py3-none-any.whl
Size 93.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57dc1115d3b5cb8333146131b116835b986889d599485abfc402f2070b93d3e9
BLAKE2b-256 checksum
How to use checksums
1ca48f71acc7575c8afa324faf99e8990992d56889eb1dc65fe8b2df63885f44
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 11, 2026.

Transparency log

Security for martian-sdk 0.1.2

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.

Select from 2 files

Attestation for martian_sdk-0.1.2.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 11, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page