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 $UV_PUBLISH_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.2.tar.gz (40.0 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.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: manta_sdk-0.3.2.tar.gz
  • Upload date:
  • Size: 40.0 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.2.tar.gz
Algorithm Hash digest
SHA256 0ed4ce5a7fafa6ebede82eda1c51718d96354f0a6d51d0fbf95cd15f5bf97900
MD5 81026817ca1569da1e3649581cbcc78f
BLAKE2b-256 99ba445ad568914820a1bb369379b6996b8467b40295817e480d710c20523af3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: manta_sdk-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58911c19dd72607485fa2007032f140becc13b7117b2a4f695d44efc209d6bb3
MD5 03489fcec20076c2b4833005cc787d57
BLAKE2b-256 e2c1391e21f9202779bc2dc50c80527d9086f78df37ead610c4557dcc2220983

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