https://github.com/nwunderly/aionasa
An async python wrapper for NASA open APIs.
https://github.com/nwunderly/aionasa
api-wrapper async nasa nasa-api nasa-data python python3
Last synced: 9 months ago
JSON representation
An async python wrapper for NASA open APIs.
- Host: GitHub
- URL: https://github.com/nwunderly/aionasa
- Owner: nwunderly
- License: mit
- Created: 2020-07-07T21:02:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-24T23:32:28.000Z (over 3 years ago)
- Last Synced: 2025-07-07T15:01:37.731Z (about 1 year ago)
- Topics: api-wrapper, async, nasa, nasa-api, nasa-data, python, python3
- Language: Python
- Homepage: https://aionasa.rtfd.io
- Size: 211 KB
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aionasa
An async python wrapper for NASA open APIs. ([api.nasa.gov](https://api.nasa.gov/))
#### Disclaimer
This module is still in the development/testing phase.
Bugs are still being worked out and breaking changes are common.
#### Current Progress: 5/17 APIs
- APOD: NASA Astronomy Picture of the Day
- API: **complete**
- CLI: **complete**
- Documentation: **complete**
- InSight: Mars Weather Data
- API: **complete**
- Documentation: **complete**
- EPIC: Earth Polychromatic Imaging Camera
- API: **complete**
- Documentation: **complete**
- Asteroids-NeoWs: Near Earth Object Web Service
- API: **complete**
- Documentation: **complete**
- Exoplanet: NASA Exoplanet Database
- API: **complete**
- Documentation: **complete**
#### Installing
aionasa can be installed from pypi with the command:
```sh
# Linux
python3 -m pip install -U aionasa
# Windows
python -m pip install -U aionasa
```
To install the development version of the library directly from source:
```sh
$ git clone https://github.com/nwunderly/aionasa
$ cd aionasa
$ python3 -m pip install -U .
```
#### Quickstart
We'll be using IPython because it supports `await` expressions directly from the console.
```sh
$ pip install aionasa ipython
$ ipython
```
```python
from aionasa import APOD, InSight
async with APOD() as apod:
picture = await apod.get()
picture.url # this will be the most recent APOD image URL.
async with InSight() as insight:
data = await insight.get()
data # this will be a dict containing the JSON data returned by the API.
```