Skip to main content

Manta Test SDK — extensible test runner framework for the Manta platform

Project description

manta-sdk

Public extensible test runner SDK for the Manta platform.

PyPI version Python 3.12+ License: Apache 2.0

Implement your own test runner by subclassing BaseRunner. The Manta execution engine calls your runner, collects the result, and feeds it into the analytics pipeline automatically.

Installation

uv add manta-sdk
# or
pip install manta-sdk

Quick start

from manta_sdk import BaseRunner, RunContext, RunResult, RunStatus

class MyPytestRunner(BaseRunner):

    async def setup(self, ctx: RunContext) -> None:
        # Install dependencies, configure environment, etc.
        ...

    async def execute(self, ctx: RunContext) -> RunResult:
        # Run pytest programmatically against ctx.test_files
        ...
        return RunResult(run_id=ctx.run_id, status=RunStatus.PASSED, ...)

    async def teardown(self, ctx: RunContext, result: RunResult) -> None:
        # Upload Allure reports, clean up temp files, etc.
        ...

Publishing to PyPI

Get a PyPI API token - Dev instructions

  1. Log in at pypi.org
  2. Go to Account Settings → API tokens → Add API token
  3. For the first publish of a new project, set scope to "Entire account" — project-scoped tokens only work after the project already exists on PyPI
  4. After the first upload, you can create a narrower project-scoped token (manta-sdk) and delete the account-wide one
  5. Copy the token (shown once) and add it to your shell profile (~/.zshrc or ~/.bashrc):
export UV_PUBLISH_TOKEN=pypi-...

Then reload: source ~/.zshrc

Publish

# Build
uv build

# Publish (reads UV_PUBLISH_TOKEN from environment)
uv publish --token $UV_PUBLISH_TOKEN

Or pass the token directly:

uv publish --token pypi-YOUR_TOKEN dist/manta_sdk-<version>*

License

Apache 2.0 — see LICENSE.

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

manta_sdk-0.3.1.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

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

manta_sdk-0.3.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file manta_sdk-0.3.1.tar.gz.

File metadata

  • Download URL: manta_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for manta_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 1793e2230e9d145b1c00aff3604c95b7900a6f672fb5abf17cff1d7b572074cb
MD5 8903243f8d38536cc46eba8533b576d9
BLAKE2b-256 b1a373da5957f8cfc103791a6737e5657513df9529caa403779b0b9e5936b273

See more details on using hashes here.

File details

Details for the file manta_sdk-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: manta_sdk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for manta_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18cf673535fcd5e147aebb19a2fba4e03d959b2c420351badbb50f0f93ddd591
MD5 8d3a7bc4729f0ced46c6a5c996bbcb8e
BLAKE2b-256 93ddc9a138d9f96fc979d3ba3da831734190df76a9b6750e3afe67dcba04193a

See more details on using hashes here.

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