sbws package API

Submodules

sbws.globals module

sbws.globals.fail_hard(*a, **kw)

Log something … and then exit as fast as possible

sbws.globals.resolve(hostname, ipv4_only=False, ipv6_only=False)
sbws.globals.touch_file(fname, times=None)

If fname exists, update its last access and modified times to now. If fname does not exist, create it. If times are specified, pass them to os.utime for use.

Parameters:
  • fname (str) – Name of file to update or create
  • times (tuple) – 2-tuple of floats for access time and modified time respectively