Base IO class. The IO class defines base functionalitie for the Input and Output classes. A IO is a set of ports.
Functions
Initialize self. See help(type(self)) for accurate signature.
Name | Type | Default value | Description |
---|---|---|---|
type_ | Literal | normal | |
additional_info | dict |
Name | Type | Default value | Description |
---|---|---|---|
name | str | ||
port | PortType |
Creates a port.
Name | Type | Default value | Description |
---|---|---|---|
name | str | Name of the port | |
resource_spec | IOSpec |
PortType |
Returns the resources of all the ports.
Name | Type | Default value | Description |
---|---|---|---|
port_name | str |
PortType |
Returns the names of all the ports.
List |
Get the resource_model of a port
Name | Type | Default value | Description |
---|---|---|---|
port_name | str |
ResourceModel |
Get the resource_model of a port
Dict |
Returns the resources of all the ports to be used for the input of a task.
Name | Type | Default value | Description |
---|---|---|---|
new_instance | bool | False |
Dict |
Returns the specs of all the ports.
IOSpecs |
dict |
summary return true if one of the ports contain the resource model
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 |
bool |
Name | Type | Default value | Description |
---|---|---|---|
name | str |
bool |
Name | Type | Default value | Description |
---|---|---|---|
port_name | str |
Set the resource_model of a port
Name | Type | Default value | Description |
---|---|---|---|
port_name | str | ||
resource_model | ResourceModel |
IODTO |
dict |
Update a port.
Name | Type | Default value | Description |
---|---|---|---|
name | str | Name of the port | |
resource_spec | IOSpec |
PortType |
Returns the name of the class
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 |
str |
Name | Type | Default value | Description |
---|---|---|---|
decorator_name | Any |
Returns the full name of the class
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 `` |
str |
Get all the classes that inherit this class
List |
Name | Type | Default value | Description |
---|---|---|---|
io_dto | IODTO |
IOType |
Name | Type | Default value | Description |
---|---|---|---|
io_json | dict |
IOType |
Name | Type | Default value | Description |
---|---|---|---|
specs | IOSpecs |
IOType |
Returns the list of the methods
List |
Returns the module name of the class
str |
Retrieves the property names
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 |
List |