Skip to main content

A Python package for getting Iran's weather data, including temperature and RealFeel.

Project description

ParsWeather Logo
ParsWeather – Iran's Ultimate Weather Package 🇮🇷

📡 Get the most accurate weather information for Iran with a single Python package!
🌦️ Temperature, Air Quality, Radar Images, Sunrise & Sunset Times, and much more! 🌍


📥 Quick Installation

Install ParsWeather via pip in no time:

pip install ParsWeather

💡 Requirements:

  • Python 3.7+
  • Internet connection to fetch the latest weather data

🚀 How to Use – It's Easy and Fun!

No need for complex setups – just a few lines of code and you're good to go! Here's an example:

from ParsWeather import WeatherForecast as wf  

city = "تهران"  # 📍 Replace with the city you want to check

print(f"🌡️ Current Temperature: {wf.get_temperature(city)}°C")  
print(f"🤔 Real Feel Temperature: {wf.get_realfeel(city)}°C")  
print(f"🍃 Air Quality: {wf.get_air_quality(city)}")  
print(f"📊 Air Quality Index (AQI): {wf.get_air_quality_aqi(city)}")  
print(f"🏜️ Dust & Allergen Levels: {wf.get_dust_dander_data(city)}")  
print(f"🌦️ Full Weather Forecast: {wf.get_weather_forecast(city)}")  
print(f"🛰️ Radar Image Link: {wf.get_radar_image_link(city)}")  
print(f"🌅 Sunrise & Sunset Times: {wf.get_sun_times(city)}")  
print(f"🔎 Detailed Weather Forecast: {wf.get_forecast_details(city)}")  
print(f"📍 Supported Cities List: {wf.get_supported_cities()}")  
print(f"🌍 Combined Weather & AQI: {wf.get_weather_forecast_air_aqi(city)}")  
print(f"🛰️ Radar GIF Link:{wf.download_specific_image()}")

pollutant_data = wf.get_pollutant_info(city)
if isinstance(pollutant_data, dict):
    for pollutant, info in pollutant_data.items():
        print(f"آلاینده: {pollutant}")
        print(f"میزان: {info['concentration']}")
        print(f"توضیحات: {info['statement']}")
        print('-' * 50)
else:
    print(pollutant_data)

🎯 Just plug in your city name and get precise, real-time weather updates! It's that simple!


🔥 Why Choose ParsWeather?

Up-to-Date & Reliable Data – Get the latest weather insights with absolute accuracy.
User-Friendly – Just a few lines of code to pull comprehensive data!
Comprehensive – Covers everything from temperature and air quality to radar images and sun times!
Tailored for Iran – Designed with Iranian cities in mind, it's the only weather tool you'll need for Iran 🇮🇷.


📍 Key Features:

🌡️ Current Temperature – Check the temperature in real-time!
🤔 Real Feel Temperature – How does it really feel outside?
🍃 Air Quality – Find out how fresh the air is!
📊 Air Quality Index (AQI) – Know how polluted the air is.
🏜️ Dust & Allergen Levels – Prepare for allergies or dusty days.
🌦️ Full Weather Forecast – Hour-by-hour or daily forecast.
🛰️ Radar Images – See weather systems moving in!
🌅 Sunrise & Sunset Times – Never miss a sunrise or sunset again.
🔎 Detailed Forecast – Get an in-depth look at the upcoming weather.
📍 Supported Cities – Check if your city is covered.
🌍 Combined Weather & AQI – Get the full picture of both weather and air quality.


💡 Possible Use Cases

🚗 Travel & Navigation Apps – Never get caught in a rainstorm again!
📱 Smart Assistants and Bots – Show your users the weather with ease.
🏫 School/Office Systems – Announce closures due to bad air quality or extreme weather.
🏕️ Outdoor Adventures – Check the weather before you hit the trails or mountains.


🏆 Why is ParsWeather the Best Choice?

Feature ParsWeather Other Methods
⚡ Speed ✅ Lightning fast ❌ Slow updates
🎯 Accuracy ✅ Super precise ❌ Hit or miss
🌎 Iran Coverage ✅ Complete list of cities ❌ Missing major cities
🚀 Easy to Use ✅ Just a few lines ❌ Complex API integrations
📡 Satellite & Radar Images ✅ Yes ❌ No radar images

ParsWeather is the only package specifically built for accurate, up-to-date weather information for Iranian cities!


📚 Want More Info?

🔗 GitHub: Check it out on GitHub
🔗 Website: Visit the website

📌 Start using ParsWeather today and say goodbye to unpredictable weather surprises! 🌪️🌈


What do you think of this documentation? Any other features or suggestions? Drop your feedback! 🤔

Here’s a more complete footer for the ParsWeather package documentation, including copyright and developer information:


Developed by Ali Ayati Qaffari

© 2025 ParsWeather – All rights reserved.

This project is developed and maintained by Ali Ayati Qaffari. Unauthorized use, distribution, or reproduction of any part of this package without explicit permission is prohibited.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsweather-0.2.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsweather-0.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file parsweather-0.2.0.tar.gz.

File metadata

  • Download URL: parsweather-0.2.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for parsweather-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ad03245b2ca561e8a4dc6bd6bf7e281162bcb0dfca334b03a433fda9563412be
MD5 4ae0ca7bb1b30bf7116be04a772ee9f6
BLAKE2b-256 738922983c3b17bf480203c9956fafa48be51fcf6aa5ddc470ee7843cbf51239

See more details on using hashes here.

File details

Details for the file parsweather-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: parsweather-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for parsweather-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2d76a2c94cd88da496e8aa813397bf849b863542d058df024c750c5ea3bff7e
MD5 5350a126f62789b2fc643c5957bae646
BLAKE2b-256 3d00e46dd3b4b5d82dbf0f93a26341edc23bb7a1b6f5b9262d30f39d616989dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page