Input class
Functions
Initialize self. See help(type(self)) for accurate signature.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
type_ | Literal | normal | |
additional_info | dict |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
name | str | ||
port | PortType |
Creates a port.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
name | str | Name of the port | |
resource_spec | IOSpec |
Return type:
PortType |
Returns the resources of all the ports.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
port_name | str |
Return type:
PortType |
Returns the names of all the ports.
Return type:
List |
Get the resource_model of a port
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
port_name | str |
Return type:
ResourceModel |
Get the resource_model of a port
Return type:
Dict |
Returns the resources of all the ports to be used for the input of a task.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
new_instance | bool | False |
Return type:
Dict |
Returns the specs of all the ports.
Return type:
IOSpecs |
Return type:
dict |
summary return true if one of the ports contain the resource model
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
resource_model_id | str | Resource model id to check | |
include_sub_resouces | bool | False | If true, it also check if provided resource is inside resourcelistbase, defaults to false , optional |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
name | str |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
port_name | str |
Set the resource_model of a port
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
port_name | str | ||
resource_model | ResourceModel |
Return type:
IODTO |
Return type:
dict |
Update a port.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
name | str | Name of the port | |
resource_spec | IOSpec |
Return type:
PortType |
Returns the name of the class
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
slugify | bool | False | True to slugify the class name if true, defaults to false , optional |
snakefy | bool | False | True to snakefy the class name if true, defaults to false , optional |
replace_uppercase | bool | False | Replace upper cases by "-" if true, defaults to false , optional |
Return type:
str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
decorator_name | Any |
Returns the full name of the class
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
slugify | bool | False | Slugify the returned class name if true, defaults to false , optional |
snakefy | bool | False | Snakefy the returned class name if true, defaults to false `` |
Return type:
str |
Get all the classes that inherit this class
Return type:
List |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
io_dto | IODTO |
Return type:
IOType |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
io_json | dict |
Return type:
IOType |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
specs | IOSpecs |
Return type:
IOType |
Returns the list of the methods
Return type:
List |
Returns the module name of the class
Return type:
str |
Retrieves the property names
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
instance | type | The s of the properties to retrieve. set `none` to retrieve all. `type` or `union[type]` | |
exclude | type |
Return type:
List |