Skip to main content

ECES Weather Package

Welcome to the ECES Weather Package – the first official release from the ECES Data Analytics Unit led by Ahmed Dawoud. This Python package provides a simple and intuitive interface to interact with weather data using the OpenWeatherMap API. With it, you can fetch weather forecasts and analyze weather patterns.

Installation

To install the ECES Weather Package, run the following command in your terminal:

pip install eces-weather-package

Make sure you have Python and pip already installed on your system.

Features

  • Retrieve Weather Forecasts: Easily get weather forecasts for the next five days.
  • Temperature and Wind Data: Access detailed temperature and wind data in a structured format.
  • Data Analysis Ready: Integrate with Pandas for further data analysis.

Quick Start

Here's how to use the ECES Weather Package to retrieve weather forecast data for a specified city:

from eces_weather_package import Weather

# Initialize the Weather object with your API key and desired city
weather = Weather(apikey='your_openweathermap_api_key_here', city='Cairo')

# Get temperature forecast for the next 5 days
temperature_data = weather.temp_next_5_days()
print(temperature_data)

# Get wind forecast for the next 5 days
wind_data = weather.wind_next_5_days()
print(wind_data)

Usage

Initializing the Weather Object

Before you can retrieve any data, you'll need to initialize the Weather object with your OpenWeatherMap API key and the city you're interested in:

weather = Weather(apikey='your_api_key_here', city='Cairo')

Getting Temperature Data

To get the temperature forecast for the next five days:

temperature_data = weather.temp_next_5_days()
print(temperature_data)

This will return a Pandas DataFrame with the temperature and time data.

Getting Wind Data

Similarly, to get the wind forecast:

wind_data = weather.wind_next_5_days()
print(wind_data)

This will return a Pandas DataFrame with wind speed and direction data.

Future Work

We are excited to continue developing the ECES Weather Package. Future updates will include more features for weather analysis and prediction, harnessing the power of data science and machine learning.

Support

For support, bug reports, or feature requests, please contact support_email@example.com.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

We welcome contributions from the community. To contribute to the ECES Weather Package, please fork the repository, make your changes, and submit a pull request.

Author

Metadata

Release files for eces-eg-weather-package 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eces-eg-weather-package 1.1.0
File Size Uploaded
eces_eg_weather_package-1.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eces-eg-weather-package 1.1.0
File Interpreter ABI Platform
eces_eg_weather_package-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / eces_eg_weather_package-1.1.0.tar.gz

Download URL eces_eg_weather_package-1.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
86f874b12e14b676e7543ea1f8dddb636f7122d1fd1a2e61ecbc836bdcb27d9f
BLAKE2b-256 checksum
How to use checksums
2f2211fb5545af2612ac82f0eee6a84416ef2fa1bdf0eb6c6b9cb3ada3ad047c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.8

Release files / eces_eg_weather_package-1.1.0-py3-none-any.whl

Download URL eces_eg_weather_package-1.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b21900f792a5f46406d70db4b483e0ecaf2bbf4f32fb51a91da07d8b81183ef
BLAKE2b-256 checksum
How to use checksums
83a9d0ac24aa21d90fbb92297bc445cbd7ed84a49fadf2a74b1c27e89ec432f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.8

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page