Introduction

KTL Python provides the ktl Python module, a native Python interface to the Keck Task Library (KTL) application programming interface (API). KTL Python is supported on Python 2.4 through and including Python 2.7; simultaneous support for Python 3.x should be reasonable enough to do, but there has yet to be any demand for such support. There are tentative plans to support Python 3.x in time for the release of Python 3.4, which is expected to be the “only” Python shipping with several major operating systems.

This documentation is intended to be complete for both end-users and for the maintainers of KTL Python. The first three sections (procedural, object-oriented, and examples) cover the topics of most interest to end-users; the remaining sections cover the internal workings of KTL Python, and are written with the module maintainers in mind.

When in doubt, please refer directly to the KTL Python code. Much of the contents displayed here come from inline documentation in the code, but many of the details about specific implementation choices are only explained by comments in the code itself.

Indices and tables