Swhid_core.ComputeModule to compute a swhid for all kinds of objects.
A functor that, given a SHA1 module and a OS module, provides various functions to compute the swhid of a given object. Supported objects are content, directory, release, revision and snapshot. The origins and visits objects are not supported.