Skip to content
Back to top
View this page

# ValueProgram

class dsviper.ValueProgram

  Bases: `object`

  A class used to retreive opcodes.

  Note: Not directly instantiable.

  all_opcodes() → list[ValueOpcode]

    Return the list of all opcodes.

  document_set_keys(attachment_runtime_id: ValueUUId) → set[ValueOpcodeKey]

    Return the set of ValueOpcodeKey of type ‘Document_Set’ associated with the attachment_runtime_id.

  has_document_set(opcode_key: ValueOpcodeKey) → bool

    Return True if an opcode ‘Document_Set’ is associated with the opcode_key.

  opcodes(attachment_runtime_id: ValueUUId, key: ValueKey) → list[ValueOpcode]

    Return the list of opcodes associated with attachment_runtime_id and the key.