python
No long description provided.
Installation
dagger install github.com/helderco/daggerverse/python@ba7984f47857794ff5aace82947aaf6b433595beEntrypoint
Return Type
Python Example
dagger -m github.com/helderco/daggerverse/python@ba7984f47857794ff5aace82947aaf6b433595be call \
func (m *MyModule) Example() *dagger.Python {
return dag.
Python()
}@function
def example() -> dagger.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
dagger -m github.com/helderco/daggerverse/python@ba7984f47857794ff5aace82947aaf6b433595be call \
http-serverfunc (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
dagger -m github.com/helderco/daggerverse/python@ba7984f47857794ff5aace82947aaf6b433595be call \
sphinxfunc (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 moduleFunction PythonSphinx.quickstart is not accessible from the python moduleFunction PythonSphinx.quickstart is not accessible from the python moduleFunction PythonSphinx.quickstart is not accessible from the python modulebuild() 🔗
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 moduleFunction PythonSphinx.build is not accessible from the python moduleFunction PythonSphinx.build is not accessible from the python moduleFunction PythonSphinx.build is not accessible from the python modulepreview() 🔗
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 moduleFunction PythonSphinx.preview is not accessible from the python moduleFunction PythonSphinx.preview is not accessible from the python moduleFunction PythonSphinx.preview is not accessible from the python module