The pyc4.C4 class can be used to generate c4 id hashes of file names. All operations are done in the main thread. If you want to report progress you can store a callback function on the c4 instance.