arxiv.canonical.domain.file module¶
Provides bitstream-related concepts and logic.
-
class
arxiv.canonical.domain.file.
CanonicalFile
(modified, size_bytes, content_type, ref, filename=None, is_gzipped=False)[source]¶ Bases:
arxiv.canonical.domain.base.CanonicalBase
Represents a file in the canonical record, e.g. a source package.
-
content_type
= None¶ The content type of the file.
-
exclude_from_comparison
= {'is_gzipped', 'ref'}¶
-
filename
= None¶ Filename in the canonical record.
-
classmethod
from_dict
(data)[source]¶ Reconstitute a
CanonicalFile
from a native dict.- Return type
-
is_gzipped
= None¶ Whether or not the content at
ref
is served in gzipped form.
-
modified
= None¶ Last time the file was modified.
-
ref
= None¶ A reference to the location of the content of the file.
-
size_bytes
= None¶ Size of the file in bytes.
-
-
class
arxiv.canonical.domain.file.
Key
(value)[source]¶ Bases:
arxiv.canonical.domain.file.URI
The unique identifier for a bitstream in the canonical record.