Dagger
Search

inline-python

No long description provided.

Installation

dagger install github.com/samalba/inline-python-mod@2f5521e9bd43e5ac3219a36f930c0581dc299c74

Entrypoint

Return Type
InlinePython
Example
func (m *myModule) example() *InlinePython  {
	return dag.
			InlinePython()
}
@function
def example() -> dag.InlinePython:
	return (
		dag.inline_python()
	)
@func()
example(): InlinePython {
	return dag
		.inlinePython()
}

Types

InlinePython 🔗

ctr() 🔗

Return Type
Container !
Example
dagger -m github.com/samalba/inline-python-mod@2f5521e9bd43e5ac3219a36f930c0581dc299c74 call \
 ctr
func (m *myModule) example() *Container  {
	return dag.
			InlinePython().
			Ctr()
}
@function
def example() -> dagger.Container:
	return (
		dag.inline_python()
		.ctr()
	)
@func()
example(): Container {
	return dag
		.inlinePython()
		.ctr()
}

withPackage() 🔗

fixme: add usage

Return Type
InlinePython !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
Example
dagger -m github.com/samalba/inline-python-mod@2f5521e9bd43e5ac3219a36f930c0581dc299c74 call \
 with-package --name string \
 code --code string
func (m *myModule) example(name string) *InlinePython  {
	return dag.
			InlinePython().
			WithPackage(name)
}
@function
def example(name: str) -> dag.InlinePython:
	return (
		dag.inline_python()
		.with_package(name)
	)
@func()
example(name: string): InlinePython {
	return dag
		.inlinePython()
		.withPackage(name)
}

withPackages() 🔗

fixme: add usage

Return Type
InlinePython !
Arguments
NameTypeDefault ValueDescription
packages[String ! ] !-No description provided
Example
dagger -m github.com/samalba/inline-python-mod@2f5521e9bd43e5ac3219a36f930c0581dc299c74 call \
 with-packages --packages string1 --packages string2 \
 code --code string
func (m *myModule) example(packages []string) *InlinePython  {
	return dag.
			InlinePython().
			WithPackages(packages)
}
@function
def example(packages: List[str]) -> dag.InlinePython:
	return (
		dag.inline_python()
		.with_packages(packages)
	)
@func()
example(packages: string[]): InlinePython {
	return dag
		.inlinePython()
		.withPackages(packages)
}

code() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
codeString !-No description provided
Example
dagger -m github.com/samalba/inline-python-mod@2f5521e9bd43e5ac3219a36f930c0581dc299c74 call \
 code --code string
func (m *myModule) example(code string) *Container  {
	return dag.
			InlinePython().
			Code(code)
}
@function
def example(code: str) -> dagger.Container:
	return (
		dag.inline_python()
		.code(code)
	)
@func()
example(code: string): Container {
	return dag
		.inlinePython()
		.code(code)
}