arxiv.canonical.record.core module¶
Base classes and core concepts for arxiv.canonical.record
.
-
class
arxiv.canonical.record.core.
RecordBase
(name, members, domain)[source]¶ Bases:
typing.Generic
Generic base class for record collections in this module.
This produces a uniform protocol for record collections, while allowing name, member, and member name types to vary across collection subclasses.
-
class
arxiv.canonical.record.core.
RecordEntry
(key, stream, domain)[source]¶ Bases:
typing.Generic
An entry in the canonical record.
Comprised of a
RecordStream
and a domain representation of the entry (i.e. the application-level interpretation of the stream).-
key
= None¶ Full key (path) at which the entry is stored.
-
-
class
arxiv.canonical.record.core.
RecordEntryMembers
[source]¶ Bases:
arxiv.canonical.util.GenericMonoDict
A dict that returns only :class: .RecordEntry instances.
Consistent with
Mapping[str, RecordEntry]
.