swh.storage.common module

swh.storage.common.origin_url_to_sha1(origin_url: str) → bytes[source]

Convert an origin URL to a sha1. Encodes URL to utf-8.