llama-index-readers-weather


Namellama-index-readers-weather JSON
Version 0.1.3 PyPI version JSON
download
home_page
Summaryllama-index readers weather integration
upload_time2024-02-21 21:03:04
maintaineriamadhee
docs_urlNone
authorYour Name
requires_python>=3.8.1,<4.0
licenseMIT
keywords openweather weather
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Weather Loader

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 import download_loader

WeatherReader = download_loader("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/tree/main/llama_index) and/or subsequently used as a Tool in a [LangChain](https://github.com/hwchase17/langchain) Agent. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "llama-index-readers-weather",
    "maintainer": "iamadhee",
    "docs_url": null,
    "requires_python": ">=3.8.1,<4.0",
    "maintainer_email": "",
    "keywords": "openweather,weather",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/98/8c/1b2fe95d8622769d47e266a08c4bcc0045e6ae8015e8826d0e65117e5681/llama_index_readers_weather-0.1.3.tar.gz",
    "platform": null,
    "description": "# Weather Loader\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 import download_loader\n\nWeatherReader = download_loader(\"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/tree/main/llama_index) and/or subsequently used as a Tool in a [LangChain](https://github.com/hwchase17/langchain) Agent. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index readers weather integration",
    "version": "0.1.3",
    "project_urls": null,
    "split_keywords": [
        "openweather",
        "weather"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "efde8146822fc261d1924fecbe664f00f16581abfefd44bd2e8952a9203c2837",
                "md5": "c04ef27ef9054033acc1e9f722b11b32",
                "sha256": "a2db4b038f8a788dc0e6229e4c009ac4c261c23ce380023233314f79440460df"
            },
            "downloads": -1,
            "filename": "llama_index_readers_weather-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c04ef27ef9054033acc1e9f722b11b32",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1,<4.0",
            "size": 3182,
            "upload_time": "2024-02-21T21:03:03",
            "upload_time_iso_8601": "2024-02-21T21:03:03.327386Z",
            "url": "https://files.pythonhosted.org/packages/ef/de/8146822fc261d1924fecbe664f00f16581abfefd44bd2e8952a9203c2837/llama_index_readers_weather-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "988c1b2fe95d8622769d47e266a08c4bcc0045e6ae8015e8826d0e65117e5681",
                "md5": "627dd020dc154458fd34938b4aeb9249",
                "sha256": "2c9cb69d4f5ffb2659426f6cb4d9fd988a8e913e6538768c2089b51337f60f44"
            },
            "downloads": -1,
            "filename": "llama_index_readers_weather-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "627dd020dc154458fd34938b4aeb9249",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1,<4.0",
            "size": 2878,
            "upload_time": "2024-02-21T21:03:04",
            "upload_time_iso_8601": "2024-02-21T21:03:04.328475Z",
            "url": "https://files.pythonhosted.org/packages/98/8c/1b2fe95d8622769d47e266a08c4bcc0045e6ae8015e8826d0e65117e5681/llama_index_readers_weather-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-21 21:03:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-weather"
}
        
Elapsed time: 0.42227s