Skip to content

propeller-app/eaip-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eaip-lib

eaip-lib is a raw-python library used for accessing the NATS eAIP (Aeronautical Information Package) via a clean, fast and efficient API.

The library is capable of searching for the most recent eAIP and then extracting data and providing access via a clean & powerful Python API. Alternatively the release date of any eAIP release can be provided.

Python3.8 & asyncio support is built-in.

File system caching built-in for rapid access to eAIP and reduced bandwidth.

Installation

$ pip install https://github.com/propellor-app/eaip-lib.git#egg=eaip-lib

Build the docs

$ sphinx-autodoc -o ./docs/source eaip
$ sphinx-build -b html ./docs/source ./docs/build

Example Usage

Print all Airfields ICAO code and their runways from most recent eAIP.

import asyncio, eaip

async def main():
    async for airfield in eaip.get_airfields_iter():
        print({
            'icao': airfield.icao,
            'runways': airfield.runways
        })

if __name__ == '__main__':
    asyncio.run(main())

Get Airfield radios with ICAO code EGKK (Gatwick) from eAIP release 10/09/2020.

import asyncio, eaip, datetime

async def main():
    airfield = await eaip.get_airfield('EGKK', datetime.datetime(2020, 10, 9))
    print(airfield.radios)

if __name__ == '__main__':
    asyncio.run(main())

About

Python API for scraping the NATS eAIP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published