Skip to content

ghostware0x00/PyTemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌑️ PyTemp β€” Your Simple City Temperature Checker 🐍 Python Program to Fetch Real-Time Weather Data PyTemp is a lightweight Python script designed to retrieve the current temperature of any city using the OpenWeatherMap API.

πŸ“š About

This project was created as part of my learning journey in Python and API integration. The code and logic are based on Dave Gray's Python Course for Beginners, which provided clear explanations and hands-on examples.

πŸš€ Features 🌍 Get real-time temperature of any city in the world.

🧠 Uses OpenWeatherMap API for accurate and reliable data.

πŸ” Supports .env file for secure API key storage.

πŸ’‘ Easy to set up and run β€” perfect for beginners and enthusiasts alike.

πŸ› οΈ Setup Instructions

πŸ“¦ Install dependencies (if not already installed):

pip install requests python-dotenv

πŸ“ Create an account on OpenWeatherMap to get your free API key.
πŸ“ Set up your .env file in the project root: env

API_KEY=your_openweathermap_api_key_here
  • Add your own API_KEY in the .env folder
  • Generate your own API_KEY from the OpenWeatherApp Website (Current Weather Data API) section.

πŸ§ͺ Run the program and enter the city name when prompted.

About

python program to give us the temperature of the city.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages