atmolib


Nameatmolib JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://www.github.com/rahul4732saini/atmolib
SummaryVersatile weather package for effortless meteorology data extraction.
upload_time2024-04-28 12:37:47
maintainerNone
docs_urlNone
authorrahul4732saini
requires_pythonNone
licenseMIT
keywords atmolib weather pandas open-meteo
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align=center>
<img src="https://raw.githubusercontent.com/rahul4732saini/atmolib/main/assets/atmolib.png?raw=true" width=500>
</h1>

<a href="https://www.codefactor.io/repository/github/rahul4732saini/atmolib"><img src="https://www.codefactor.io/repository/github/rahul4732saini/atmolib/badge" alt="CodeFactor" /></a>

<a href="https://www.github.com/rahul4732saini/atmolib"><img src="https://img.shields.io/badge/status-beta-yellow" alt="projectStatus"></a>
<a href="https://www.github.com/rahul4732saini/atmolib"><img src="https://img.shields.io/badge/python-3.10+-blue" alt="pythonVersion"></a>
<a href="https://www.github.com/rahul4732saini/atmolib"><img src="https://img.shields.io/badge/License-MIT-green" alt="pythonVersion"></a>

<a href="https://www.github.com/rahul4732saini/atmolib"><img src="https://img.shields.io/github/stars/rahul4732saini/atmolib.svg?style=social&label=Star&maxAge=60" alt="StarProject"></a>
<a href="https://www.twitter.com/rahulsaini4732"><img src="https://img.shields.io/twitter/follow/rahulsaini4732?style=social&label=Follow&maxAge=60"></a>

<table border=1 cellpadding=10><tr><td>

<h3 align=center>*** Important Legal Disclaimer ***</h3>

---

<b>atmolib</b> is not affiliated, endorsed, or vetted by <b>Open-Meteo</b>. It's an open-source tool that uses Open-Meteo's publicly available APIs, and is intended for <b>research and educational purposes only</b>.

</td></tr></table>

<h3 align=center>Package Description</h3>

<b>atmolib</b> is a weather package that offers its users an easy and flexible way to access and parse weather data in a pythonic way. The package uses the Open-Meteo Web APIs to fetch the weather data in its backend.

## Installation

Install `atmolib` using `pip`:

```
$ python -m pip install -U atmolib --no-cache-dir
```

[Required Dependencies](./requirements.lock)

## Quick Guide

<b>atmolib</b> offers its users an array of objects which can be used for meteorology data extraction from the Open-Meteo's Web APIs.

The names of the objects with their description are mentioned as follows:

- `Weather`<br>
  Offers comprehensive extraction of current, hourly, and daily weather forecast data, encompassing temperature, dew point, weather code, soil temperature, visibility, and more, at specified coordinates.
- `WeatherArchive`<br>
  Enables retrieval of historical weather data, spanning hourly and daily records from 1940 till the present day, at specified coordinates.
- `MarineWeather`<br>
  Empowers users to access current, hourly, and daily marine weather forecast data, including wave height, wave direction, and wave period, at specified coordinates within a 5 kilometer(km) resolution.
- `AirQuality`<br>
  Provides access to current and hourly air quality forecast data, encompassing AQI, atmospheric gas concentrations, UV index, and more, at specified coordinates.

The also provides users with some useful functions as a part of the package as mentioned below:

- `get_elevation`<br>
  Extracts the elevation in meters(m) at the specified coordinates.

- `get_city_details`<br>
  Extracts the city details such as coordinates, country, timezone, etc. based on the specified name.

## Basic Usage

This guide provides the basic usage of the atmolib package and highlights some of the generally used methods.
All the methods in the package are designed to be used with minimal arguments with default
arguments already being specified in all of them.

- `Weather` class usage:

