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()
}
@function
def example() -> dag.Python:
return (
dag.python()
)
@func()
example(): Python {
return dag
.python()
}
Types
Python
httpServer()
Start an HTTP server on a directory.
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
bind | IntegerKind | 8000 | No description provided |
pythonVersion | StringKind | "3.12" | No description provided |
Example
Function Python.httpServer is not accessible from the python module
func (m *myModule) example(src ) {
return dag.
Python().
HttpServer(src)
}
@function
def example(src: ) -> :
return (
dag.python()
.http_server(src)
)
@func()
example(src: ): {
return dag
.python()
.httpServer(src)
}
sphinx()
Create and build documentation with Sphinx.
Return Type
Sphinx !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | StringKind | - | No description provided |
Example
Function Python.sphinx is not accessible from the python module
func (m *myModule) example() {
return dag.
Python().
Sphinx()
}
@function
def example() -> :
return (
dag.python()
.sphinx()
)
@func()
example(): {
return dag
.python()
.sphinx()
}
Sphinx
quickstart()
Create and build a new Sphinx project.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
project | StringKind | "Sphinx Demo" | No description provided |
author | StringKind | "Kubecon 2023" | No description provided |
Example
Function PythonSphinx.quickstart is not accessible from the python module
Function PythonSphinx.quickstart is not accessible from the python module
Function PythonSphinx.quickstart is not accessible from the python module
Function PythonSphinx.quickstart is not accessible from the python module
build()
Generate HTML documentation from source files.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
Function PythonSphinx.build is not accessible from the python module
Function PythonSphinx.build is not accessible from the python module
Function PythonSphinx.build is not accessible from the python module
Function PythonSphinx.build is not accessible from the python module
preview()
Build and preview documentation in a browser.
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
Function PythonSphinx.preview is not accessible from the python module
Function PythonSphinx.preview is not accessible from the python module
Function PythonSphinx.preview is not accessible from the python module
Function PythonSphinx.preview is not accessible from the python module