nasa-apis-wrapper 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nasa_apis_wrapper-0.1.0/.claude/settings.local.json +71 -0
- nasa_apis_wrapper-0.1.0/.gitattributes +2 -0
- nasa_apis_wrapper-0.1.0/.gitignore +166 -0
- nasa_apis_wrapper-0.1.0/LICENSE +21 -0
- nasa_apis_wrapper-0.1.0/PKG-INFO +369 -0
- nasa_apis_wrapper-0.1.0/README.md +323 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/__init__.py +466 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/apod/__init__.py +22 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/apod/models.py +61 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/apod/service.py +56 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/asteroids_neows/__init__.py +25 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/asteroids_neows/models.py +282 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/asteroids_neows/service.py +64 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/base/__init__.py +21 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/base/api.py +118 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/cneos/__init__.py +55 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/cneos/models.py +455 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/cneos/service.py +729 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/donki/__init__.py +67 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/donki/models.py +240 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/donki/service.py +164 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/earth/__init__.py +8 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/earth/models.py +30 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/earth/service.py +116 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/eonet/__init__.py +47 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/eonet/models.py +214 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/eonet/service.py +165 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/epic/__init__.py +21 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/epic/models.py +68 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/epic/service.py +129 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/exoplanet/__init__.py +9 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/exoplanet/models.py +114 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/exoplanet/service.py +189 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/gibs/__init__.py +11 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/gibs/models.py +57 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/gibs/service.py +277 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/image_library/__init__.py +33 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/image_library/models.py +185 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/image_library/service.py +139 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/insight/__init__.py +23 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/insight/models.py +158 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/insight/service.py +39 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/mars_rover/__init__.py +29 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/mars_rover/models.py +119 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/mars_rover/service.py +181 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/osdr/__init__.py +35 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/osdr/models.py +230 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/osdr/service.py +463 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/ssc/__init__.py +43 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/ssc/models.py +198 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/ssc/service.py +319 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/techport/__init__.py +31 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/techport/models.py +266 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/techport/service.py +268 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/techtransfer/__init__.py +23 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/techtransfer/models.py +183 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/techtransfer/service.py +125 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/tle/__init__.py +9 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/tle/models.py +47 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/tle/service.py +97 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/trek/__init__.py +39 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/trek/models.py +153 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/trek/service.py +528 -0
- nasa_apis_wrapper-0.1.0/nasa_apis_wrapper/utils.py +6 -0
- nasa_apis_wrapper-0.1.0/pyproject.toml +49 -0
- nasa_apis_wrapper-0.1.0/tests/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/apod/test_apod_service.py +54 -0
- nasa_apis_wrapper-0.1.0/tests/asteroids_neows/test_neows_service.py +133 -0
- nasa_apis_wrapper-0.1.0/tests/base/test_base_api.py +173 -0
- nasa_apis_wrapper-0.1.0/tests/cneos/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/cneos/test_cneos_service.py +462 -0
- nasa_apis_wrapper-0.1.0/tests/donki/test_donki_service.py +346 -0
- nasa_apis_wrapper-0.1.0/tests/earth/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/earth/test_earth_service.py +125 -0
- nasa_apis_wrapper-0.1.0/tests/eonet/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/eonet/test_eonet_service.py +178 -0
- nasa_apis_wrapper-0.1.0/tests/epic/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/epic/test_epic_service.py +76 -0
- nasa_apis_wrapper-0.1.0/tests/exoplanet/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/exoplanet/test_exoplanet_service.py +129 -0
- nasa_apis_wrapper-0.1.0/tests/gibs/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/gibs/test_gibs_service.py +147 -0
- nasa_apis_wrapper-0.1.0/tests/image_library/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/image_library/test_image_library_service.py +175 -0
- nasa_apis_wrapper-0.1.0/tests/insight/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/insight/test_insight_service.py +116 -0
- nasa_apis_wrapper-0.1.0/tests/mars_rover/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/mars_rover/test_mars_rover_service.py +276 -0
- nasa_apis_wrapper-0.1.0/tests/osdr/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/osdr/test_osdr_service.py +260 -0
- nasa_apis_wrapper-0.1.0/tests/ssc/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/ssc/test_ssc_service.py +241 -0
- nasa_apis_wrapper-0.1.0/tests/techport/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/techport/test_techport_service.py +345 -0
- nasa_apis_wrapper-0.1.0/tests/techtransfer/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/techtransfer/test_techtransfer_service.py +302 -0
- nasa_apis_wrapper-0.1.0/tests/test_utils.py +30 -0
- nasa_apis_wrapper-0.1.0/tests/tle/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/tle/test_tle_service.py +168 -0
- nasa_apis_wrapper-0.1.0/tests/trek/__init__.py +0 -0
- nasa_apis_wrapper-0.1.0/tests/trek/test_trek_service.py +462 -0
- nasa_apis_wrapper-0.1.0/uv.lock +634 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(poetry run *)",
|
|
5
|
+
"Bash(python -m pytest --tb=short)",
|
|
6
|
+
"Bash(python3 -m pytest --tb=short)",
|
|
7
|
+
"Read(//Users/jonathanroddev/.local/bin/**)",
|
|
8
|
+
"Read(//opt/**)",
|
|
9
|
+
"Bash(uv --version)",
|
|
10
|
+
"Bash(uv sync *)",
|
|
11
|
+
"Bash(uv run *)",
|
|
12
|
+
"WebFetch(domain:pypi.org)",
|
|
13
|
+
"WebSearch",
|
|
14
|
+
"WebFetch(domain:github.com)",
|
|
15
|
+
"WebFetch(domain:pypistats.org)",
|
|
16
|
+
"WebFetch(domain:eonet.gsfc.nasa.gov)",
|
|
17
|
+
"WebFetch(domain:api.nasa.gov)",
|
|
18
|
+
"WebFetch(domain:epic.gsfc.nasa.gov)",
|
|
19
|
+
"WebFetch(domain:exoplanetarchive.ipac.caltech.edu)",
|
|
20
|
+
"WebFetch(domain:kauai.ccmc.gsfc.nasa.gov)",
|
|
21
|
+
"WebFetch(domain:ccmc.gsfc.nasa.gov)",
|
|
22
|
+
"WebFetch(domain:nasa-gibs.github.io)",
|
|
23
|
+
"WebFetch(domain:gibs.earthdata.nasa.gov)",
|
|
24
|
+
"WebFetch(domain:aionasa.nwunder.com)",
|
|
25
|
+
"WebFetch(domain:mars-insight.readthedocs.io)",
|
|
26
|
+
"WebFetch(domain:images.nasa.gov)",
|
|
27
|
+
"WebFetch(domain:images-api.nasa.gov)",
|
|
28
|
+
"WebFetch(domain:www.postman.com)",
|
|
29
|
+
"WebFetch(domain:osdr.nasa.gov)",
|
|
30
|
+
"WebFetch(domain:www.nasa.gov)",
|
|
31
|
+
"WebFetch(domain:visualization.osdr.nasa.gov)",
|
|
32
|
+
"WebFetch(domain:osdr-tutorials.readthedocs.io)",
|
|
33
|
+
"WebFetch(domain:sscweb.gsfc.nasa.gov)",
|
|
34
|
+
"WebFetch(domain:ssd-api.jpl.nasa.gov)",
|
|
35
|
+
"WebFetch(domain:techport.nasa.gov)",
|
|
36
|
+
"WebFetch(domain:data.nasa.gov)",
|
|
37
|
+
"WebFetch(domain:apis.guru)",
|
|
38
|
+
"WebFetch(domain:raw.githubusercontent.com)",
|
|
39
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/projects/search?limit=3&titleSearch=mars&offset=0\")",
|
|
40
|
+
"Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\('total:', d.get\\('total'\\)\\); print\\('keys:', list\\(d.keys\\(\\)\\)\\); [print\\(r.get\\('title','?'\\)\\) for r in d.get\\('results',[]\\)]\")",
|
|
41
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/projects/search?limit=1&offset=0\")",
|
|
42
|
+
"Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\('top keys:', list\\(d.keys\\(\\)\\)\\); print\\('total:', d.get\\('total'\\)\\); print\\('offset:', d.get\\('offset'\\)\\); print\\('stats:', d.get\\('stats'\\)\\); print\\('spellingSuggestions:', d.get\\('spellingSuggestions'\\)\\)\")",
|
|
43
|
+
"Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\('total:', d.get\\('total'\\)\\); [print\\(r.get\\('title','?'\\)\\) for r in d.get\\('results',[]\\)]\")",
|
|
44
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/projects/182467\")",
|
|
45
|
+
"Bash(python3 -c ' *)",
|
|
46
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/projects?updatedSince=2026-05-01\")",
|
|
47
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/projects/search?limit=2&offset=0\")",
|
|
48
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/projects\")",
|
|
49
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/contacts\")",
|
|
50
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/programs/73\")",
|
|
51
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/organizations/4941\")",
|
|
52
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/projects/search?limit=2&offset=0&text=mars\")",
|
|
53
|
+
"Bash(curl -sv \"https://techport.nasa.gov/api/projects/182467\")",
|
|
54
|
+
"Bash(curl -s \"https://techport.nasa.gov/v3/api-docs\")",
|
|
55
|
+
"Bash(curl -s \"https://techport.nasa.gov/api-docs/swagger-ui-init.js\")",
|
|
56
|
+
"Bash(curl -s \"https://techport.nasa.gov/openapi.json\")",
|
|
57
|
+
"Bash(curl -s \"https://techport.nasa.gov/techport-app/assets/index-0a8cb9fd.js\")",
|
|
58
|
+
"Bash(grep -oP '\"\\(/api/[^\"]{3,80}\\)\"')",
|
|
59
|
+
"Bash(curl -s \"https://techport.nasa.gov/api/enums\")",
|
|
60
|
+
"Bash(curl -s \"https://api.nasa.gov/mars-photos/api/v1/rovers?api_key=DEMO_KEY\")",
|
|
61
|
+
"Bash(python3 -c \"import sys,json; d=json.load\\(sys.stdin\\); print\\(list\\(d.keys\\(\\)\\)\\)\")",
|
|
62
|
+
"Bash(curl -s \"https://api.nasa.gov/mars-photos/api/v1/rovers?api_key=DEMO_KEY\" -o /tmp/rovers.json)",
|
|
63
|
+
"Bash(python3 -c \"import json; d=json.load\\(open\\('/tmp/rovers.json'\\)\\); print\\(list\\(d.keys\\(\\)\\)\\); r=d['rovers'][0]; print\\(list\\(r.keys\\(\\)\\)\\)\")",
|
|
64
|
+
"Bash(curl -v \"https://api.nasa.gov/mars-photos/api/v1/rovers?api_key=DEMO_KEY\")",
|
|
65
|
+
"Bash(curl -s --max-time 15 \"https://api.nasa.gov/mars-photos/api/v1/rovers?api_key=DEMO_KEY\")",
|
|
66
|
+
"Bash(echo \"exit: $?\")",
|
|
67
|
+
"Read(//private/tmp/**)",
|
|
68
|
+
"Bash(python3 -c \"import json; d=json.load\\(open\\('/tmp/rovers.json'\\)\\); r=d['rovers'][0]; print\\(list\\(r.keys\\(\\)\\)\\)\")"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
.idea/
|
|
161
|
+
|
|
162
|
+
local.py
|
|
163
|
+
*~
|
|
164
|
+
pytest-cache-files-dvdpibc0
|
|
165
|
+
.vscode/settings.json
|
|
166
|
+
smoke_test.py
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jonathan Rodríguez
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nasa-apis-wrapper
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python wrapper for NASA APIs
|
|
5
|
+
Project-URL: Homepage, https://github.com/jonathanroddev/nasa-apis-wrapper
|
|
6
|
+
Project-URL: Repository, https://github.com/jonathanroddev/nasa-apis-wrapper
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/jonathanroddev/nasa-apis-wrapper/issues
|
|
8
|
+
Author-email: Jonathan Rodríguez <jonathanroddev@gmail.com>
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026 Jonathan Rodríguez
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Keywords: api,apod,astronomy,cneos,donki,eonet,epic,exoplanet,gibs,nasa,neows,pydantic,space,wrapper
|
|
32
|
+
Classifier: Development Status :: 4 - Beta
|
|
33
|
+
Classifier: Intended Audience :: Developers
|
|
34
|
+
Classifier: Intended Audience :: Science/Research
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Programming Language :: Python :: 3
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
39
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
40
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
41
|
+
Classifier: Typing :: Typed
|
|
42
|
+
Requires-Python: >=3.12
|
|
43
|
+
Requires-Dist: pydantic>=2.9
|
|
44
|
+
Requires-Dist: requests>=2.32
|
|
45
|
+
Description-Content-Type: text/markdown
|
|
46
|
+
|
|
47
|
+
# nasa-apis-wrapper
|
|
48
|
+
|
|
49
|
+
> **Disclaimer:** This is an unofficial, community-maintained Python wrapper. It is not affiliated with, endorsed by, or in any way connected to NASA.
|
|
50
|
+
|
|
51
|
+
A typed Python wrapper for [NASA's public APIs](https://api.nasa.gov/), built on **Pydantic v2** and **requests**. Every response is a validated model with IDE autocompletion — no raw dicts.
|
|
52
|
+
|
|
53
|
+
## Installation
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pip install nasa-apis-wrapper
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Requires Python 3.12+.
|
|
60
|
+
|
|
61
|
+
## API Key
|
|
62
|
+
|
|
63
|
+
Most NASA APIs accept a free API key from [api.nasa.gov](https://api.nasa.gov/). Without one you can use the demo key `DEMO_KEY`, which has stricter rate limits (30 requests/hour, 50/day).
|
|
64
|
+
|
|
65
|
+
Pass the key when constructing any service that requires it:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from nasa_apis_wrapper import APODService
|
|
69
|
+
|
|
70
|
+
apod = APODService(api_key="YOUR_KEY_HERE")
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Services that don't require a key (EONET, EPIC, Exoplanet, GIBS, Image Library, CNEOS, SSC, OSDR, Trek) are instantiated without arguments.
|
|
74
|
+
|
|
75
|
+
## API Coverage
|
|
76
|
+
|
|
77
|
+
| Service | Class | API Key | Status |
|
|
78
|
+
|---------|-------|---------|--------|
|
|
79
|
+
| Astronomy Picture of the Day | `APODService` | Required | ✓ |
|
|
80
|
+
| Asteroids — NeoWs | `NeoWsService` | Required | ✓ |
|
|
81
|
+
| DONKI (space weather) | `DonkiService` | Required | ✓ |
|
|
82
|
+
| Earth imagery | `EarthService` | Required | ✗ Backend down |
|
|
83
|
+
| EONET (natural events) | `EONETService` | No | ✓ |
|
|
84
|
+
| EPIC (Earth polychromatic imaging) | `EPICService` | No | ✓ |
|
|
85
|
+
| Exoplanet Archive | `ExoplanetService` | No | ✓ |
|
|
86
|
+
| GIBS (satellite imagery tiles) | `GIBSService` | No | ✓ |
|
|
87
|
+
| NASA Image & Video Library | `ImageLibraryService` | No | ✓ |
|
|
88
|
+
| InSight Mars weather | `InsightService` | Required | ✓ (data frozen Dec 2022) |
|
|
89
|
+
| Mars Rover Photos | `MarsRoverService` | Required | ✗ Backend down |
|
|
90
|
+
| OSDR (space biology data) | `OSDRService` + `RadLabService` + `BioDataService` | No | ✓ |
|
|
91
|
+
| SSD/CNEOS (small bodies) | `CNEOSService` | No | ✓ |
|
|
92
|
+
| Satellite Situation Center | `SSCService` | No | ✓ |
|
|
93
|
+
| TechPort (NASA projects) | `TechportService` | No | ✗ 403 Forbidden |
|
|
94
|
+
| TechTransfer | `TechTransferService` | Required | ✗ 404 Endpoint removed |
|
|
95
|
+
| TLE (orbital elements) | `TLEService` | No | ✗ Service down |
|
|
96
|
+
| Vesta/Moon/Mars Trek WMTS | `TrekService` | No | ✓ (tile endpoints only) |
|
|
97
|
+
|
|
98
|
+
## Usage
|
|
99
|
+
|
|
100
|
+
### APOD — Astronomy Picture of the Day
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
from nasa_apis_wrapper import APODService, APODRequest
|
|
104
|
+
|
|
105
|
+
apod = APODService(api_key="YOUR_KEY")
|
|
106
|
+
|
|
107
|
+
# Today's picture
|
|
108
|
+
pic = apod.get_astronomy_picture_of_day()
|
|
109
|
+
print(pic.title, pic.url)
|
|
110
|
+
|
|
111
|
+
# Specific date
|
|
112
|
+
pic = apod.get_astronomy_picture_of_day(APODRequest(date="2024-01-01"))
|
|
113
|
+
|
|
114
|
+
# Random batch
|
|
115
|
+
pics = apod.get_astronomy_pictures(APODRequest(count=5))
|
|
116
|
+
|
|
117
|
+
# Date range
|
|
118
|
+
pics = apod.get_astronomy_pictures(APODRequest(start_date="2024-01-01", end_date="2024-01-07"))
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### NeoWs — Near Earth Objects
|
|
122
|
+
|
|
123
|
+
```python
|
|
124
|
+
from nasa_apis_wrapper import NeoWsService, NeoFeedRequest
|
|
125
|
+
|
|
126
|
+
neows = NeoWsService(api_key="YOUR_KEY")
|
|
127
|
+
|
|
128
|
+
feed = neows.feed(NeoFeedRequest(start_date="2024-01-01", end_date="2024-01-07"))
|
|
129
|
+
print(feed.element_count, "NEOs this week")
|
|
130
|
+
|
|
131
|
+
neo = neows.lookup(2000433) # 433 Eros by SPK-ID
|
|
132
|
+
print(neo.name, neo.is_potentially_hazardous_asteroid)
|
|
133
|
+
|
|
134
|
+
page = neows.browse() # paginated full catalogue
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### DONKI — Space Weather
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
from nasa_apis_wrapper import DonkiService, GenericDonkiRequest, DonkiIPSRequest
|
|
141
|
+
|
|
142
|
+
donki = DonkiService(api_key="YOUR_KEY")
|
|
143
|
+
req = GenericDonkiRequest(startDate="2024-01-01", endDate="2024-01-31")
|
|
144
|
+
|
|
145
|
+
cmes = donki.cme(req) # Coronal Mass Ejections
|
|
146
|
+
flares = donki.flr(req) # Solar Flares
|
|
147
|
+
storms = donki.gst(req) # Geomagnetic Storms
|
|
148
|
+
particles = donki.sep(req) # Solar Energetic Particles
|
|
149
|
+
streams = donki.hss(req) # High Speed Streams
|
|
150
|
+
shocks = donki.ips(DonkiIPSRequest(startDate="2024-01-01", endDate="2024-01-31"))
|
|
151
|
+
simulations = donki.wsa_enlil_simulation(req)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### EONET — Natural Events
|
|
155
|
+
|
|
156
|
+
```python
|
|
157
|
+
from nasa_apis_wrapper import EONETService, EONETEventsRequest
|
|
158
|
+
|
|
159
|
+
eonet = EONETService()
|
|
160
|
+
|
|
161
|
+
events = eonet.events(EONETEventsRequest(category="wildfires", days=30))
|
|
162
|
+
for e in events.events:
|
|
163
|
+
print(e.id, e.title)
|
|
164
|
+
|
|
165
|
+
categories = eonet.categories()
|
|
166
|
+
layers = eonet.layers("wildfires")
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### EPIC — Earth Polychromatic Imaging Camera
|
|
170
|
+
|
|
171
|
+
```python
|
|
172
|
+
from nasa_apis_wrapper import EPICService
|
|
173
|
+
|
|
174
|
+
epic = EPICService()
|
|
175
|
+
|
|
176
|
+
images = epic.images() # latest natural colour
|
|
177
|
+
images = epic.images("enhanced") # latest enhanced
|
|
178
|
+
images = epic.images("natural", date="2024-01-15")
|
|
179
|
+
|
|
180
|
+
for img in images:
|
|
181
|
+
url = epic.image_url(img, "natural", "png")
|
|
182
|
+
print(img.date, url)
|
|
183
|
+
|
|
184
|
+
dates = epic.available_dates()
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Exoplanet Archive
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
from nasa_apis_wrapper import ExoplanetService
|
|
191
|
+
|
|
192
|
+
exo = ExoplanetService()
|
|
193
|
+
|
|
194
|
+
planets = exo.confirmed_planets(limit=10)
|
|
195
|
+
transits = exo.planets_by_method("Transit", limit=5)
|
|
196
|
+
trappist = exo.planet("TRAPPIST-1 b")
|
|
197
|
+
print(trappist.pl_name, trappist.hostname, trappist.pl_orbper)
|
|
198
|
+
|
|
199
|
+
# Raw ADQL query
|
|
200
|
+
rows = exo.query("SELECT TOP 5 pl_name, hostname, disc_year FROM pscomppars")
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### GIBS — Global Imagery Browse Services
|
|
204
|
+
|
|
205
|
+
Serves NASA satellite imagery tiles (WMTS/WMS).
|
|
206
|
+
|
|
207
|
+
```python
|
|
208
|
+
from nasa_apis_wrapper import GIBSService
|
|
209
|
+
|
|
210
|
+
gibs = GIBSService()
|
|
211
|
+
|
|
212
|
+
# Build tile/WMS URLs
|
|
213
|
+
url = gibs.tile_url("MODIS_Terra_CorrectedReflectance_TrueColor", "250m", 3, 2, 5, date="2024-01-15")
|
|
214
|
+
wms = gibs.wms_url("MODIS_Terra_CorrectedReflectance_TrueColor", "-180,-90,180,90", 512, 256, date="2024-01-15")
|
|
215
|
+
|
|
216
|
+
# Download tile bytes
|
|
217
|
+
tile_bytes = gibs.get_tile("MODIS_Terra_CorrectedReflectance_TrueColor", "250m", 0, 0, 0, date="2024-01-15")
|
|
218
|
+
|
|
219
|
+
domains = gibs.describe_domains("MODIS_Terra_CorrectedReflectance_TrueColor", "250m")
|
|
220
|
+
print(domains.start_date, domains.end_date)
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### NASA Image & Video Library
|
|
224
|
+
|
|
225
|
+
```python
|
|
226
|
+
from nasa_apis_wrapper import ImageLibraryService, ImageLibrarySearchRequest
|
|
227
|
+
|
|
228
|
+
lib = ImageLibraryService()
|
|
229
|
+
|
|
230
|
+
results = lib.search(ImageLibrarySearchRequest(q="Apollo 11", media_type="image", page_size=10))
|
|
231
|
+
print(results.collection.metadata.total_hits, "results")
|
|
232
|
+
|
|
233
|
+
for item in results.collection.items:
|
|
234
|
+
print(item.metadata.nasa_id, item.metadata.title)
|
|
235
|
+
print(item.thumbnail) # preview URL
|
|
236
|
+
|
|
237
|
+
asset = lib.asset("as11-40-5931")
|
|
238
|
+
print(asset.urls) # all rendition URLs
|
|
239
|
+
|
|
240
|
+
album = lib.album("Apollo-at-50")
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### SSD/CNEOS — Small Body Database
|
|
244
|
+
|
|
245
|
+
```python
|
|
246
|
+
from nasa_apis_wrapper import CNEOSService, FireballRequest, CADRequest
|
|
247
|
+
|
|
248
|
+
cneos = CNEOSService()
|
|
249
|
+
|
|
250
|
+
fireballs = cneos.fireballs(FireballRequest(date_min="2024-01-01"))
|
|
251
|
+
for fb in fireballs.records:
|
|
252
|
+
print(fb.date, fb.energy)
|
|
253
|
+
|
|
254
|
+
cad = cneos.close_approaches(CADRequest(date_min="2024-01-01", dist_max="0.05"))
|
|
255
|
+
for c in cad.records:
|
|
256
|
+
print(c.des, c.cd, c.dist)
|
|
257
|
+
|
|
258
|
+
body = cneos.object(sstr="ceres") # by name
|
|
259
|
+
body = cneos.object(des="433") # by designation
|
|
260
|
+
|
|
261
|
+
sentry = cneos.sentry_summary() # impact risk objects
|
|
262
|
+
nhats = cneos.nhats_summary() # human-accessible NEOs
|
|
263
|
+
|
|
264
|
+
cal = cneos.jd_to_date(2451545.0)
|
|
265
|
+
print(cal.cd) # "2000-01-01 12:00:00"
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### SSC — Satellite Situation Center
|
|
269
|
+
|
|
270
|
+
```python
|
|
271
|
+
from nasa_apis_wrapper import SSCService
|
|
272
|
+
|
|
273
|
+
ssc = SSCService()
|
|
274
|
+
|
|
275
|
+
observatories = ssc.observatories()
|
|
276
|
+
iss = ssc.observatories(id="iss")[0]
|
|
277
|
+
print(iss.Id, iss.Name)
|
|
278
|
+
|
|
279
|
+
stations = ssc.ground_stations()
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### OSDR — Open Science Data Repository
|
|
283
|
+
|
|
284
|
+
Three sub-services under the OSDR umbrella:
|
|
285
|
+
|
|
286
|
+
```python
|
|
287
|
+
from nasa_apis_wrapper import OSDRService, OSDRSearchRequest, RadLabService, RadLabRequest, BioDataService
|
|
288
|
+
|
|
289
|
+
# Search space biology studies
|
|
290
|
+
osdr = OSDRService()
|
|
291
|
+
results = osdr.search(OSDRSearchRequest(term="microgravity"))
|
|
292
|
+
print(results.hits.total, "studies")
|
|
293
|
+
|
|
294
|
+
for hit in results.hits.hits:
|
|
295
|
+
print(hit.source.accession, hit.source.study_title)
|
|
296
|
+
|
|
297
|
+
files = osdr.study_files("OSD-48")
|
|
298
|
+
|
|
299
|
+
# Radiation measurements
|
|
300
|
+
radlab = RadLabService()
|
|
301
|
+
measurements = radlab.measurements(RadLabRequest(instrument="TEPC"))
|
|
302
|
+
for m in measurements:
|
|
303
|
+
print(m.timestamp, m.instrument_id)
|
|
304
|
+
|
|
305
|
+
# Biological data
|
|
306
|
+
bio = BioDataService()
|
|
307
|
+
datasets = bio.datasets() # {accession: url}
|
|
308
|
+
assays = bio.assays("OSD-48")
|
|
309
|
+
samples = bio.samples("OSD-48", assays[0])
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Trek WMTS — Vesta / Moon / Mars
|
|
313
|
+
|
|
314
|
+
```python
|
|
315
|
+
from nasa_apis_wrapper import TrekService
|
|
316
|
+
|
|
317
|
+
trek = TrekService()
|
|
318
|
+
|
|
319
|
+
# Build tile/WMS URLs (body = "mars", "moon", or "vesta")
|
|
320
|
+
tile_url = trek.tile_url("mars", "Mars_Viking_MDIM21_ClrMosaic_global_232m", 0, 0, 0)
|
|
321
|
+
wms_url = trek.wms_url("moon", "LRO_WAC_Mosaic_Global_303m", "-180,-90,180,90", 512, 256)
|
|
322
|
+
|
|
323
|
+
# Download tile bytes
|
|
324
|
+
tile = trek.get_tile("mars", "Mars_Viking_MDIM21_ClrMosaic_global_232m", 0, 0, 0)
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### InSight — Mars Weather
|
|
328
|
+
|
|
329
|
+
Data from the InSight lander. The mission ended in December 2022 — the last 7 sols (675–681) are always returned.
|
|
330
|
+
|
|
331
|
+
```python
|
|
332
|
+
from nasa_apis_wrapper import InsightService
|
|
333
|
+
|
|
334
|
+
insight = InsightService(api_key="YOUR_KEY")
|
|
335
|
+
weather = insight.weather()
|
|
336
|
+
for sol in weather.sol_keys:
|
|
337
|
+
data = getattr(weather, sol)
|
|
338
|
+
print(f"Sol {sol}: {data}")
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
## Error Handling
|
|
342
|
+
|
|
343
|
+
All network errors, HTTP errors, and malformed responses raise `NasaAPIException`:
|
|
344
|
+
|
|
345
|
+
```python
|
|
346
|
+
from nasa_apis_wrapper import APODService, NasaAPIException
|
|
347
|
+
|
|
348
|
+
try:
|
|
349
|
+
apod = APODService(api_key="INVALID_KEY")
|
|
350
|
+
pic = apod.get_astronomy_picture_of_day()
|
|
351
|
+
except NasaAPIException as e:
|
|
352
|
+
print(e)
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
## Development
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
uv run pytest
|
|
359
|
+
uv run pytest --cov --cov-report term-missing
|
|
360
|
+
uv run black nasa_apis_wrapper tests
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
## License
|
|
364
|
+
|
|
365
|
+
MIT — see [LICENSE](LICENSE).
|
|
366
|
+
|
|
367
|
+
## Official documentation
|
|
368
|
+
|
|
369
|
+
[https://api.nasa.gov/](https://api.nasa.gov/)
|