# AVWX
![AVWX logo](https://raw.githubusercontent.com/avwx-rest/avwx-engine/main/docs/assets/images/avwx-logo-color-200.png)
[![PyPI](https://img.shields.io/pypi/v/avwx-engine?style=flat)](https://pypi.python.org/pypi/avwx-engine/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/avwx-engine?style=flat)](https://pypi.python.org/pypi/avwx-engine/)
[![PyPI - License](https://img.shields.io/pypi/l/avwx-engine?style=flat)](https://pypi.python.org/pypi/avwx-engine/)
[![GitHub - Test Suite Status](https://github.com/avwx-rest/avwx-engine/actions/workflows/test.yml/badge.svg)](https://github.com/avwx-rest/avwx-engine/actions/workflows/test.yml)
---
**Documentation**: [https://engine.avwx.rest](https://engine.avwx.rest)
**Source Code**: [https://github.com/avwx-rest/avwx-engine](https://github.com/avwx-rest/avwx-engine)
**PyPI**: [https://pypi.org/project/avwx-engine/](https://pypi.org/project/avwx-engine/)
---
AVWX is a global aviation weather fetching and parsing engine. It sources reports from a variety of government sources, parses individual elements, and calculates additional information like flight rules and time range interpolation.
AVWX currently supports:
- Station data and search
- METAR
- TAF
- PIREP
- AIRMET / SIGMET
- NOTAM
- NBM (NBH, NBS, NBE)
- GFS (MAV, MEX)
## Install
The easiest way to get started is to download the library from pypi using pip:
```bash
python -m pip install avwx-engine
```
## Basic Usage
Reports use ICAO, IATA, or GPS idents when specifying the desired station. Exceptions are thrown if a potentially invalid ident is given.
```python
>>> import avwx
>>>
>>> metar = avwx.Metar('KJFK')
>>> metar.station.name
'John F Kennedy International Airport'
>>> metar.update()
True
>>> metar.data.flight_rules
'IFR'
```
You can learn more by reading the [project documentation](https://engine.avwx.rest)
**Note**: This library requires Python 3.8 or above
## Development
Download and install the source code and its development dependencies:
* Clone this repository
```sh
git clone https://github.com/avwx-rest/avwx-engine
cd avwx-engine
```
* Requirements:
* [Poetry](https://python-poetry.org/)
* Python 3.8+
* Create a virtual environment and install the dependencies
```sh
poetry install
```
* Activate the virtual environment
```sh
poetry shell
```
### Testing
The test suite was built while using the `pytest` library, which is also installed as a dev dependency. The project uses `poethepoet` (dev dependency) to run basic tasks.
```bash
poe test
```
The end-to-end test files were generated using `util/build_tests.py` and placed into `tests/{report}/data`. Because Timestamp generation interprets the text based on the current date, Timestamp objects are nullified in the end-to-end tests.
### Documentation
The documentation is automatically generated from the content of the [docs directory](./docs) and from the docstrings of the public signatures of the source code. The documentation is updated and published to [engine.avwx.rest](https://engine.avwx.rest) automatically as part each release.
You can also preview local changes during development:
```sh
poe docs
```
### Releasing
Trigger the [Draft release workflow](https://github.com/avwx-rest/avwx-engine/actions/workflows/draft_release.yml) (press _Run workflow_). This will update the changelog & version and create a GitHub release which is in _Draft_ state.
Find the draft release from the
[GitHub releases](https://github.com/avwx-rest/avwx-engine/releases) and publish it. When a release is published, it'll trigger [release](https://github.com/avwx-rest/avwx-engine/blob/main/.github/workflows/release.yml) workflow which creates PyPI
release and deploys updated documentation.
### Pre-commit
Pre-commit hooks run all the auto-formatters, linters, and other quality checks to make sure the changeset is in good shape before a commit/push happens.
You can install the hooks with (runs for each commit):
```sh
pre-commit install
```
Or if you want them to run only for each push:
```sh
pre-commit install -t pre-push
```
Or if you want e.g. want to run all checks manually for all files:
```sh
pre-commit run --all-files
```
Raw data
{
"_id": null,
"home_page": "https://engine.avwx.rest",
"name": "avwx-engine",
"maintainer": null,
"docs_url": "https://pythonhosted.org/avwx-engine/",
"requires_python": "<3.13,>=3.9",
"maintainer_email": null,
"keywords": "aviation, weather, metar",
"author": "Michael duPont",
"author_email": "michael@dupont.dev",
"download_url": "https://files.pythonhosted.org/packages/3d/3b/f996450c94f07a67b20d2b3e370ae9cd8e8bdfc6fd6be1bba8262d06fec9/avwx_engine-1.8.28.tar.gz",
"platform": null,
"description": "# AVWX\n\n![AVWX logo](https://raw.githubusercontent.com/avwx-rest/avwx-engine/main/docs/assets/images/avwx-logo-color-200.png)\n\n[![PyPI](https://img.shields.io/pypi/v/avwx-engine?style=flat)](https://pypi.python.org/pypi/avwx-engine/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/avwx-engine?style=flat)](https://pypi.python.org/pypi/avwx-engine/)\n[![PyPI - License](https://img.shields.io/pypi/l/avwx-engine?style=flat)](https://pypi.python.org/pypi/avwx-engine/)\n[![GitHub - Test Suite Status](https://github.com/avwx-rest/avwx-engine/actions/workflows/test.yml/badge.svg)](https://github.com/avwx-rest/avwx-engine/actions/workflows/test.yml)\n\n---\n\n**Documentation**: [https://engine.avwx.rest](https://engine.avwx.rest)\n\n**Source Code**: [https://github.com/avwx-rest/avwx-engine](https://github.com/avwx-rest/avwx-engine)\n\n**PyPI**: [https://pypi.org/project/avwx-engine/](https://pypi.org/project/avwx-engine/)\n\n---\n\nAVWX is a global aviation weather fetching and parsing engine. It sources reports from a variety of government sources, parses individual elements, and calculates additional information like flight rules and time range interpolation.\n\nAVWX currently supports:\n\n- Station data and search\n- METAR\n- TAF\n- PIREP\n- AIRMET / SIGMET\n- NOTAM\n- NBM (NBH, NBS, NBE)\n- GFS (MAV, MEX)\n\n## Install\n\nThe easiest way to get started is to download the library from pypi using pip:\n\n```bash\npython -m pip install avwx-engine\n```\n\n## Basic Usage\n\nReports use ICAO, IATA, or GPS idents when specifying the desired station. Exceptions are thrown if a potentially invalid ident is given.\n\n```python\n>>> import avwx\n>>>\n>>> metar = avwx.Metar('KJFK')\n>>> metar.station.name\n'John F Kennedy International Airport'\n>>> metar.update()\nTrue\n>>> metar.data.flight_rules\n'IFR'\n```\n\nYou can learn more by reading the [project documentation](https://engine.avwx.rest)\n\n**Note**: This library requires Python 3.8 or above\n\n## Development\n\nDownload and install the source code and its development dependencies:\n\n* Clone this repository\n\n```sh\ngit clone https://github.com/avwx-rest/avwx-engine\ncd avwx-engine\n```\n\n* Requirements:\n * [Poetry](https://python-poetry.org/)\n * Python 3.8+\n* Create a virtual environment and install the dependencies\n\n```sh\npoetry install\n```\n\n* Activate the virtual environment\n\n```sh\npoetry shell\n```\n\n### Testing\n\nThe test suite was built while using the `pytest` library, which is also installed as a dev dependency. The project uses `poethepoet` (dev dependency) to run basic tasks.\n\n```bash\npoe test\n```\n\nThe end-to-end test files were generated using `util/build_tests.py` and placed into `tests/{report}/data`. Because Timestamp generation interprets the text based on the current date, Timestamp objects are nullified in the end-to-end tests.\n\n### Documentation\n\nThe documentation is automatically generated from the content of the [docs directory](./docs) and from the docstrings of the public signatures of the source code. The documentation is updated and published to [engine.avwx.rest](https://engine.avwx.rest) automatically as part each release.\n\n You can also preview local changes during development:\n\n```sh\npoe docs\n```\n\n### Releasing\n\nTrigger the [Draft release workflow](https://github.com/avwx-rest/avwx-engine/actions/workflows/draft_release.yml) (press _Run workflow_). This will update the changelog & version and create a GitHub release which is in _Draft_ state.\n\nFind the draft release from the\n[GitHub releases](https://github.com/avwx-rest/avwx-engine/releases) and publish it. When a release is published, it'll trigger [release](https://github.com/avwx-rest/avwx-engine/blob/main/.github/workflows/release.yml) workflow which creates PyPI\n release and deploys updated documentation.\n\n### Pre-commit\n\nPre-commit hooks run all the auto-formatters, linters, and other quality checks to make sure the changeset is in good shape before a commit/push happens.\n\nYou can install the hooks with (runs for each commit):\n\n```sh\npre-commit install\n```\n\nOr if you want them to run only for each push:\n\n```sh\npre-commit install -t pre-push\n```\n\nOr if you want e.g. want to run all checks manually for all files:\n\n```sh\npre-commit run --all-files\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Aviation weather report parsing library",
"version": "1.8.28",
"project_urls": {
"Documentation": "https://engine.avwx.rest",
"Homepage": "https://engine.avwx.rest",
"Repository": "https://github.com/avwx-rest/avwx-engine"
},
"split_keywords": [
"aviation",
" weather",
" metar"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "95a62c6d9b81c95cdb50ff68189a92283081a655a913e7e4aaf721f3cd20c785",
"md5": "68fb10b40dd82c7780839e606c26a57f",
"sha256": "2793d1cb1e03bcd485db7a90c5b98efd4a7f35208c086a3fa9facee0824664a1"
},
"downloads": -1,
"filename": "avwx_engine-1.8.28-py3-none-any.whl",
"has_sig": false,
"md5_digest": "68fb10b40dd82c7780839e606c26a57f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.9",
"size": 3391206,
"upload_time": "2024-05-13T04:47:17",
"upload_time_iso_8601": "2024-05-13T04:47:17.796320Z",
"url": "https://files.pythonhosted.org/packages/95/a6/2c6d9b81c95cdb50ff68189a92283081a655a913e7e4aaf721f3cd20c785/avwx_engine-1.8.28-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3d3bf996450c94f07a67b20d2b3e370ae9cd8e8bdfc6fd6be1bba8262d06fec9",
"md5": "b661f00c64d0971a4ce65a468de5bb5d",
"sha256": "0990ab6b2388d0acd00611314e8ad25ec6d10f98d48ab75a71e89c3a5f30a5c1"
},
"downloads": -1,
"filename": "avwx_engine-1.8.28.tar.gz",
"has_sig": false,
"md5_digest": "b661f00c64d0971a4ce65a468de5bb5d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.9",
"size": 3195120,
"upload_time": "2024-05-13T04:47:21",
"upload_time_iso_8601": "2024-05-13T04:47:21.334809Z",
"url": "https://files.pythonhosted.org/packages/3d/3b/f996450c94f07a67b20d2b3e370ae9cd8e8bdfc6fd6be1bba8262d06fec9/avwx_engine-1.8.28.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-13 04:47:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "avwx-rest",
"github_project": "avwx-engine",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "avwx-engine"
}