A simple Python command-line tool for accessing public James Webb Space Telescope data
To use this tool, you will need to have Python 3 installed on your system.
- Clone this repository to your local machine using
git clone https://github.com/etfriedman/jwst-api-client.git - Navigate to the directory where you cloned the repository
- Install the required dependencies by running
pip install -r requirements.txt- Note: if the python requests library is already installed this step is not required. See requirements for more information
To run the tool, open a terminal or command prompt and navigate to the directory where you cloned the repository. Then run the following command:
python3 JWST_DE.py --key YOUR_API_KEY (replacing YOUR_API_KEY with your own API key)
- If you do not yet have a key, run
python3 JWST_DE.pyand the program will walk you through generating one. Once you have run the program with your API key, typehelpto learn more on how to use the program. - If you would rather get an API key yourself, go to the JWST API website and scoll down.
Downloaded data will be stored in a folder called JWST_data in the same directory where you clone this repo.
JWSTDE_DEMO_720p.mp4
- Python 3+
- requests 2.25.1 (https://pypi.org/project/requests/)
- run
pip install requests - Alternatively, after cloning and navigating to the folder run:
pip install -r requirements.txt
- run
- A JWST API Key, this program can request one for you, all you need is an email address. Alternatively, if you would like to request one yourself, go to https://jwstapi.com and scroll down.
This tool uses the (unofficial) James Webb Space Telescope API built by Kyle Redelinghuys called JWST API.