Repository navigation
Feature/v0.1/python sdk - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK (Python): Basic @task Decorator with JSON Serialization
This PR introduces the first version of the Python @task decorator, enabling simple function declaration, JSON-based input/output serialization, and optional local execution.
Integration with Core’s WIT
The SDK adds Python-side utilities that leverage the core’s existing WIT definitions and componentize-py tooling.
The decorator generates the metadata needed by the core’s componentization pipeline, enabling Python task functions to be built and executed as Wasm components.
Local execution mode (no Wasm required)
Allows running python your_script.py directly without compiling to Wasm.
This mode gives the flexibility to execute @task decorated functions natively during development, without instantiating Wasm.
Basic test coverage
Adds initial tests verifying decorator behavior and local execution mode.
CI Integration
These tests are now included in the continuous integration workflow to prevent regressions.