Skip to main content

Simple ADS API query package and citation tracker

Project description

PyPI version PyPI - Python Version

myADS

myADS is a simple package to keep track of citations to your (and other authors) papers.

It both reports the authors current paper citation metrics, and checks for any new cites to the authors papers since the last time of checking.

Once installed you can always run myads --help to see a list of available commands.

Installation

The easiest method is to install directly from PyPi via:

pip install myads

From source

To install from source:

  • Clone the repository using git clone https://github.com/stuartmcalpine/myADS.git
  • Navigate to the myADS folder
  • Install using pip install .

Getting set up

myADS can keep track of the citations for multiple authors. Two steps before you get started:

  • Initialize the database
  • Add your authors you want to track to the database
  • Add your ADS API token to the database

Initialize the database

The database needs a one time initialization. To do this run

myads initialize

which will create a sqlite database at $HOME/myADS_database.db.

Adding a author to the database

Once myADS is installed you can add the authors you wish to track using:

myads author add

You will be prompted to enter a first and last name, and an optional ORCID (however it is recommended you add this for each author when possible).

Removing a author from the database

You can remove authors from the tracking database using:

myads author remove <author id>

You can get a list of author IDs by typing:

myads author list

Adding your ADS API token

You must add your ADS API token so the package can query on your behalf.

To add it run:

myads token add <YOUR-API-TOKEN-HERE>

Usage

Citation reporter

If you run myads report you will get a report of all your tracked authors current citations, e.g.,

Reporting cites for Stuart McAlpine...
+----------------------------------------------------+--------------+---------------+---------------------+
| Title                                              | Citations    | Publication   | Bibcode             |
|                                                    | (per year)   | Date          |                     |
+====================================================+==============+===============+=====================+
| Galaxy mergers in EAGLE do not induce a            | 34 (12.0)    | 2020-06-00    | 2020MNRAS.494.5713M |
| significant amount of black hole growth yet do     |              |               |                     |
| increase the rate of luminous AGN                  |              |               |                     |
+----------------------------------------------------+--------------+---------------+---------------------+

Citation tracker

If you run myads check it will tell you any papers that have cited your tracked authors papers since the last call.

The first time you run this it will create a local database of your citations. From then on it will update the local database with your new cites and report the changes, e.g.,

 1 new cite(s) for Galaxy mergers in EAGLE do not induce a significant amount of black hole growth yet do increase the rate of luminous AGN
+----------------------------------------+--------------------------------------+------------+---------------------+
| Title                                  | Authors                              | Date       | Bibcode             |
+========================================+======================================+============+=====================+
| The breakBRD Breakdown: Using          | ['Kopenhafer, Claire', 'Starkenburg, | 2020-11-01 | 2020ApJ...903..143K |
| IllustrisTNG to Track the Quenching of | Tjitske K.', 'Tonnesen, Stephanie',  |            |                     |
| an Observationally Motivated Sample of | 'Tuttle, Sarah']                     |            |                     |
| Centrally Star-forming Galaxies        |                                      |            |                     |
+----------------------------------------+--------------------------------------+------------+---------------------+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myads-1.3.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

myads-1.3.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file myads-1.3.1.tar.gz.

File metadata

  • Download URL: myads-1.3.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for myads-1.3.1.tar.gz
Algorithm Hash digest
SHA256 1a4c8eb36f8783d2ec722316aa4a546838d2b7a722b51955d40396c128cf5c77
MD5 ef54960509397227fdfd5a854be7412e
BLAKE2b-256 26445d89294bf54f81fb95b39183bff6bf84afb5023091a7c5e28e11c9cf799a

See more details on using hashes here.

File details

Details for the file myads-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: myads-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for myads-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e14beb0e4182ad0a68e0e86c0f1d77dbec7a7181f5937348b451575b9defcf12
MD5 6c40434f30c1752603cd458c6a6db2f1
BLAKE2b-256 b7f9b7e5113ecb90d9ad27baec6ffb4cd1d6d45ebf465d62da0dc41ec3ddb2d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page