isempty is a library and a shell command that test if a directory is empty. It also provides a Python module.