Types
Download
Bases: OutputParamType, ClickPath
A class that inherits from OutputParamType and ClickPath. It represents a download parameter type.
Source code in src/guigaga/types.py
__init__(filename, *args, **kwargs)
Initializes a Download instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename |
The name of the file to download. |
required | |
*args |
Variable length argument list. |
()
|
|
**kwargs |
Arbitrary keyword arguments. |
{}
|
Source code in src/guigaga/types.py
render(schema)
Renders the download component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema |
OptionSchema | ArgumentSchema
|
The schema to render. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Component |
Component
|
The rendered component. |
Source code in src/guigaga/types.py
FileExplorer
Bases: InputParamType, ClickPath
A class that inherits from InputParamType and ClickPath. It represents a file explorer parameter type.
Source code in src/guigaga/types.py
__init__(*args, **kwargs)
Initializes a FileExplorer instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args |
Variable length argument list. |
()
|
|
**kwargs |
Arbitrary keyword arguments. |
{}
|
render(schema)
Renders the file explorer component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema |
OptionSchema | ArgumentSchema
|
The schema to render. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Component |
Component
|
The rendered component. |
Source code in src/guigaga/types.py
FilePath
Bases: File
A class that inherits from File. It represents a file path.
Source code in src/guigaga/types.py
__init__(*args, **kwargs)
Initializes a FilePath instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args |
Variable length argument list. |
()
|
|
**kwargs |
Arbitrary keyword arguments. |
{}
|
InputParamType
OutputParamType
ParamType
Bases: ClickParamType, ABC
An abstract base class that inherits from ClickParamType and ABC. It provides a blueprint for parameter types.
Source code in src/guigaga/types.py
render(schema)
abstractmethod
An abstract method that must be implemented by any class that inherits from ParamType.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema |
OptionSchema | ArgumentSchema
|
The schema to render. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Component |
Component
|
The rendered component. |
Source code in src/guigaga/types.py
Upload
Bases: InputParamType, ClickPath
A class that inherits from InputParamType and ClickPath. It represents an upload parameter type.
Source code in src/guigaga/types.py
__init__(*args, **kwargs)
Initializes an Upload instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args |
Variable length argument list. |
()
|
|
**kwargs |
Arbitrary keyword arguments. |
{}
|
render(schema)
Renders the upload component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema |
OptionSchema | ArgumentSchema
|
The schema to render. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Component |
Component
|
The rendered component. |