traceback.format_exc()
can get it with raising an exception.
traceback.print_stack()
prints the stack without an exception needed, but it does not return a string.
There doesn't seem to be a way to get the stack trace string without raising an exception in python?