Skip to main content

Garmin Aviation Checklist Editor (ACE) - Parse and write ACE files from Python

Project description

Garmin Aviation Checklist Editor (ACE) - Python Module

Convert ACE files to/from various formats (HTML, orgmode). Parse and write ACE files from Python.

Installation

$ pip install garmin_ace

Usage

Display the available formats:

$ ace-convert
Convert source file to destination file
Usage: ace-convert <source> <dest>
Supported source formats are: .org, .ace
Supported destination formats are: .ace, .html

Example: Converting an ACE file to HTML and PDF

$ ace-convert checklist.ace checklist.html

You can further convert the HTML document to a PDF file with https://wkhtmltopdf.org/downloads.html

$ wkhtmltopdf checklist.html checklist.pdf

Example: Converting orgmode checklists to the ACE format

Org mode is a plaintext format, which can be easier to edit and manipulate than the Garmin Checklist Editor app. It expects a simple structure:

* Pre-flight checklist
** Master: on
** Lights: on
** Master: off
* Startup checklist
** Master: on
...

The top level bullet points are the checklist names, and subitems are the checklist items.

To convert it to the other available formats:

$ ace-convert checklist.org checklist.ace

or

$ ace-convert checklist.org checklist.html

See https://orgmode.org/worg/org-syntax.html for details on the format.

Decoding a ACE file to Python objects

from garmin_ace import ACEFileDecoder

checklists_obj = ACEFileDecoder.read_from_file('checklist.ace')

See models.py for the data structure.

Encoding a ACE file from Python objects

from garmin_ace import ACEFileEncoder

ACEFileEncoder(checklists_obj).write_to_file('checklist2.ace')

Running tests (source)

$ make test
$ make coverage

Credits

Originally based on the Swift implementation https://github.com/RISCfuture/GarminACE

License

Copyright (C) 2023 Xavier Antoviaque

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

Project details


Download files

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

Source Distribution

garmin_ace-0.0.1a10.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

garmin_ace-0.0.1a10-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file garmin_ace-0.0.1a10.tar.gz.

File metadata

  • Download URL: garmin_ace-0.0.1a10.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for garmin_ace-0.0.1a10.tar.gz
Algorithm Hash digest
SHA256 07432bfda9874c7736196ba85aa3db856fe9bf0a4dbadf6b263ec9167ee9ca6b
MD5 518edb38cbf5d62dee2a9a48f566c305
BLAKE2b-256 4cee6b427225f9624d7a0af2d0aae801ca4b9e2c8ff9eeed905152184ced95c7

See more details on using hashes here.

File details

Details for the file garmin_ace-0.0.1a10-py3-none-any.whl.

File metadata

File hashes

Hashes for garmin_ace-0.0.1a10-py3-none-any.whl
Algorithm Hash digest
SHA256 0a7603f34fda5752a72834d571a9faeab898a9b5001e54d35bf0ff43dc9768c9
MD5 1e73dee487b87d0643b1e0ee36712afa
BLAKE2b-256 7303f195a7bd2a797a5122ec4666c39af64c7adfe0262134151d34825738cfc3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page