Examples

Download a PDF

PDF’s get be downloaded via an article

article.pdf.arxiv()
article.pdf.journal()
article.pdf.ads()

Download a Bibtex

Bibtex’s are also accessed via an article

article.export.bibtex()

Other export formats are available

dir(article.export)

Libraries

A list of all available libraries can be had with

import pyastroapi.libraries as libraries

libs - libraries.libraries()

lib is now a dict list object that supports both accessing via keys() to access via library name or via iteration (list style).

New libraries can be created with

libs.new(name='my library')

Libraries can be deleted via

libs.pop(name='my library')

This will remove the library from ADS. There is no recovery possible.

A single library can be accessed from libs

lib = libs["my library"]

Papers can be added to lib with

lib.add_bibcode("bibcode")

and removed with

lib.pop("bibcode")

A list of papers in the library can be accessed with

lib.keys()