Dagger
Search

ext-python-sdk

No long description provided.

Installation

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

Entrypoint

Return Type
ExtPythonSdk !
Arguments
NameTypeDefault ValueDescription
requiredPaths[String ! ] -No description provided
Example
dagger -m github.com/marcosnils/dagger/core/integration/testdata/modules/python/extended@8c0cefb0e8d3f16307e7c93c2a11e9095d501fed call \
func (m *myModule) example() *ExtPythonSdk  {
	return dag.
			ExtPythonSdk()
}
@function
def example() -> dag.ExtPythonSdk:
	return (
		dag.ext_python_sdk()
	)
@func()
example(): ExtPythonSdk {
	return dag
		.extPythonSdk()
}

Types

ExtPythonSdk 🔗

requiredPaths() 🔗

Return Type
[String ! ] !
Example
dagger -m github.com/marcosnils/dagger/core/integration/testdata/modules/python/extended@8c0cefb0e8d3f16307e7c93c2a11e9095d501fed call \
 required-paths
func (m *myModule) example(ctx context.Context) []string  {
	return dag.
			ExtPythonSdk().
			RequiredPaths(ctx)
}
@function
async def example() -> List[str]:
	return await (
		dag.ext_python_sdk()
		.required_paths()
	)
@func()
async example(): Promise<string[]> {
	return dag
		.extPythonSdk()
		.requiredPaths()
}

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 *ModuleSource, introspectionJson *File) *GeneratedCode  {
	return dag.
			ExtPythonSdk().
			Codegen(modSource, introspectionJson)
}
@function
def example(mod_source: dag.ModuleSource, introspection_json: dagger.File) -> dag.GeneratedCode:
	return (
		dag.ext_python_sdk()
		.codegen(mod_source, introspection_json)
	)
@func()
example(modSource: ModuleSource, introspectionJson: File): GeneratedCode {
	return dag
		.extPythonSdk()
		.codegen(modSource, introspectionJson)
}

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 *ModuleSource, introspectionJson *File) *Container  {
	return dag.
			ExtPythonSdk().
			ModuleRuntime(modSource, introspectionJson)
}
@function
def example(mod_source: dag.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)
}