Skip to main content

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.

Release files for aionasa 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aionasa 0.2.1
File Size Uploaded
aionasa-0.2.1.tar.gz 17.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aionasa 0.2.1
File Interpreter ABI Platform
aionasa-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size:42.1 kB

Release files / aionasa-0.2.1.tar.gz

Download URL aionasa-0.2.1.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c86c58ae1a65098d20bb101c72c17492e19a16f9abfd70e5c2bd1617ae564198
BLAKE2b-256 checksum
How to use checksums
167c2787e45d53b055b8a3b4d4afee2f08392f6e3bff419ded1b52c575f63bd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release files / aionasa-0.2.1-py3-none-any.whl

Download URL aionasa-0.2.1-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3b1637f33258e8b76d84afaca42d50758cfce7bdd64730fbef0d70394feeb06
BLAKE2b-256 checksum
How to use checksums
e3e84f8cb44f0476dcf9389c9bdc822463021ab4fba83b530216cd01859533b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page