aionasa
An async python wrapper for NASA open APIs. (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:
# 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:
$ 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.
$ pip install aionasa ipython
$ ipython
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.
Metadata
Release files for aionasa 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aionasa-0.2.2.tar.gz | 16.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aionasa-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.1 kB
Release files / aionasa-0.2.2.tar.gz
| Download URL | aionasa-0.2.2.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3ffed9cf6bcc7f21bd1560ba84fc8e0d4aa66c5bd16b22d0d57be25e4379d0d
|
|
BLAKE2b-256 checksum How to use checksums |
5190007fc89cb0a5e7ec79f8984a8ae9d4e006aeb55333781621f4a8237dd118
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.7 Linux/7.2.9-200.nobara.fc44.x86_64
|
Release files / aionasa-0.2.2-py3-none-any.whl
| Download URL | aionasa-0.2.2-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe63695de5bda0d683436a6ee06f769368e3cca8174a7e9d130e3aab662406e7
|
|
BLAKE2b-256 checksum How to use checksums |
f04c441df131f51b73f3119d98e6b4a0fe0eddd72edec0b59132cc52efb3beab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.7 Linux/7.2.9-200.nobara.fc44.x86_64
|