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.
- Docs: https://ads.readthedocs.io/
- Repo: https://github.com/andycasey/ads
- PyPI: https://pypi.python.org/pypi/ads
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
Release history Release notifications | RSS feed
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.7.tar.gz
(36.3 kB
view details)
Built Distribution
ads-0.12.7-py3-none-any.whl
(40.9 kB
view details)
File details
Details for the file ads-0.12.7.tar.gz
.
File metadata
- Download URL: ads-0.12.7.tar.gz
- Upload date:
- Size: 36.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c02687302576c33944a91654a39156ef6d7f6093b26b9ecd49e7540bee1fde94 |
|
MD5 | f36e28d3bde13ccf13efec7f51abd553 |
|
BLAKE2b-256 | 1ae299bf906306ac4fc4b57cac083fdd4525a04fcb8151a60382f9ffb67196b6 |
File details
Details for the file ads-0.12.7-py3-none-any.whl
.
File metadata
- Download URL: ads-0.12.7-py3-none-any.whl
- Upload date:
- Size: 40.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e4a93a90c8567225e73c63fdbc881c16463efa86c2641abfeb80ddbc77d30ca |
|
MD5 | 5d4f8db3db2e55613bda8f3cf85937b0 |
|
BLAKE2b-256 | c749c01e64f5a9cd7e40eceb0e61f17b96a6e7355c3b0605653a605b66614bac |