arxiv.canonical.record.version module¶
-
class
arxiv.canonical.record.version.
RecordEPrint
(name, members, domain)[source]¶
-
class
arxiv.canonical.record.version.
RecordVersion
(name, members, domain)[source]¶ Bases:
arxiv.canonical.record.core.RecordBase
A collection of serialized components that make up a version record.
A version record is comprised of (1) a metadata record, (2) a source package, containing the original content provided by the submitter, and (3) a canonical rendering of the version (e.g. in PDF format).
The key prefix structure for an version record is:
` e-prints/<YYYY>/<MM>/<arXiv ID>/v<version>/ `
Where
YYYY
is the year andMM
the month during which the first version of the e-print was announced.Sub-keys are:
Metadata record:
<arXiv ID>v<version>.json
Source package:
<arXiv ID>v<version>.tar
PDF:
<arXiv ID>v<version>.render
Manifest:
<arXiv ID>v<version>.manifest.json
-
property
formats
¶ Dict
[ContentType
,RecordEntry
[~_EDomain]]- Type
rtype
-
classmethod
from_domain
(version, dereferencer, metadata=None)[source]¶ Serialize an
Version
to anRecordVersion
.- Return type
-
property
identifier
¶ -
- Type
rtype
-
instance_to_domain
()[source]¶ Deserialize an
RecordVersion
to anVersion
.- Return type
-
classmethod
make_manifest_key
(ident)[source]¶ Generate a full key that can be used to store a manifest.
- Return type
-
classmethod
make_prefix
(ident)[source]¶ Make a key prefix for an e-print record.
- Parameters
date (datetime.date) – The day on which the first version of the e-print was announced.
ident (str) – arXiv identifier
- Returns
- Return type
- Return type
-
property
metadata
¶ JSON document containing canonical e-print metadata.
- Return type
-
property
render
¶ Canonical PDF for the e-print.
- Return type
Optional
[RecordEntry
[~_EDomain]]
-
property
source
¶ Gzipped tarball containing the e-print source.
- Return type
RecordEntry
[~_EDomain]