BaseRecord

class ntoseye.BaseRecord

An immutable, ordered set of named fields with dict access. It is the base of Record and of all typed result classes (PciFunction, …), whose properties give the type of each field.

__contains__(key: str, /) → bool
__getitem__(key: str, /) → Any
__iter__() → NameIterator
__len__() → int
get(key: str, default: Any | None = None) → Any

The field, or default if the record has no field with that name.

items() → list[tuple[str, Any]]

(name, value) pairs, in order.

keys() → list[str]

The field names, in order.

to_dict() → dict[str, Any]

A plain nested dict, with all records and diagnostics converted, for serializing or comparing a result.

values() → list[Any]

The field values, in order.