![]() ![]() Some less-used features from the original ads_bibdesk are gone: notably, the "ingest" and "preprint-update" modes.īut I plan to at least add back the "preprint-update" option, by scanning/updating article_bibcode associated with arXiv). The macOS Automator workflow is running the installed console script rather than an embedded Python program.optparser->argparser, f-string formatting, and use configparser() replace obsolete Python syntax/functions/modules with newer ones, e.g.Other changes from the original ads_bibdesk include: add/update the BibDesk database and attach downloaded PDFs (largely borrowing the AppleScript method from the original ads_bibdesk).use an authorized on-campus ssh proxy machine (with your public key) to download PDFs behind the journal paywall.download article PDFs using the ADS gateway links.query the article metadata (title, abstract, BibTeX, etc.) with the new API by article identifiers (no more in-house ADS/arxiv HTML parsing functions).The following functions have already been implemented in the package: On my working machine (Catalina), I set Python 3.8 from MacPorts as default: sudo port install python38 p圓8-pip p圓8-ipython While the program likely works on slightly older software versions, I don't focus on the backward compatibility. I've only tested the program on the following macOS setup: Choose 'Services > Add to Bibdesk' from the right-click menu.Highligh and right-click on the article identifider.Copy the article identifider to the clipboard, in any application.1998ApJ.500.525S, 2019arXiv190404507R)Ī full summary of ads2bibdesk commands is available via: ads2bibdesk -help The service shortcut will not work within some applications (e.g., Safari) on macOS >=10.14 due to new privacy and security features built in macOS (see this issue)Īdd or update a new article from ADS: ads2bibdesk "1807.04291"Īds2bibdesk accepts three kinds of article identifier at this moment.They simply wrap around the command line program and serve as its shortcuts. Both the macOS service and app are based on the Automator workflow).With the "-user" option, you must add the user-level bin directory (e.g., ~/Library/Python/3.X/bin) to your PATH environment variable in order to launch ads2bibdesk.Only Python >=3.7 is supported (see below).For the app, just drag and drop it to any preferred location. To install the service, click Add to BibDesk.workflow and it will be moved to ~/Library/Services/. The option "-service" will create two files Add to BibDesk.workflow and Add to BibDesk.app in ~/Downloads/. Pip install -user -U -no-deps -force-reinstall -install-option= "-service " ads2bibdesk # from PyPI The command line script can be installed via: The API key can be written into your ads2bibdesk preference file ~/.ads/ads2bibdesk.cfg (see the template).įollowing the Python/ads package's instruction, one can also save the key to ~/.ads/dev_key or as an environment variable named ADS_DEV_KEY.Ĭredit to the contributors of the original for their initial implementation. Push the “Generate a new key” button under Customize Settings -> Account Settings -> API Token.Create an account and log in to the latest version of the ADS.In short, to obtain access to the ADS Developer API, one must do two things: The instruction on how to obtain a key can be found on this official github repo: adsabs-dev-api. The project packaging now follows the new PyPA guideline.ĭue to the API usage, ads2bibdesk requires the user to specify a personal API key, per the new NASA/ADS policy. The macOS workflow building process have been updated. Obsolete codes are replaced in favor of newer built-in Python modules with a simplified code structure. However, the query is handled with a python client for the ADS API ( ads, maintained by A. The program is loosely based on the original ads_bibdesk from J. Ads2bibdesk helps you add astrophysics articles listed on NASA/ADS to your BibDesk database using the new ADS Developer API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |