pypath.internals.resource.NetworkResourceKey§

class pypath.internals.resource.NetworkResourceKey(*args, **kwargs)[source]§

Bases: NetworkResourceKeyBase

__init__()§

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

data_model

Alias for field number 3

data_type

Alias for field number 1

interaction_type

Alias for field number 2

label

Returns (str): A label containing the resource name, and if it's a secondary resource, the name of the primary resource separated by an underscore.

last

Returns (str): The name of the resource where the data directly came from ignoring the primary resource.

name

Alias for field number 0

via

Alias for field number 4

count(value, /)§

Return number of occurrences of value.

data_model§

Alias for field number 3

data_type§

Alias for field number 1

index(value, start=0, stop=9223372036854775807, /)§

Return first index of value.

Raises ValueError if the value is not present.

interaction_type§

Alias for field number 2

property label§

Returns (str): A label containing the resource name, and if it’s a

secondary resource, the name of the primary resource separated by an underscore.

property last§

Returns (str): The name of the resource where the data directly came from

ignoring the primary resource.

name§

Alias for field number 0

via§

Alias for field number 4