arxiv.canonical.integrity.version module¶
-
class
arxiv.canonical.integrity.version.
IntegrityDay
(name, record=None, members=None, manifest=None, checksum=None)[source]¶ Bases:
arxiv.canonical.integrity.core.IntegrityBase
Integrity collection for e-prints associated with a single day.
Specifically, this includes all versions of e-prints the first version of which was announced on this day.
-
class
arxiv.canonical.integrity.version.
IntegrityEPrint
(name, record=None, members=None, manifest=None, checksum=None)[source]¶ Bases:
arxiv.canonical.integrity.core.IntegrityBase
Integrity collection for an
EPrint
.-
member_type
¶ alias of
IntegrityVersion
-
-
class
arxiv.canonical.integrity.version.
IntegrityEPrints
(name, record=None, members=None, manifest=None, checksum=None)[source]¶ Bases:
arxiv.canonical.integrity.core.IntegrityBase
Integrity collection for all e-prints in the canonical record.
-
class
arxiv.canonical.integrity.version.
IntegrityMonth
(name, record=None, members=None, manifest=None, checksum=None)[source]¶ Bases:
arxiv.canonical.integrity.core.IntegrityBase
Integrity collection for e-prints associated with a single month.
Specifically, this includes all versions of e-prints the first version of which was announced in this month.
-
class
arxiv.canonical.integrity.version.
IntegrityVersion
(name, record=None, members=None, manifest=None, checksum=None)[source]¶ Bases:
arxiv.canonical.integrity.core.IntegrityBase
Integrity collection for an e-print version.
-
property
formats
¶ Dict
[ContentType
,IntegrityEntry
]- Type
rtype
-
classmethod
from_record
(version, checksum=None, calculate_new_checksum=True, manifest=None)[source]¶ Get an
IntegrityVersion
from aRecordVersion
.- Parameters
version (
RecordVersion
) – The record for which this integrity object is to be generated.manifest (dict) – If provided, checksum values for member files will be retrieved from this manifest. Otherwise they will be calculated from the file content.
calculate_new_checksum (bool) – If
True
, a new checksum will be calculated from the manifest.
- Returns
- Return type
- Return type
~_Self
-
classmethod
make_manifest
(members)[source]¶ Make a
Manifest
for this integrity collection.- Return type
-
property
metadata
¶ -
- Type
rtype
-
property
render
¶ -
- Type
rtype
-
property
source
¶ -
- Type
rtype
-
property
-
class
arxiv.canonical.integrity.version.
IntegrityVersionMembers
[source]¶ Bases:
arxiv.canonical.util.GenericMonoDict
Member mapping that supports IntegrityEntry and IntegrityMetadata.
-
class
arxiv.canonical.integrity.version.
IntegrityYear
(name, record=None, members=None, manifest=None, checksum=None)[source]¶ Bases:
arxiv.canonical.integrity.core.IntegrityBase
Integrity collection for e-prints associated with a single year.
Specifically, this includes all versions of e-prints the first version of which was announced in this year.