files¶
Classes for representing and resolving file references.
AttachmentReference ¶
EventFileReference ¶
FileReference ¶
Base class for all references to local or remote files in the XML data.
Do not instantiate directly; use the sub-classes instead.
Attributes:
Name | Type | Description |
---|---|---|
template_field |
str
|
The URL formatting template to use. Set by the sub-classes. |
name |
str
|
The file reference (as found in the XML), typically a URL or an internal filename. |
checksum |
Optional[str]
|
The CRC32 checksum for the file. Only specified for internal filenames. |
from_xml
classmethod
¶
from_xml(elem)
Instantiates a new file reference from a corresponding XML element.
PDFReference ¶
PDFThumbnailReference ¶
PapersWithCodeReference ¶
Class aggregating Papers with Code (PwC) links in a paper.
Attributes:
Name | Type | Description |
---|---|---|
code |
Optional[tuple[str | None, str]]
|
An official code repository, given as a tuple of the form |
community_code |
bool
|
Whether the PwC page of the paper has additional, community-provided code links. |
datasets |
list[tuple[str | None, str]]
|
A list of datasets on PwC, given as tuples of the form |
append_from_xml ¶
append_from_xml(elem)
Appends information from a <pwccode>
or <pwcdataset>
block to this reference.