(query: str)
return thread.out_queue.get()
Takes a query (in a string) and returns its 'fingerprint'
Takes a query (in a string) and returns its 'fingerprint'
Takes a query ( in a string ) and returns its fingerprint
def pt_fingerprint(query: str) -> str:
    """
    Takes a query (in a string) and returns its 'fingerprint'
    """
    if not have_program("pt-fingerprint"):  # pragma: no cover
        raise OSError("pt-fingerprint doesn't appear to be installed")

    thread = PTFingerprintThread.get_thread()
    thread.in_queue.put(query)
    return thread.out_queue.get()
def pt_fingerprint ( query : str ) -> str : if not have_program ( "pt-fingerprint" ) : # pragma: no cover raise OSError ( "pt-fingerprint doesn't appear to be installed" ) thread = PTFingerprintThread . get_thread ( ) thread . in_queue . put ( query ) return thread . out_queue . get ( )