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
Metadata
Release files for ads 0.12.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ads-0.12.7.tar.gz | 36.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ads-0.12.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.2 kB
Release files / ads-0.12.7.tar.gz
| Download URL | ads-0.12.7.tar.gz |
|---|---|
| Size | 36.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c02687302576c33944a91654a39156ef6d7f6093b26b9ecd49e7540bee1fde94
|
|
BLAKE2b-256 checksum How to use checksums |
1ae299bf906306ac4fc4b57cac083fdd4525a04fcb8151a60382f9ffb67196b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Release files / ads-0.12.7-py3-none-any.whl
| Download URL | ads-0.12.7-py3-none-any.whl |
|---|---|
| Size | 40.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e4a93a90c8567225e73c63fdbc881c16463efa86c2641abfeb80ddbc77d30ca
|
|
BLAKE2b-256 checksum How to use checksums |
c749c01e64f5a9cd7e40eceb0e61f17b96a6e7355c3b0605653a605b66614bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Security for ads 0.12.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.