-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added citation customization options.
- Loading branch information
1 parent
df761db
commit 302baf8
Showing
3 changed files
with
83 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from pydantic import BaseModel | ||
from typing import List | ||
|
||
|
||
class Author(BaseModel): | ||
""" An author of a bibliography entry. """ | ||
|
||
first_name: str | ||
""" The first name of the author. """ | ||
|
||
middle_name: str | ||
""" The middle name of the author. """ | ||
|
||
last_name: str | ||
""" The last name of the author. """ | ||
|
||
|
||
class Entry(BaseModel): | ||
""" A bibliography entry. """ | ||
|
||
name: str | ||
""" The name of the entry. """ | ||
|
||
authors: List[Author] | ||
""" The authors of the entry. """ | ||
|
||
title: str | ||
""" The title of the entry. """ | ||
|
||
year: str | ||
""" The year of the entry. """ | ||
|
||
journal: str | ||
""" The journal of the entry. """ | ||
|
||
volume: str | ||
""" The volume of the entry. """ | ||
|
||
number: str | ||
""" The number of the entry. """ | ||
|
||
pages: str | ||
""" The pages of the entry. """ | ||
|
||
doi: str | ||
""" The DOI of the entry. """ | ||
|
||
url: str | ||
""" The URL of the entry. """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters