Skip to main content

tsurara-plugin

Write tsurara plugins in Python (docs/guide/plugins.md). A plugin module defines plugin = define_plugin(...) with any of the stages; tsurara runs it once per run with python -m tsurara_plugin <module>:

plugins:
  - { module: ./plugin.py, runtime: [python, -m, tsurara_plugin] }
from tsurara_plugin import ExtendInput, OutputFile, define_plugin


def extend(input: ExtendInput) -> list[OutputFile]:
    if input.manifest is None:
        return []
    return [
        OutputFile(path=f"functions/{op.operation_id}.txt", contents=f"{input.marker}\n{op.function.identifier}\n")
        for op in input.manifest.operations
        if op.function is not None
    ]


plugin = define_plugin(name="functions", extend=extend)

The types of the model, the manifest and the inputs (tsurara_plugin.protocol) are generated by tsurara from spec/plugin-protocol.schema.json. PyFile writes Python files with their imports, and tsurara_plugin.testing.run_plugin runs tsurara with a plugin for tests.

Metadata

Release files for tsurara-plugin 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 tsurara-plugin 0.1.2
File Size Uploaded Provenance Actions
tsurara_plugin-0.1.2.tar.gz 31.1 kB Without provenance Details for tsurara_plugin-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tsurara-plugin 0.1.2
File Interpreter ABI Platform Actions
tsurara_plugin-0.1.2-py3-none-any.whl Python 3 none any Details for tsurara_plugin-0.1.2-py3-none-any.whl

Total release size: 112.7 kB

Release files / tsurara_plugin-0.1.2.tar.gz

Download URL tsurara_plugin-0.1.2.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a51b76dd8d9097d3994b495d9b03f3422d239e14b107f122bea1a192ab8185ad
BLAKE2b-256 checksum
How to use checksums
34c5eec0831b361bc5006079dde26d0960c93cf039cb353b4fb347ee2886bb8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL tsurara_plugin-0.1.2-py3-none-any.whl
Size 81.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2279e0799beee11f8e97840e97aabcf2e968a8d1ad4b06bc22561650f000b8ef
BLAKE2b-256 checksum
How to use checksums
b09be8255b1a3ab6e6203381c7154c4e07ce96d695cfb4573aa0e347cd837b54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tsurara-plugin 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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