NASA InSight Mars Raw Image API
Python library to access the raw images and metadata from the InSight Mars mission
Images are from nasa.gov
Args:
InSightAPI(order="desc", per_page="100", af="idc")
- per_page = 25 / 50 / 100
- af (camera) = idc / icc
- idc = Instrument Deployment Camera
- icc = Instrument Context Camera
Usage:
from insightmars import InSightAPI, utils
InSightMission = InSightAPI()
# Make initial request
json_request = InSightMission.make_request()
# Get image count
all_images = InSightMission.get_count(json_request)
# Get x number of image urls (order backwards, from newest to oldest)
images = InSightMission.get_images(json_request, x)
# Get image metadata:
metadata = InSightMission.get_metadata(json_request, image_id)
# Get x number of images + meatadata (order backwards, from newest to oldest)
metadata = InSightMission.get_images_metadata(json_request, x)
# Get all images available:
images = InSightMission.get_all(json_request)
# Download images:
utils.download_image(images, "images/", "sequential")
# Get specific sol
get_sol(data, sol)
# Get sols
get_sols(data, start_sol, end_sol)
Examples:
Metadata
Release files for insight-api 0.5
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 | Actions |
|---|---|---|---|---|
| insight-api-0.5.tar.gz | 3.2 kB | Without provenance | Details for insight-api-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| insight_api-0.5-py3-none-any.whl | Python 3 | none | any | Details for insight_api-0.5-py3-none-any.whl |
Total release size: 6.9 kB
Release files / insight-api-0.5.tar.gz
| Download URL | insight-api-0.5.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bed38457da822da70beef0655bda310ec87da446203a3a8cc33a011d7949e688
|
|
BLAKE2b-256 checksum How to use checksums |
534a93b6fd123bba8b080fbd7be610e5a8995eb927673352c2d4534788e90de4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.7.1
|
Release files / insight_api-0.5-py3-none-any.whl
| Download URL | insight_api-0.5-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b551db74db4920c1339d5a48860a5455d93f93a2bad713db186dc1fdfe70a93
|
|
BLAKE2b-256 checksum How to use checksums |
a9f007744ab24d8f9e6b79d85bb26f1d95d4e509339969c7ebf235f8027c2ab6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.7.1
|
Security for insight-api 0.5
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.