Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ragul-rofi/dogviewerapi
Fetch random Dog Images with this Python-powered GUI
https://github.com/ragul-rofi/dogviewerapi
api dog-ceo-api python python-api
Last synced: about 1 month ago
JSON representation
Fetch random Dog Images with this Python-powered GUI
- Host: GitHub
- URL: https://github.com/ragul-rofi/dogviewerapi
- Owner: ragul-rofi
- License: mit
- Created: 2024-09-08T07:50:32.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-01T16:04:49.000Z (3 months ago)
- Last Synced: 2024-12-11T18:20:18.357Z (about 1 month ago)
- Topics: api, dog-ceo-api, python, python-api
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random Dog Viewer
**Random Dog Viewer** is a Python application that displays a random dog image fetched from the [Dog CEO API](https://dog.ceo/dog-api/). The app provides an easy way to view a random dog picture each time you click the "Get Random Dog" button.
## Features
- Fetches a random dog image from the Dog CEO API.
- Displays the image in a GUI window using Tkinter.
- Resizes images to a standard size (300x300 pixels) for better visibility.
- Simple, clean, and interactive design.## Requirements
To run this application, you need the following Python libraries:
- `requests` (for fetching data from the API)
- `Pillow` (for handling image data)
- `tkinter` (for the graphical user interface, pre-installed with Python)You can install the required libraries by running:
```bash
pip install requests Pillow
```## How to Run
1. Clone the repository or download the Python script.
2. Install the required dependencies:
```bash
pip install requests Pillow
```3. Run the `random_dog_viewer.py` script:
```bash
python random_dog_viewer.py
```4. Click the "Get Random Dog" button to fetch and display a random dog image.
## API Used
This app uses the [Dog CEO API](https://dog.ceo/dog-api/) to fetch random dog images.
## License
This project is licensed under the MIT License. See the `LICENSE` file for more details.