Python Utilities#

Todo

Write py_utils documentation

Python Utils API#

astropop.py_utils Module#

Small python addons to be used in astropop.

Functions#

string_fix(string[, encode])

Fix the byte<->string problem in python 3.

batch_key_replace(dictionary[, key])

Scan and replace {key} values in a dict by dict['key'] value.

check_number(value)

Check if a value passed is a scalar number.

run_command(args[, stdout, stderr, ...])

Run a command in command line with logging.

Classes#

broadcast(*args)

Broadcast values to the list size.