Python useful utils collection. Contains the following modules.
Simple logger where logging module is overkill.
TODO:
- Rename Output class to Channel.
- Check channel verbosity.
Checks if arguments match the function annotation.
A simple function that just resolves domain names to ip addresses.
TODO:
-
Returns only one random record.
-
Supports only A-records for now.
Trivial tmux wrapper.
Command line parser.
A mlockall/munlockall ctypes wrapper.
A structure-like class from http://norvig.com/python-iaq.html
Things like stop watch live there.
It's an os.pipe2() that closes fds when leaving with-statement.
Magic expansion of variables in strings. Never use this code because it relies on inspect module that considered harmful.
Automaticaly start debugger on unhandled exception. The code is taken from http://code.activestate.com/recipes/65287/