Skip to main content

A Python module for NASA's ADS that doesn't suck.

Project description

A Python Module to Interact with NASA's ADS that Doesn't Suck™

If you're in astro research, then you pretty much need NASA's ADS. It's tried, true, and people go crazy on the rare occasions when it goes down.

Build Status Coverage Status

Quickstart

import ads
ads.config.token = 'secret token'

papers = ads.SearchQuery(q="supernova", sort="citation_count")
for paper in papers:
    print(paper.title[0])

You can expect to see some titles like this:

Maps of Dust Infrared Emission for Use in Estimation of Reddening and Cosmic Microwave Background Radiation Foregrounds
Measurements of Omega and Lambda from 42 High-Redshift Supernovae
Observational Evidence from Supernovae for an Accelerating Universe and a Cosmological Constant
First-Year Wilkinson Microwave Anisotropy Probe (WMAP) Observations: Determination of Cosmological Parameters
Abundances of the elements: Meteoritic and solar

Running tests

cd /path/to/ads
pip install -e . "ads[tests]"
python -m unittest discover

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

ads-0.12.6.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

ads-0.12.6-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file ads-0.12.6.tar.gz.

File metadata

  • Download URL: ads-0.12.6.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for ads-0.12.6.tar.gz
Algorithm Hash digest
SHA256 b4caeb5df31b735973afdb7d8c471d93020b620d2058f4a94be97358f5fa51a1
MD5 cc82cc0c189d32751357f3368bb7cd4f
BLAKE2b-256 1728520817349e7957af809e83aaec3d560d36876203d7ed03f2797c64af1752

See more details on using hashes here.

Provenance

File details

Details for the file ads-0.12.6-py3-none-any.whl.

File metadata

  • Download URL: ads-0.12.6-py3-none-any.whl
  • Upload date:
  • Size: 40.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for ads-0.12.6-py3-none-any.whl
Algorithm Hash digest
SHA256 82dd5ac169294ee2c5b1d809acad9b820000a942018a11867419b9b5a9835bb0
MD5 f57bb81d5a8f9f58113f7c11f1d63224
BLAKE2b-256 b3fa7b3e8dc007354db33d60a38892cc54906af9748d6f2ac5e62370062fc95b

See more details on using hashes here.

Provenance

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