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.
Folder: newsApi/
Fetch and explore the latest headlines from around the world using the 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
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
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
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
Each project is standalone. Follow individual project READMEs for detailed API setup and usage.
Install core dependencies using:
pip install requests matplotlib
-
πΌοΈ 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
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.