GithubHelp home page GithubHelp logo

cellerich / avwx-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avwx-rest/avwx-engine

0.0 1.0 0.0 16.15 MB

Aviation Weather parsing engine. METAR & TAF

License: MIT License

Python 100.00%

avwx-engine's Introduction

AVWX: Aviation Weather for Humans

PyPI version Requirements Status Documentation Status License

AVWX logo

Install

The easiest way to get started is to download the library from pypi using pip

pip install avwx-engine

Basic Usage

Reports use ICAO idents when specifying the desired station. Exceptions are thrown if a potentially invalid ident is given.

>>> import avwx
>>>
>>> metar = avwx.Metar('KJFK')
>>> metar.station_info.name
'John F Kennedy International Airport'
>>> metar.update()
True
>>> metar.data.flight_rules
'IFR'

You can learn more by reading the project documentation

Note: This library requires Python 3.6 or above

Develop

Download and install the source code and its development dependencies:

git clone github.com/avwx-rest/AVWX-Engine
cd AVWX-Engine
pip install -Ur requirements.txt

Code formatting should be handled by hooks in pre-commit. Before committing any code, be should to install pre-commit into the local git project:

pre-commit install

Test

The easiest way to test the package is using the nox library, which is installed as a dev dependencies. It will manage all tests, sessions, supported versions (when available), and cleanup. The tests will pick up the local version of avwx.

nox

If you want to run the tests directly, the test suite was built while using the pytest library, which is also installed as a dev dependency.

pytest

The end-to-end test files were generated using util/build_tests.py and placed into tests/{report}. Because Timestamp generation interprets the text based on the current date, Timestamp objects are nullified in the end-to-end tests.

Docs

AVWX uses Sphinx to build its documentation. It's just another install:

pip install sphinx

To build the docs:

cd docs
make html

avwx-engine's People

Contributors

devdupont avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.