This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python client for lookup of ICAO aircraft (Doc 8643) information

Project Description

Python client for lookup of ICAO aircraft (Doc 8643) information, also known as “Aircraft Type Designators”.

Install

pip install icao-aircrft

The module requires requests and lxml to be installed.

Usage

Example for use via the command line:

python -m icao-aircrft -t PAY3

Example code for use as a library:

>>> import icaoaircrft
>>> query = 'PAY3'
>>> for result in icaoaircrft.lookup(type_code=query):
>>>     print result
{'description': 'Landplane', 'wake_category': 'L', 'photo': None, 'type_code': 'PAY3', 'engine_count': 2, 'model': 'PA-42-720 Cheyenne 3', 'engine_type': 'Turboprop', 'manufacturer': 'AICSA'}
{'description': 'Landplane', 'wake_category': 'L', 'photo': None, 'type_code': 'PAY3', 'engine_count': 2, 'model': 'Cheyenne 3', 'engine_type': 'Turboprop', 'manufacturer': 'AICSA'}
...

Notes

The module does not contain the actual database. Instead it issues requests online to the icao.int server.

The results of lookups are stored in a local cache file called icaoaircrft_cache.db within the current directory. This file can be deleted at any time to get rid of stale data.

Due to the way the cache file is written, the module might not be thread-safe.

Release History

Release History

This version
History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
icao-aircrft-0.0.9.tar.gz (1.9 kB) Copy SHA256 Checksum SHA256 Source Oct 24, 2013
icao-aircrft-0.0.9.zip (2.3 kB) Copy SHA256 Checksum SHA256 Source Oct 24, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting