arxiv.canonical.register.eprint module

Provides structs for organizing e-print metadata and content in the register.

The classes in this module extend Base with methods for naming themselves and manifests.

class arxiv.canonical.register.eprint.RegisterDay(name, domain, record, integrity, members=None)[source]

Bases: arxiv.canonical.register.core.Base

Representation of a day-block of e-prints in the canonical register.

domain_type

alias of arxiv.canonical.domain.block.EPrintDay

integrity_type

alias of arxiv.canonical.integrity.version.IntegrityDay

member_type

alias of RegisterEPrint

record_type

alias of arxiv.canonical.record.version.RecordDay

class arxiv.canonical.register.eprint.RegisterEPrint(name, domain, record, integrity, members=None)[source]

Bases: arxiv.canonical.register.core.Base

Representation of an e-print in the canonical register.

Organizes a series of one or more :class:`.RegisterVersion`s.

add_event_cross(s, sources, event)[source]

Add a cross-list event.

Return type

List[RegisterVersion]

add_event_migrate(s, sources, event)[source]

Add a data-migration event.

Return type

List[RegisterVersion]

add_event_migrate_metadata(s, sources, event)[source]

Add a metadata-migration event.

Return type

List[RegisterVersion]

add_event_new(s, sources, event)[source]

Add an event that results in a new version.

Return type

List[RegisterVersion]

add_event_replace(s, sources, event)[source]

Add an event that generates a replacement version.

Return type

List[RegisterVersion]

add_event_update(s, sources, event)[source]

Add an event that results in an update to a version.

Return type

List[RegisterVersion]

add_event_update_metadata(s, sources, event)[source]

Add an event that results in an update to metadata of a version.

Return type

List[RegisterVersion]

add_event_withdraw(s, sources, event)[source]

Add an event that withdraws an e-print.

Return type

List[RegisterVersion]

domain_type

alias of arxiv.canonical.domain.eprint.EPrint

integrity_type

alias of arxiv.canonical.integrity.version.IntegrityEPrint

member_type

alias of arxiv.canonical.register.version.RegisterVersion

record_type

alias of arxiv.canonical.record.version.RecordEPrint

class arxiv.canonical.register.eprint.RegisterEPrints(name, domain, record, integrity, members=None)[source]

Bases: arxiv.canonical.register.core.Base

Representation of the complete set of e-prints in the register.

domain_type

alias of arxiv.canonical.domain.block.AllEPrints

integrity_type

alias of arxiv.canonical.integrity.version.IntegrityEPrints

member_type

alias of RegisterYear

record_type

alias of arxiv.canonical.record.version.RecordEPrints

class arxiv.canonical.register.eprint.RegisterMonth(name, domain, record, integrity, members=None)[source]

Bases: arxiv.canonical.register.core.Base

Representation of a month-block in the canonical register.

domain_type

alias of arxiv.canonical.domain.block.EPrintMonth

integrity_type

alias of arxiv.canonical.integrity.version.IntegrityMonth

member_type

alias of RegisterDay

record_type

alias of arxiv.canonical.record.version.RecordMonth

class arxiv.canonical.register.eprint.RegisterYear(name, domain, record, integrity, members=None)[source]

Bases: arxiv.canonical.register.core.Base

Representation of a year-block in the canonical register.

domain_type

alias of arxiv.canonical.domain.block.EPrintYear

integrity_type

alias of arxiv.canonical.integrity.version.IntegrityYear

member_type

alias of RegisterMonth

record_type

alias of arxiv.canonical.record.version.RecordYear