Dagger
Search

python

No long description provided.

Installation

dagger install github.com/helderco/daggerverse/python@ba7984f47857794ff5aace82947aaf6b433595be

Entrypoint

Return Type
Python
Example
func (m *myModule) example() *Python  {
	return dag.
			Python()
}

Types

Python 🔗

httpServer() 🔗

Start an HTTP server on a directory.

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
bindIntegerKind 8000No description provided
pythonVersionStringKind "3.12"No description provided
Example
func (m *myModule) example(src )   {
	return dag.
			Python().
			HttpServer(src)
}

sphinx() 🔗

Create and build documentation with Sphinx.

Return Type
Sphinx !
Arguments
NameTypeDefault ValueDescription
versionStringKind -No description provided
Example
func (m *myModule) example()   {
	return dag.
			Python().
			Sphinx()
}

Sphinx 🔗

quickstart() 🔗

Create and build a new Sphinx project.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
projectStringKind "Sphinx Demo"No description provided
authorStringKind "Kubecon 2023"No description provided
Example
Function PythonSphinx.quickstart is not accessible from the python module

build() 🔗

Generate HTML documentation from source files.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function PythonSphinx.build is not accessible from the python module

preview() 🔗

Build and preview documentation in a browser.

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function PythonSphinx.preview is not accessible from the python module