inline-python
No long description provided.
Installation
dagger install github.com/samalba/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65Entrypoint
Return Type
InlinePython Example
dagger -m github.com/samalba/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 call \
func (m *MyModule) Example() *dagger.InlinePython {
return dag.
InlinePython()
}@function
def example() -> dagger.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 \
ctrfunc (m *MyModule) Example() *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/samalba/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 call \
with-package --name stringfunc (m *MyModule) Example(name string) *dagger.InlinePython {
return dag.
InlinePython().
WithPackage(name)
}@function
def example(name: str) -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| packages | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/samalba/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 call \
with-packages --packages string1 --packages string2func (m *MyModule) Example(packages []string) *dagger.InlinePython {
return dag.
InlinePython().
WithPackages(packages)
}@function
def example(packages: List[str]) -> dagger.InlinePython:
return (
dag.inline_python()
.with_packages(packages)
)@func()
example(packages: string[]): InlinePython {
return dag
.inlinePython()
.withPackages(packages)
}code() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| code | String ! | - | No description provided |
Example
dagger -m github.com/samalba/dagger-modules/inline-python@35ed3e343d7e6faa3eab44570ee7531914dd4e65 call \
code --code stringfunc (m *MyModule) Example(code string) *dagger.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)
}