Dagger
Search

inline-python

No long description provided.

Installation

dagger install github.com/samalba/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65

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/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 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/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 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/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 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/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 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)
}