arxiv_post.article module#

class arxiv_post.article.Article(title: str, authors: List[str], summary: str, arxiv_url: str, original: Article | None = None)[source]#

Bases: object

Dataclass for arXiv articles.

property arxiv_pdf_url: str#

arXiv PDF URL of the article.

arxiv_url: str#

arXiv URL of the article.

authors: List[str]#

Author list of the article.

classmethod from_arxiv_result(result: Result) Article[source]#

Create an article from an arXiv query result.

original: Article | None = None#

Original article before translation (if any).

replace(original: str, translated: str) Article[source]#

Text replacement method for translation.

summary: str#

Summary of the article.

title: str#

Title of the article.