llama-index-readers-weather


Namellama-index-readers-weather JSON
Version 0.4.1 PyPI version JSON
download
home_pageNone
Summaryllama-index readers weather integration
upload_time2025-09-08 20:49:02
maintaineriamadhee
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseNone
keywords openweather weather
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Weather Loader

```bash
pip install llama-index-readers-weather
```

This loader fetches the weather data from the [OpenWeatherMap](https://openweathermap.org/api)'s OneCall API, using the `pyowm` Python package. You must initialize the loader with your OpenWeatherMap API token, and then pass in the names of the cities you want the weather data for.

OWM's One Call API provides the following weather data for any geographical coordinate: - Current weather - Hourly forecast for 48 hours - Daily forecast for 7 days

## Usage

To use this loader, you need to pass in an array of city names (eg. [chennai, chicago]). Pass in the country codes as well for better accuracy.

```python
from llama_index.readers.weather import WeatherReader

loader = WeatherReader(token="[YOUR_TOKEN]")
documents = loader.load_data(places=["Chennai, IN", "Dublin, IE"])
```

This loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-readers-weather",
    "maintainer": "iamadhee",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "openweather, weather",
    "author": null,
    "author_email": "Your Name <you@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/88/40/ff006ac99dbd1a4532c9b1d4dd90d2b969a7ae4612dc781d2a76403f9037/llama_index_readers_weather-0.4.1.tar.gz",
    "platform": null,
    "description": "# Weather Loader\n\n```bash\npip install llama-index-readers-weather\n```\n\nThis loader fetches the weather data from the [OpenWeatherMap](https://openweathermap.org/api)'s OneCall API, using the `pyowm` Python package. You must initialize the loader with your OpenWeatherMap API token, and then pass in the names of the cities you want the weather data for.\n\nOWM's One Call API provides the following weather data for any geographical coordinate: - Current weather - Hourly forecast for 48 hours - Daily forecast for 7 days\n\n## Usage\n\nTo use this loader, you need to pass in an array of city names (eg. [chennai, chicago]). Pass in the country codes as well for better accuracy.\n\n```python\nfrom llama_index.readers.weather import WeatherReader\n\nloader = WeatherReader(token=\"[YOUR_TOKEN]\")\ndocuments = loader.load_data(places=[\"Chennai, IN\", \"Dublin, IE\"])\n```\n\nThis loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "llama-index readers weather integration",
    "version": "0.4.1",
    "project_urls": null,
    "split_keywords": [
        "openweather",
        " weather"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a83639825a4e229f7438a059702baa11b1921b42ecf17fbdad4f32ef46a7934d",
                "md5": "699fcc0a57e45d5c1209886e97cca7dd",
                "sha256": "1bd7d8ef95d9f2bdf240d17bab2790bfc21364090ba62cce297a178976c0e4cd"
            },
            "downloads": -1,
            "filename": "llama_index_readers_weather-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "699fcc0a57e45d5c1209886e97cca7dd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3923,
            "upload_time": "2025-09-08T20:49:01",
            "upload_time_iso_8601": "2025-09-08T20:49:01.622979Z",
            "url": "https://files.pythonhosted.org/packages/a8/36/39825a4e229f7438a059702baa11b1921b42ecf17fbdad4f32ef46a7934d/llama_index_readers_weather-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8840ff006ac99dbd1a4532c9b1d4dd90d2b969a7ae4612dc781d2a76403f9037",
                "md5": "9cea36e7933e93f86295520784e7d2b9",
                "sha256": "7e9ac55fbe72e74473240e1294c7e001e5ce3bcf106d8f544f5ed8f282307549"
            },
            "downloads": -1,
            "filename": "llama_index_readers_weather-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9cea36e7933e93f86295520784e7d2b9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 4259,
            "upload_time": "2025-09-08T20:49:02",
            "upload_time_iso_8601": "2025-09-08T20:49:02.383998Z",
            "url": "https://files.pythonhosted.org/packages/88/40/ff006ac99dbd1a4532c9b1d4dd90d2b969a7ae4612dc781d2a76403f9037/llama_index_readers_weather-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-08 20:49:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-weather"
}
        
Elapsed time: 1.73057s