Did I find the right examples for you? yes no

All Samples(10)  |  Call(9)  |  Derive(0)  |  Import(1)

        def hash(msg):
    return sha1(msg.encode('utf-8')).hexdigest() if msg else None

src/v/i/vingd-0.1.6/vingd/client.py   vingd(Download)
from .exceptions import Forbidden, GeneralException, InternalError, InvalidData, NotFound
from .response import Codes
from .util import quote, hash, safeformat, now, absdatetime
from . import __version__
    def __init__(self, key=None, secret=None, endpoint=None, frontend=None,
                 username=None, password=None):
        # `key`, `secret` are forward compatible arguments (we'll switch to oauth soon)
        self.api_key = key or username
        self.api_secret = secret or hash(password)

src/p/a/payswarm-python-HEAD/lib/payswarm/storage.py   payswarm-python(Download)
    # Set the necessary asset/license variables
    rval["asset"] = asset["id"]
    rval["assetHash"] = util.hash(asset)
    rval["license"] = \
        config.get("application", "default-license")