Python スクリプト for API タスク package
- 最終更新日2026/04/09
Python スクリプト for API タスク package
The Python スクリプト for API タスク package enables users to import and execute Python scripts using API タスク. This package leverages the Python library support within API タスク to implement complex data processing, mathematical computations and machine learning capabilities using API タスク.
Overview
The Python スクリプト for API タスク package contains actions that executes Python scripts or a specific function within the script. The workflow sequence for executing Python script is as follows:
- Define the source Python script and session name using the Open action.
- Execute the script using one of the following actions:
- Execute function: Use when executing a specific function within the script.
- Execute script: Use when executing the entire script.
- Close the Python スクリプト session using the Close action.
The package utilizes the Wasmer Python library integrated into the API タスク runtime. The following Python libraries are supported:
| Libraries | Note |
|---|---|
|
Fully supported. |
|
Both libraries require WASM wheels to be installed on the local machine. |
|
Both libraries require WASIX to be installed and networking enabled on the local machine. |
|
lxml requires WASM to be installed on the local machine. |
|
aiohttp requires WASIX to be installed on the local machine. |
|
Fully supported. |
Actions in Python スクリプト for API タスク package
The following actions are available in this package
| アクション | Description |
|---|---|
| Open |
The Open action defines the source Python and creates a session for executing Python scripts |
| Execute function |
The Execute function action executes a specific function within the Python script defined in the Open action. For an example, see Python スクリプトによるリストの結合例. |
| Execute script |
The Execute script action executes the Python script defined in the Open action. See [スクリプトを実行] アクション. For an example, see Python スクリプトを使用した PDF 作成の例. |
| Close |
The Close action closes the session. See 閉じるアクション. |