constants¶
Constants used within the library.
FRONTMATTER_ID
module-attribute
¶
FRONTMATTER_ID = '0'
Paper ID that signals that a paper is frontmatter.
NO_BIBKEY
module-attribute
¶
NO_BIBKEY = '__NO_BIBKEY__'
Sentinel value to be set on a newly created paper, before its bibkeys is generated.
RE_BIBKEY
module-attribute
¶
RE_BIBKEY = f'^([a-z][a-z0-9-]+)|({NO_BIBKEY})$'
A regular expression matching a valid bibkey (following our conventions).
RE_EVENT_ID
module-attribute
¶
RE_EVENT_ID = '^[a-z0-9]+-[0-9]{4}$'
A regular expression matching a valid event ID.
RE_ISO_DATE
module-attribute
¶
RE_ISO_DATE = '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
A regular expression matching a date in ISO format.
RE_VENUE_ID
module-attribute
¶
RE_VENUE_ID = '^[a-z][a-z0-9]+$'
A regular expression matching a valid venue ID.