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

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.1
File Size Uploaded Provenance Actions
tsurara_plugin-0.1.1.tar.gz 31.1 kB Without provenance Details for tsurara_plugin-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 112.7 kB

Release files / tsurara_plugin-0.1.1.tar.gz

Download URL tsurara_plugin-0.1.1.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8c7449ae76637692f5d0354257d3e26c3708a1d1cdc07d6e3e0e97d09ee7cfd2
BLAKE2b-256 checksum
How to use checksums
5bed29ad9e79722d36c18f685ddfb43048ace8a28a6676536d612c7e980d9d17
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.1-py3-none-any.whl

Download URL tsurara_plugin-0.1.1-py3-none-any.whl
Size 81.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85afd6c838310caa3762b0b52a7c1296d8d20463b7e1540261851d4d66da61ad
BLAKE2b-256 checksum
How to use checksums
234231da023bd06a2e1afcf43e1e06791af16142567603bd40cd4889cc17c4c2
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.1

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