caproto.server.PVSpec

Inheritance diagram of PVSpec
class caproto.server.PVSpec(get: Optional[caproto.server.typing.Getter] = None, put: Optional[caproto.server.typing.Putter] = None, startup: Optional[caproto.server.typing.Startup] = None, shutdown: Optional[caproto.server.typing.Shutdown] = None, attr: Optional[str] = None, name: Optional[str] = None, dtype: Optional[Any] = None, value: Optional[Any] = None, max_length: Optional[int] = None, alarm_group: Optional[str] = None, read_only: Optional[bool] = None, doc: Optional[str] = None, fields: Optional[Tuple[Tuple[Tuple[str, str], Union[caproto.server.typing.Getter, caproto.server.typing.Putter, caproto.server.typing.Startup, caproto.server.typing.Shutdown, caproto.server.typing.Scan]], ]] = None, scan=None, record: Optional[str] = None, cls_kwargs=None)[source]

Create new instance of PVSpec(get, put, startup, shutdown, attr, name, dtype, value, max_length, alarm_group, read_only, doc, fields, scan, record, cls_kwargs)

Methods

count(value, /)

Return number of occurrences of value.

create([group])

Create a ChannelData instance based on this PVSpec.

get_data_class([group])

Return the data class for a given PVSpec in a group.

get_instantiation_info([group])

Get class and instantiation arguments, given a parent group.

index(value[, start, stop])

Return first index of value.

new_names([attr, name])

Attributes

alarm_group

Alias for field number 9

attr

Alias for field number 4

cls_kwargs

Alias for field number 15

doc

Alias for field number 11

dtype

Alias for field number 6

fields

Alias for field number 12

get

Alias for field number 0

max_length

Alias for field number 8

name

Alias for field number 5

put

Alias for field number 1

read_only

Alias for field number 10

record

Alias for field number 14

scan

Alias for field number 13

shutdown

Alias for field number 3

startup

Alias for field number 2

value

Alias for field number 7