As a NASA scientist, you are constantly exploring the fascinating world of Mars π. You have just received a batch of images captured by the Mars Rover and you are eager to analyze them π. However, manually going through all of images is a time-consuming and tedious task π΄.
You have a brilliant idea to create a Python GUI app that can fetch and display the latest images from the Mars Rover based on specific parameters π‘. You remember learning about PyQT, a powerful library for creating GUI apps, and you decide to use it for this project π».
You quickly started coding and soon enough, your app is able to retrieve the latest images from the Mars Rover API π₯. You added a "Fetch Image" button that retrieves and displays the images based on the parameters entered by the user πΌοΈ. It's a great start, but you want to take it one step further πͺ.
You want to share the images with your colleagues and friends, but you don't want to go through the hassle of manually sending each image π©. You remember learning about different Python libraries and APIs for sending emails and you decide to integrate this functionality into your app π».
With the help of the library or API, you add the ability to send an email with the generated image as an attachment π. The user can enter the subject and message body of the email, as well as a list of recipients π«.
Upon successful completion of sending the email, you added a toast message that appears on the screen, informing the user that the email was sent successfully π. Your app is now able to generate and display the latest images from Mars and also send an email with the image attachment in just a few clicks π€©. Implement the above told story and feel proud of your accomplishment and excitedly share your app with the world π.
- Retrieve the images from the Mars Rover API.
- Add a "Fetch Image" button to display the images based on user-entered parameters.
- Integrate email sending functionality with a Python library or API.
- Allow the user to enter the subject, message body, and recipients list for the email.
- Attach the generated image to the email.
- Display a message upon successful completion of sending the email.
-
https://api.nasa.gov/ (Here you can genrate the API keys and learn more about Mars Rover Photos)
-
https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity/photos?earth_date=2015-6-3&api_key=DEMO_KEY (In place of DEMO_KEY put the one which you genrated from https://api.nasa.gov/)
-
PyQt Documentation (Here you can learn more about PyQt GUI development)