caproto.server.PVSpec

Inheritance diagram of PVSpec
class caproto.server.PVSpec(get: Getter | None = None, put: Putter | None = None, startup: Startup | None = None, shutdown: Shutdown | None = None, attr: str | None = None, name: str | None = None, dtype: Any | None = None, value: Any | None = None, max_length: int | None = None, alarm_group: str | None = None, read_only: bool | None = None, doc: str | None = None, fields: Tuple[Tuple[Tuple[str, str], Getter | Putter | Startup | Shutdown | Scan], ...] | None = None, scan=None, record: str | None = 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