Dagger
Search

ext-python-sdk

No long description provided.

Installation

dagger install github.com/marcosnils/dagger/core/integration/testdata/modules/python/extended@dd48d1dddd6bd31eebe0ac0ad8d449f6d9d425a7

Entrypoint

Return Type
ExtPythonSdk !
Example
dagger -m github.com/marcosnils/dagger/core/integration/testdata/modules/python/extended@dd48d1dddd6bd31eebe0ac0ad8d449f6d9d425a7 call \
func (m *MyModule) Example() *dagger.ExtPythonSdk  {
	return dag.
			ExtPythonSdk()
}
@function
def example() -> dagger.ExtPythonSdk:
	return (
		dag.ext_python_sdk()
	)
@func()
example(): ExtPythonSdk {
	return dag
		.extPythonSdk()
}

Types

ExtPythonSdk 🔗

codegen() 🔗

Return Type
GeneratedCode !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-The source needed to load and run a module, along with any metadata about the source such as versions/urls/etc.
introspectionJsonFile !-A file.
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.GeneratedCode  {
	return dag.
			ExtPythonSdk().
			Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.GeneratedCode:
	return (
		dag.ext_python_sdk()
		.codegen(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
	return dag
		.extPythonSdk()
		.codegen(modSource, introspectionJson)
}

moduleDefs() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-The source needed to load and run a module, along with any metadata about the source such as versions/urls/etc.
introspectionJsonFile !-A file.
outputFilePathString !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File, outputFilePath string) *dagger.Container  {
	return dag.
			ExtPythonSdk().
			ModuleDefs(modSource, introspectionJson, outputFilePath)
}
@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File, output_file_path: str) -> dagger.Container:
	return (
		dag.ext_python_sdk()
		.module_defs(mod_source, introspection_json, output_file_path)
	)
@func()
example(modSource: ModuleSource, introspectionJson: File, outputFilePath: string): Container {
	return dag
		.extPythonSdk()
		.moduleDefs(modSource, introspectionJson, outputFilePath)
}

moduleRuntime() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
modSourceModuleSource !-The source needed to load and run a module, along with any metadata about the source such as versions/urls/etc.
introspectionJsonFile !-A file.
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example(modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.Container  {
	return dag.
			ExtPythonSdk().
			ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
	return (
		dag.ext_python_sdk()
		.module_runtime(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: File): Container {
	return dag
		.extPythonSdk()
		.moduleRuntime(modSource, introspectionJson)
}