Dagger
Search

poetry

This examples demostrates how any package manager that supports
pyproject.toml with a build backend (PEP 517) naturally works with
Dagger.

Python modules are installed with `pip install .` by the runtime container.
As long as a `main` package is installed in a way that's importable with
`import main`, it should work with Dagger.

Installation

dagger install github.com/helderco/daggerverse/poetry@v0.2.0

Entrypoint

Return Type
Poetry !
Example
dagger -m github.com/helderco/daggerverse/poetry@5fafda91fbcc8bc0ad0afc884e03ff40bf78717d call \
func (m *myModule) example() *Poetry  {
	return dag.
			Poetry()
}
@function
def example() -> dag.Poetry:
	return (
		dag.poetry()
	)
@func()
example(): Poetry {
	return dag
		.poetry()
}

Types

Poetry 🔗

Main object type for this module.

containerEcho() 🔗

Echo a string in an alpine container.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
stringArgString !-The string to echo
Example
dagger -m github.com/helderco/daggerverse/poetry@5fafda91fbcc8bc0ad0afc884e03ff40bf78717d call \
 container-echo --string-arg string
func (m *myModule) example(stringArg string) *Container  {
	return dag.
			Poetry().
			ContainerEcho(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
	return (
		dag.poetry()
		.container_echo(string_arg)
	)
@func()
example(stringArg: string): Container {
	return dag
		.poetry()
		.containerEcho(stringArg)
}

grepDir() 🔗

Find a pattern in a directory.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-The directory to search in
patternString !-The pattern to search for
Example
dagger -m github.com/helderco/daggerverse/poetry@5fafda91fbcc8bc0ad0afc884e03ff40bf78717d call \
 grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string  {
	return dag.
			Poetry().
			GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
	return await (
		dag.poetry()
		.grep_dir(directory_arg, pattern)
	)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
	return dag
		.poetry()
		.grepDir(directoryArg, pattern)
}