inlinePython
No long description provided.
Installation
dagger install github.com/samalba/inline-python-mod@4a1e9d9f4cf71337e9aeb3406578333e1ddde9a1
Entrypoint
Return Type
InlinePython
Example
dagger -m github.com/samalba/inline-python-mod@4a1e9d9f4cf71337e9aeb3406578333e1ddde9a1 call \
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@4a1e9d9f4cf71337e9aeb3406578333e1ddde9a1 call \
ctr
func (m *myModule) example() {
return dag.
InlinePython().
Ctr()
}
@function
def example() -> :
return (
dag.inline_python()
.ctr()
)
@func()
example(): {
return dag
.inlinePython()
.ctr()
}
withPackage() 🔗
Return Type
InlinePython !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | StringKind ! | - | No description provided |
Example
dagger -m github.com/samalba/inline-python-mod@4a1e9d9f4cf71337e9aeb3406578333e1ddde9a1 call \
with-package
func (m *myModule) example(name ) {
return dag.
InlinePython().
WithPackage(name)
}
@function
def example(name: ) -> :
return (
dag.inline_python()
.with_package(name)
)
@func()
example(name: ): {
return dag
.inlinePython()
.withPackage(name)
}
withPackages() 🔗
Return Type
InlinePython !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
packages | [StringKind ! ] ! | - | No description provided |
Example
dagger -m github.com/samalba/inline-python-mod@4a1e9d9f4cf71337e9aeb3406578333e1ddde9a1 call \
with-packages
func (m *myModule) example(packages ) {
return dag.
InlinePython().
WithPackages(packages)
}
@function
def example(packages: ) -> :
return (
dag.inline_python()
.with_packages(packages)
)
@func()
example(packages: ): {
return dag
.inlinePython()
.withPackages(packages)
}
code() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
code | StringKind ! | - | No description provided |
Example
dagger -m github.com/samalba/inline-python-mod@4a1e9d9f4cf71337e9aeb3406578333e1ddde9a1 call \
code
func (m *myModule) example(code ) {
return dag.
InlinePython().
Code(code)
}
@function
def example(code: ) -> :
return (
dag.inline_python()
.code(code)
)
@func()
example(code: ): {
return dag
.inlinePython()
.code(code)
}