python-sdk
No long description provided.
Installation
dagger install github.com/dagger/dagger/sdk/python/runtime@51baf38f1c59be4d4935a2d2ca5af4b642f21a2e
Entrypoint
Return Type
PythonSdk
Example
func (m *myModule) example() *PythonSdk {
return dag.
PythonSdk()
}
@function
def example() -> dag.PythonSdk:
return (
dag.python_sdk()
)
@func()
example(): PythonSdk {
return dag
.pythonSdk()
}
Types
PythonSdk 🔗
moduleRuntime() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | Directory ! | - | No description provided |
subPath | StringKind ! | - | No description provided |
Example
Function PythonSdk.moduleRuntime is not accessible from the python-sdk module
func (m *myModule) example(modSource , subPath ) {
return dag.
PythonSdk().
ModuleRuntime(modSource, subPath)
}
@function
def example(mod_source: , sub_path: ) -> :
return (
dag.python_sdk()
.module_runtime(mod_source, sub_path)
)
@func()
example(modSource: , subPath: ): {
return dag
.pythonSdk()
.moduleRuntime(modSource, subPath)
}
codegen() 🔗
Return Type
GeneratedCode !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | Directory ! | - | No description provided |
subPath | StringKind ! | - | No description provided |
Example
Function PythonSdk.codegen is not accessible from the python-sdk module
func (m *myModule) example(modSource , subPath ) {
return dag.
PythonSdk().
Codegen(modSource, subPath)
}
@function
def example(mod_source: , sub_path: ) -> :
return (
dag.python_sdk()
.codegen(mod_source, sub_path)
)
@func()
example(modSource: , subPath: ): {
return dag
.pythonSdk()
.codegen(modSource, subPath)
}
base() 🔗
Return Type
Container !
Example
Function PythonSdk.base is not accessible from the python-sdk module
func (m *myModule) example() {
return dag.
PythonSdk().
Base()
}
@function
def example() -> :
return (
dag.python_sdk()
.base()
)
@func()
example(): {
return dag
.pythonSdk()
.base()
}
codegenBin() 🔗
Return Type
File !
Example
Function PythonSdk.codegenBin is not accessible from the python-sdk module
func (m *myModule) example() {
return dag.
PythonSdk().
CodegenBin()
}
@function
def example() -> :
return (
dag.python_sdk()
.codegen_bin()
)
@func()
example(): {
return dag
.pythonSdk()
.codegenBin()
}