Henge is a Python package that builds backends for generic decomposable recursive unique identifiers (or, DRUIDs). It is intended to be used as a building block for sequence collections (see the seqcol package), and also for other data types that need content-derived identifiers.
Documentation at http://henge.databio.org.