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

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.0
File Size Uploaded Provenance Actions
tsurara_plugin-0.1.0.tar.gz 31.0 kB Without provenance Details for tsurara_plugin-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 112.3 kB

Release files / tsurara_plugin-0.1.0.tar.gz

Download URL tsurara_plugin-0.1.0.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b61c6d597a730e2cab6e12ae9c63860a4de55eb9f475682b14a7c937dd5831d0
BLAKE2b-256 checksum
How to use checksums
4a6e4104b8e4728919bb1e4a7dfd42853f758e5d1ed9a30520b4b2333e0440d4
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.0-py3-none-any.whl

Download URL tsurara_plugin-0.1.0-py3-none-any.whl
Size 81.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0876263979fafb179089665424857c83434dbe09458377bc2f2983c05782ae51
BLAKE2b-256 checksum
How to use checksums
293c5314775f10008e5b48f4be89bac71f3a456abb0c89deff42a8cbb53e1d5d
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.0

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