[Tutor] python CLI parser

2007-12-21 Thread Martin Marcher
Hello, could you have a short review of my CLI package. What it provides is a simple interface to create a "shell". I'll be using it inside a bot I'm writing to manage it. Features: * pluggable commands * works over streams instead of stdin/stdout/stderr so it should be network aware (right?)

[Tutor] tarfile +stdin

2006-12-19 Thread Martin Marcher
Hello, I'm trying to create a backup script which in one of the last steps is to create a tarball that is possibly gzipped or bzipped2. >>> import tarfile >>> tbz = tarfile.open(name="tarfile.tar.bz2", mode="w:bz2") >>> tbz.add("myfile.dmp") >>> for tarinfo in tbz: ... print tarinfo.name