@classmethod
def get_locals(cls, session):
    """
        Get all local packages.

        :param session: SQLAlchemy session
        :type session: :class:`sqlalchemy.Session`

        :return: package instances
        :rtype: generator of :class:`pyshop.models.Package`
        """
    return cls.find(session, where=(cls.local == True,))
