python-sdk
No long description provided.
Installation
dagger install github.com/dagger/dagger/sdk/python/runtime@6a72a0951500599e8c406a71ac92fabf1019e35b
Entrypoint
Return Type
PythonSdk
Example
dagger -m github.com/dagger/dagger/sdk/python/runtime@6a72a0951500599e8c406a71ac92fabf1019e35b call \
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
dagger -m github.com/dagger/dagger/sdk/python/runtime@6a72a0951500599e8c406a71ac92fabf1019e35b call \
module-runtime
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
dagger -m github.com/dagger/dagger/sdk/python/runtime@6a72a0951500599e8c406a71ac92fabf1019e35b call \
codegen
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)
}
codegenBase() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | Directory ! | - | No description provided |
subPath | StringKind ! | - | No description provided |
Example
dagger -m github.com/dagger/dagger/sdk/python/runtime@6a72a0951500599e8c406a71ac92fabf1019e35b call \
codegen-base
func (m *myModule) example(modSource , subPath ) {
return dag.
PythonSdk().
CodegenBase(modSource, subPath)
}
@function
def example(mod_source: , sub_path: ) -> :
return (
dag.python_sdk()
.codegen_base(mod_source, sub_path)
)
@func()
example(modSource: , subPath: ): {
return dag
.pythonSdk()
.codegenBase(modSource, subPath)
}
base() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | StringKind ! | - | No description provided |
Example
dagger -m github.com/dagger/dagger/sdk/python/runtime@6a72a0951500599e8c406a71ac92fabf1019e35b call \
base
func (m *myModule) example(version ) {
return dag.
PythonSdk().
Base(version)
}
@function
def example(version: ) -> :
return (
dag.python_sdk()
.base(version)
)
@func()
example(version: ): {
return dag
.pythonSdk()
.base(version)
}