"""
This module provides a set of classes and functions useful in several
parts of Onitu.
"""

"""
This module provides a set of classes and functions useful in several
parts of Onitu.
"""
import uuid

NAMESPACE_ONITU = uuid.UUID('bcd336f2-d023-4856-bc92-e79dd24b64d7')


def get_fid(filename):
    """
    Get the file-id (fid) of the given filename.

    The file-id is a UUID version 5, with the namespace define in
    :attr:`NAMESPACE_ONITU`.

    The purpose of the file-id is to avoid using filenames as a direct
    references to files inside Onitu.
    """
    return str(uuid.uuid5(NAMESPACE_ONITU, filename.encode('utf-8')))

Add get_fid in utils