Overview

This module contains utilities and settings for the libgs package.

Examples

Module Reference

Functions

bytes2hex(data)
bytes2prettyhex(data[, whitespacelen])
conv_time(d[, to, float_t, ignore_ambig_types]) There are a number of different date formats used around libgs ephem.Date, datetime, pandas.Timestamp to mention some.
hex2bytes(hexstr)
raise_if_aborted() This method will raise an exception if the abort_all global event has been set.
safe_sleep(t) safe_sleep uses a subset of the wait_loop capabilities to implement an anologe to the time.sleep() function.
schedule_regular_callback(func, delay)
setup_logger(logger[, cons_loglvl, …]) Function to set up logging for libgs.
wait_loop([events_or_callables, timeout, dt]) Generic waiting loop.

Classes

Defaults Defines default values used by the different classes.
RegularCallback(func, delay[, min_interval])
param func:Callback funciton to call
UTCLogFormatter([fmt, datefmt]) Initialize the formatter with specified format strings.
UTCLogFormatterHTML([fmt, datefmt]) Initialize the formatter with specified format strings.
XMLRPCTimeoutServerProxy(uri[, timeout, …])

Exceptions

AbortAllException(msg[, original_Error]) Exception representing the abort_all event
Error(msg[, original_Error]) Generic Error for libgs