```python
import atmolib as atmo

# 'forecast_days' is an optional argument and specifies the number
# of days for which forecast data is desired to be extracted.
weather = atmo.Weather(lat=26.91, long=75.54, forecast_days=10)

# Extracts a summary of weather forecast data.
weather.get_current_summary()
weather.get_hourly_summary()
weather.get_daily_summary()

# Extracts the current weather conditions.
weather.get_current_temperature()
weather.get_current_weather_code()
weather.get_current_cloud_cover()
weather.get_current_wind_speed()
weather.get_current_pressure()
weather.get_current_precipitation()
weather.get_current_relative_humidity()

# Extracts the hourly weather forecast data.
weather.get_hourly_temperature()
weather.get_hourly_visibility()
weather.get_hourly_wind_speed()
weather.get_hourly_precipitation_probability()
weather.get_hourly_soil_temperature()

# Extracts the daily weather forecast data.
weather.get_daily_temperature()
weather.get_daily_max_precipitation_probability()
weather.get_daily_max_uv_index()
weather.get_daily_max_wind_speed()
weather.get_daily_total_precipitation()
weather.get_daily_sunshine_duration()
```

- `WeatherArchive` provides the same methods as `Weather` class as a part of a data range with slight modifications in some methods.

- `MarineWeather` class usage:

```python
import atmolib as atmo

# 'forecast_days' is an optional argument and specifies the number
# of days for which forecast data is desired to be extracted.
# 'wave_type' refers to the type of waves for which marine
# weather data is desired to be extracted.
marine = atmo.MarineWeather(lat=0, long=0, wave_type='wind', forecast_days=7)

# Extracts a summary of marine weather forecast data.
marine.get_current_summary()
marine.get_hourly_summary()
marine.get_daily_summary()

# Extracts the current weather conditions.
marine.get_current_wave_height()
marine.get_current_wave_direction()
marine.get_current_wave_period()

# Extracts the hourly weather forecast data.
marine.get_hourly_wave_height()
marine.get_hourly_wave_direction()
marine.get_hourly_wave_period()

# Extracts the daily weather forecast data.
marine.get_daily_max_wave_height()
marine.get_daily_dominant_wave_direction()
marine.get_daily_max_wave_period()
```

- `AirQuality` class usage:

```python
import atmolib as atmo

air = atmo.AirQuality(lat=26.91, long=75.54, forecast_days=7)

# Extracts a summary of air quality forecast data.
air.get_current_summary()
air.get_hourly_summary()

# Extracts the current weather conditions.
air.get_current_aqi()
air.get_current_pm2_5_conc()
air.get_current_pm10_conc()
air.get_current_uv_index()
air.get_hourly_dust_conc()

# Extracts the hourly weather forecast data.
air.get_hourly_uv_index()
air.get_hourly_uv_index()
air.get_hourly_pm2_5_conc()
air.get_hourly_pm10_conc()
air.get_hourly_aerosol_optical_depth()
```

## Legals

<b>atmolib</b> is distributed under the MIT License. Refer to the [LICENSE](./LICENSE) for more details.

AGAIN: <b>atmolib</b> is not affiliated, endorsed, or vetted by <b>Open-Meteo</b>. It's an open-source tool that uses Open-Meteo's publicly available meteorology APIs, and is intended for research and educational purposes only.

## Call for Contributions

