How to use the gcsfs.gcsfuse.GCSFS function in gcsfs

To help you get started, we’ve selected a few gcsfs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dask / gcsfs / gcsfs / cli / gcsfuse.py View on Github external
logging.basicConfig(level=logging.INFO)
        logging.getLogger("gcsfs.gcsfuse").setLevel(logging.DEBUG)
    if verbose > 1:
        logging.basicConfig(level=logging.DEBUG)

    fmt = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
    if verbose == 1:
        logging.basicConfig(level=logging.INFO, format=fmt)
        logging.getLogger("gcsfs.gcsfuse").setLevel(logging.DEBUG)
    if verbose > 1:
        logging.basicConfig(level=logging.DEBUG, format=fmt)

    print("Mounting bucket %s to directory %s" % (bucket, mount_point))
    print("foreground:", foreground, ", nothreads:", not threads)
    FUSE(
        GCSFS(bucket, token=token, project=project_id, nfiles=cache_files),
        mount_point,
        nothreads=not threads,
        foreground=foreground,
    )