Skip to main content

Weather forecast data

Project description

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

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

eces_eg_weather_package-1.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

eces_eg_weather_package-1.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file eces_eg_weather_package-1.1.0.tar.gz.

File metadata

  • Download URL: eces_eg_weather_package-1.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.8

File hashes

Hashes for eces_eg_weather_package-1.1.0.tar.gz
Algorithm Hash digest
SHA256 86f874b12e14b676e7543ea1f8dddb636f7122d1fd1a2e61ecbc836bdcb27d9f
MD5 7980e5eb1eecc53aba888e3cc7ce95ee
BLAKE2b-256 2f2211fb5545af2612ac82f0eee6a84416ef2fa1bdf0eb6c6b9cb3ada3ad047c

See more details on using hashes here.

File details

Details for the file eces_eg_weather_package-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for eces_eg_weather_package-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b21900f792a5f46406d70db4b483e0ecaf2bbf4f32fb51a91da07d8b81183ef
MD5 e7ffbd2fd4ec7c15354f0dd7647d7baa
BLAKE2b-256 83a9d0ac24aa21d90fbb92297bc445cbd7ed84a49fadf2a74b1c27e89ec432f1

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