Welcome to arxivcheck’s documentation!

Install

pip install arxivcheck

arxivcheck

main.py

The core module of my example project

arxivcheck.arxiv.add_eprint_to_bib(bib, eprint)[source]

Insert the eprint information in a given bibtex string

Parameters:
  • bib (str) – The bibtex string without the arxiv number
  • eprint (str) – The arxiv number
Returns:

bib – The bibtex string with the arxiv number

Return type:

str

arxivcheck.arxiv.check_arxiv_published(value, field='id', get_first=True, keep_eprint=False)[source]
Parameters:
  • value (str) – value of the field
  • field (str) – field used for the arxiv search API
  • get_first (bool) –
  • keep_eprint (bool) – If True keep the arxiv number if the paper has already been published
Returns:

  • found (bool) – True if found the arxiv item
  • published (bool) – True if the arxiv has already been published
  • bib (str) – bibtext string

arxivcheck.arxiv.generate_bib_from_arxiv(arxiv_item, value, field='id')[source]
Parameters:
  • arxiv_item (dict) –
  • value (str) –
  • field (str) –
Returns:

bib – The bibtex string related with the arxiv item

Return type:

str

arxivcheck.arxiv.get_arxiv_info(value, field='id')[source]

Get arxiv information given

Parameters:
  • value (str) – value of the field
  • field (str) – the field used for build the query string
Returns:

  • found (bool) – True if at least one arxiv has been found
  • items (list of dicts) – List containing all the arxiv’s related with the search query

Examples

Given a arxiv id…

$ arxivcheck 1601.02785

Given a arxiv title

$ arxivcheck -t Periodic Table of Topological

Given a file of titles or ids

$ arxivcheck -i  arxivs.txt

check if has been published, and then returns the updated bib return outputs like

@article{2007Karianearxiv:math/0703567v2,
    author = {Kariane Calta and John Smillie},
    journal = {arxiv:math/0703567v2},
    title = {Algebraically periodic translation surfaces},
    url = {http://arxiv.org/abs/math/0703567v2},
    year = {2007}
}

@article{Bradlyn_2016,
    doi = {10.1126/science.aaf5037},
    url = {https://doi.org/10.1126%2Fscience.aaf5037},
    year = 2016,
    month = {jul},
    publisher = {American Association for the Advancement of Science ({AAAS})},
    volume = {353},
    number = {6299},
    pages = {aaf5037},
    author = {Barry Bradlyn and Jennifer Cano and Zhijun Wang and M. G. Vergniory and C. Felser and R. J. Cava and B. Andrei Bernevig},
    title = {Beyond Dirac and Weyl fermions: Unconventional quasiparticles in conventional crystals},
    journal = {Science}
}

Indices and tables