Git Product home page Git Product logo

Comments (4)

martindurant avatar martindurant commented on July 17, 2024 1

I believe gs:// is more popular amongst the general public.

but not among our user base, for obvious reasons.
Would you be prepared to switch the order of the gcsfs.core.GCSFileSystem.protocol for yourself at runtime? You could propose this as a PR and we can maybe get a feeling for whether this is disruptive for people here.

from gcsfs.

martindurant avatar martindurant commented on July 17, 2024

At the point of running unstrip, we no longer know what protocol prefix was used in the original string, of course. "gcs" and "gs" are both allowed by GCSFS, and the former is by far the more popular with users (see also examples in the documentation). The aim of unstrip is to produce a URL which fsspec will recognise, so either is "valid".
I believe our use of full URLs of the style "gcs://bucket/path/file" may predate google's.

from gcsfs.

alexdmiller avatar alexdmiller commented on July 17, 2024

Thanks for your reply!

"gcs" and "gs" are both allowed by GCSFS, and the former is by far the more popular with users

How are you measuring that? I believe gs:// is more popular amongst the general public.

...(see also examples in the documentation)

Do you mean the fsspec docs or the Google docs? I can't find a single mention of gcs:// in the Google docs.

The aim of unstrip is to produce a URL which fsspec will recognise

I believe the aim should also be to produce URIs that are digestible by other tools. Currently, fsspec produces bespoke non-standard URIs not recognized by other tools, including Google's official gsutil CLI:

$ gsutil ls gcs://my-bucket
InvalidUrlError: Unrecognized scheme "gcs".

I believe our use of full URLs of the style "gcs://bucket/path/file" may predate google's.

That may be true, and I apologize for not having the context on fsspec. I'm just a new client of the library trying to print out URIs which can be consumed by others on my team.

I should say that fsspec is an absolutely lovely library to work with and I'm such a fan. That's why I so badly want this little kink to be ironed out. Thanks for your hard work!

from gcsfs.

alexdmiller avatar alexdmiller commented on July 17, 2024

Sure, PR is here: #620

from gcsfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.