Procedural KTL Python
======================================

.. module:: ktl
.. moduleauthor:: Kyle Lanclos <lanclos@ucolick.org>


The procedural KTL Python functions implement the original API
created in the earliest stages of development on KTL Python.
Since then, additional top-level functions were added when necessary
to provide new functionality for the :doc:`object-oriented <object-oriented>`
interface, and it was considered desirable for that same functionality to
be exposed via the procedural interface.


Service and keyword manipulation
--------------------------------

.. autofunction:: cache
.. autofunction:: close
.. autofunction:: convert
.. autofunction:: heartbeat
.. autofunction:: listen
.. autofunction:: monitor
.. autofunction:: open
.. autofunction:: purge
.. autofunction:: read
.. function:: subscribe (service, keyword)

   Alias for :func:`monitor`.

.. autofunction:: wait
.. autofunction:: waitFor
.. function:: waitfor (expression, timeout=None)

   Alias for :func:`waitFor`.
.. autofunction:: write


Service and keyword metadata
----------------------------

.. autofunction:: fdset
.. autofunction:: keywords
.. autofunction:: range
.. autofunction:: servers
.. autofunction:: type
.. autofunction:: units


Logging and reporting
---------------------

.. autofunction:: log
.. autofunction:: logger
.. autofunction:: loglevel
.. autofunction:: debug
.. autofunction:: version