The <b>atmolib</b> project always welcomes your precious expertise and enthusiasm!
The package relies on its community's wisdom and intelligence to investigate bugs and contribute code. We always appreciate improvements and contributions to this project.

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.github.com/rahul4732saini/atmolib",
    "name": "atmolib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "atmolib, weather, pandas, open-meteo",
    "author": "rahul4732saini",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/92/e9/5349356cd646a20c2a2fc7b99225ad7298dc4c3ab52c38c5bfd3308f4f09/atmolib-0.1.0.tar.gz",
    "platform": "any",
    "description": "<h1 align=center>\n<img src=\"https://raw.githubusercontent.com/rahul4732saini/atmolib/main/assets/atmolib.png?raw=true\" width=500>\n</h1>\n\n<a href=\"https://www.codefactor.io/repository/github/rahul4732saini/atmolib\"><img src=\"https://www.codefactor.io/repository/github/rahul4732saini/atmolib/badge\" alt=\"CodeFactor\" /></a>\n\n<a href=\"https://www.github.com/rahul4732saini/atmolib\"><img src=\"https://img.shields.io/badge/status-beta-yellow\" alt=\"projectStatus\"></a>\n<a href=\"https://www.github.com/rahul4732saini/atmolib\"><img src=\"https://img.shields.io/badge/python-3.10+-blue\" alt=\"pythonVersion\"></a>\n<a href=\"https://www.github.com/rahul4732saini/atmolib\"><img src=\"https://img.shields.io/badge/License-MIT-green\" alt=\"pythonVersion\"></a>\n\n<a href=\"https://www.github.com/rahul4732saini/atmolib\"><img src=\"https://img.shields.io/github/stars/rahul4732saini/atmolib.svg?style=social&label=Star&maxAge=60\" alt=\"StarProject\"></a>\n<a href=\"https://www.twitter.com/rahulsaini4732\"><img src=\"https://img.shields.io/twitter/follow/rahulsaini4732?style=social&label=Follow&maxAge=60\"></a>\n\n<table border=1 cellpadding=10><tr><td>\n\n<h3 align=center>*** Important Legal Disclaimer ***</h3>\n\n---\n\n<b>atmolib</b> is not affiliated, endorsed, or vetted by <b>Open-Meteo</b>. It's an open-source tool that uses Open-Meteo's publicly available APIs, and is intended for <b>research and educational purposes only</b>.\n\n</td></tr></table>\n\n<h3 align=center>Package Description</h3>\n\n<b>atmolib</b> is a weather package that offers its users an easy and flexible way to access and parse weather data in a pythonic way. The package uses the Open-Meteo Web APIs to fetch the weather data in its backend.\n\n## Installation\n\nInstall `atmolib` using `pip`:\n\n```\n$ python -m pip install -U atmolib --no-cache-dir\n```\n\n[Required Dependencies](./requirements.lock)\n\n## Quick Guide\n\n<b>atmolib</b> offers its users an array of objects which can be used for meteorology data extraction from the Open-Meteo's Web APIs.\n\nThe names of the objects with their description are mentioned as follows:\n\n- `Weather`<br>\n  Offers comprehensive extraction of current, hourly, and daily weather forecast data, encompassing temperature, dew point, weather code, soil temperature, visibility, and more, at specified coordinates.\n- `WeatherArchive`<br>\n  Enables retrieval of historical weather data, spanning hourly and daily records from 1940 till the present day, at specified coordinates.\n- `MarineWeather`<br>\n  Empowers users to access current, hourly, and daily marine weather forecast data, including wave height, wave direction, and wave period, at specified coordinates within a 5 kilometer(km) resolution.\n- `AirQuality`<br>\n  Provides access to current and hourly air quality forecast data, encompassing AQI, atmospheric gas concentrations, UV index, and more, at specified coordinates.\n\nThe also provides users with some useful functions as a part of the package as mentioned below:\n\n- `get_elevation`<br>\n  Extracts the elevation in meters(m) at the specified coordinates.\n\n- `get_city_details`<br>\n  Extracts the city details such as coordinates, country, timezone, etc. based on the specified name.\n\n## Basic Usage\n\nThis guide provides the basic usage of the atmolib package and highlights some of the generally used methods.\nAll the methods in the package are designed to be used with minimal arguments with default\narguments already being specified in all of them.\n\n- `Weather` class usage:\n\n```python\nimport atmolib as atmo\n\n# 'forecast_days' is an optional argument and specifies the number\n# of days for which forecast data is desired to be extracted.\nweather = atmo.Weather(lat=26.91, long=75.54, forecast_days=10)\n\n# Extracts a summary of weather forecast data.\nweather.get_current_summary()\nweather.get_hourly_summary()\nweather.get_daily_summary()\n\n# Extracts the current weather conditions.\nweather.get_current_temperature()\nweather.get_current_weather_code()\nweather.get_current_cloud_cover()\nweather.get_current_wind_speed()\nweather.get_current_pressure()\nweather.get_current_precipitation()\nweather.get_current_relative_humidity()\n\n# Extracts the hourly weather forecast data.\nweather.get_hourly_temperature()\nweather.get_hourly_visibility()\nweather.get_hourly_wind_speed()\nweather.get_hourly_precipitation_probability()\nweather.get_hourly_soil_temperature()\n\n# Extracts the daily weather forecast data.\nweather.get_daily_temperature()\nweather.get_daily_max_precipitation_probability()\nweather.get_daily_max_uv_index()\nweather.get_daily_max_wind_speed()\nweather.get_daily_total_precipitation()\nweather.get_daily_sunshine_duration()\n```\n\n- `WeatherArchive` provides the same methods as `Weather` class as a part of a data range with slight modifications in some methods.\n\n- `MarineWeather` class usage:\n\n```python\nimport atmolib as atmo\n\n# 'forecast_days' is an optional argument and specifies the number\n# of days for which forecast data is desired to be extracted.\n# 'wave_type' refers to the type of waves for which marine\n# weather data is desired to be extracted.\nmarine = atmo.MarineWeather(lat=0, long=0, wave_type='wind', forecast_days=7)\n\n# Extracts a summary of marine weather forecast data.\nmarine.get_current_summary()\nmarine.get_hourly_summary()\nmarine.get_daily_summary()\n\n# Extracts the current weather conditions.\nmarine.get_current_wave_height()\nmarine.get_current_wave_direction()\nmarine.get_current_wave_period()\n\n# Extracts the hourly weather forecast data.\nmarine.get_hourly_wave_height()\nmarine.get_hourly_wave_direction()\nmarine.get_hourly_wave_period()\n\n# Extracts the daily weather forecast data.\nmarine.get_daily_max_wave_height()\nmarine.get_daily_dominant_wave_direction()\nmarine.get_daily_max_wave_period()\n```\n\n- `AirQuality` class usage:\n\n```python\nimport atmolib as atmo\n\nair = atmo.AirQuality(lat=26.91, long=75.54, forecast_days=7)\n\n# Extracts a summary of air quality forecast data.\nair.get_current_summary()\nair.get_hourly_summary()\n\n# Extracts the current weather conditions.\nair.get_current_aqi()\nair.get_current_pm2_5_conc()\nair.get_current_pm10_conc()\nair.get_current_uv_index()\nair.get_hourly_dust_conc()\n\n# Extracts the hourly weather forecast data.\nair.get_hourly_uv_index()\nair.get_hourly_uv_index()\nair.get_hourly_pm2_5_conc()\nair.get_hourly_pm10_conc()\nair.get_hourly_aerosol_optical_depth()\n```\n\n## Legals\n\n<b>atmolib</b> is distributed under the MIT License. Refer to the [LICENSE](./LICENSE) for more details.\n\nAGAIN: <b>atmolib</b> is not affiliated, endorsed, or vetted by <b>Open-Meteo</b>. It's an open-source tool that uses Open-Meteo's publicly available meteorology APIs, and is intended for research and educational purposes only.\n\n## Call for Contributions\n\nThe <b>atmolib</b> project always welcomes your precious expertise and enthusiasm!\nThe package relies on its community's wisdom and intelligence to investigate bugs and contribute code. We always appreciate improvements and contributions to this project.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Versatile weather package for effortless meteorology data extraction.",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://www.github.com/rahul4732saini/atmolib"
    },
    "split_keywords": [
        "atmolib",
        " weather",
        " pandas",
        " open-meteo"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b244ec447c34bda11a7aedede5f9a97e66ba04506b6c7572171dd512db3efd8",
                "md5": "2e099c6dccee5462d6d6e4d7f04b043e",
                "sha256": "cbaeafbf8d66c6e593044a4d62437eaaebbab632f2a9b566b89b93a9ac4de06e"
            },
            "downloads": -1,
            "filename": "atmolib-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2e099c6dccee5462d6d6e4d7f04b043e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 39591,
            "upload_time": "2024-04-28T12:37:45",
            "upload_time_iso_8601": "2024-04-28T12:37:45.152783Z",
            "url": "https://files.pythonhosted.org/packages/7b/24/4ec447c34bda11a7aedede5f9a97e66ba04506b6c7572171dd512db3efd8/atmolib-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "92e95349356cd646a20c2a2fc7b99225ad7298dc4c3ab52c38c5bfd3308f4f09",
                "md5": "bdca15b5b862e9815a7f87da546e55fd",
                "sha256": "aa8c6d7b6353300e8563b011d2fe63164b39e55c4020c45bb64736df2772c922"
            },
            "downloads": -1,
            "filename": "atmolib-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "bdca15b5b862e9815a7f87da546e55fd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 30897,
            "upload_time": "2024-04-28T12:37:47",
            "upload_time_iso_8601": "2024-04-28T12:37:47.707491Z",
            "url": "https://files.pythonhosted.org/packages/92/e9/5349356cd646a20c2a2fc7b99225ad7298dc4c3ab52c38c5bfd3308f4f09/atmolib-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-28 12:37:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rahul4732saini",
    "github_project": "atmolib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "atmolib"
}
        
Elapsed time: 0.23335s