https://github.com/andredisa/pythondevhub
π This repository includes three command-line tools that integrate with real-world APIs to fetch data, visualize it, and interact with the user through practical examples.
https://github.com/andredisa/pythondevhub
api educational-project matplotlib-python newsapi openrouteservice openstreetmap openwheatherapi projects python
Last synced: 14 days ago
JSON representation
π This repository includes three command-line tools that integrate with real-world APIs to fetch data, visualize it, and interact with the user through practical examples.
- Host: GitHub
- URL: https://github.com/andredisa/pythondevhub
- Owner: andredisa
- License: mit
- Created: 2025-04-14T12:50:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-23T06:36:29.000Z (12 months ago)
- Last Synced: 2025-06-20T09:44:11.907Z (11 months ago)
- Topics: api, educational-project, matplotlib-python, newsapi, openrouteservice, openstreetmap, openwheatherapi, projects, python
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: newsApi/README.md
- License: LICENSE
Awesome Lists containing this project
README
# π Python API Projects Collection
Welcome to my collection of **Python projects**! π
> This repository includes three command-line tools that integrate with real-world APIs to fetch data, visualize it, and interact with the user through practical examples. Each project focuses on a specific domain β **news**, **travel**, and **finance** β and is ideal for learning how to work with APIs, parse JSON, and organize Python code.
---
## π¦ Project Overview
### 1. π° News Aggregator
**Folder:** `newsApi/`
Fetch and explore the latest headlines from around the world using the [NewsAPI.org](https://newsapi.org/) service.
- π Top headlines by country or language
- π Keyword or topic search
- π
Filter by date range
- π Sort by popularity or domain
- π View full article content
> π§ Technologies: **Python 3**, `requests`, **NewsAPI**
> π Concepts: `REST API`, `HTTP parameters`, `JSON parsing`, `OOP`, `CLI`
---
### 2. π Route Planner + Weather Forecast
**Folder:** `calcKmPrevisione/`
Plan a multi-stop trip and get live weather info at each destination. Calculates distance and estimated travel time.
- πΊοΈ Add and validate multiple locations
- π§ Calculates distances and travel time between stops
- π¦οΈ Fetches current weather using OpenWeatherMap
- π Ensures at least two locations before building a route
- π Displays totals at the end
> π§ Technologies: **Python 3**, `requests`, `OpenStreetMap`, `OpenRouteService`, `OpenWeatherMap`
> π Concepts: `Multi-API integration`, `modular Python`, `data aggregation`, `CLI input`
---
### 3. π Stock Price Visualizer
**Folder:** `graficoFinanza/`
Visualize a stockβs daily **Open** and **Close** prices for a selected month and year with a beautiful line graph.
- ποΈ User input for month, year, and stock symbol
- π Graphs daily Open/Close prices
- β
Validates stock symbols and dates
- π API key handled via config file
- πΌοΈ Line plot with `matplotlib`
> π§ Technologies: **Python 3**, `matplotlib`, `requests`, **Polygon.io**
> π Concepts: `API interaction`, `data visualization`, `OOP`, `config management`
---
## π Shared Learning Objectives
Each project is designed to help you:
- β
Understand and integrate REST APIs
- π§Ύ Parse and process JSON responses
- π§± Structure Python projects using classes and modules
- π Visualize or display real-world data
- π§ Handle user input in CLI environments
---
## π οΈ Setup Instructions
> Each project is standalone. Follow individual project READMEs for detailed API setup and usage.
### π Common Dependencies
Install core dependencies using:
```bash
pip install requests matplotlib
```
**β οΈ Note: Youβll need to get free API keys from the respective services (NewsAPI, OpenWeatherMap, OpenRouteService, Polygon.io) and add them in config files or directly in the code (as instructed).**
---
## π Ideas for Future Improvements
- πΌοΈ Add GUI versions with Tkinter or Flask
- πΎ Save outputs (JSON, text, plots) to local files
- π Move API keys to .env and use python-dotenv
- π§ͺ Add unit tests for key components
- π Convert CLI projects into web apps
---
## β οΈ Disclaimer
`These projects are for educational purposes only. Data may be subject to rate limits and may not be suitable for real-time or commercial use.`
---
## β Support Me
If you find my work useful and would like to support me, you can buy me a coffee! Your support helps me keep creating and improving my projects. Thank you! π
---
### π¨βπ» Happy coding and have fun exploring APIs with Python!
