-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for data URI scheme? #89
Comments
What would be the use case for this? Why not just use a |
My use case is for loading resources from web pages, such as images or CSS style-sheets. A resource link is typically a web address or a data URI: <img src="http://example.com/image.png">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="> A I currently have a I was wondering if you'd consider including non- |
I currently don't see how this is a good use case for upath. If I understand correctly, the only useful method would be Is there another example with data uris that requires more functionality for path handling? |
I agree with @ap--. If you have a |
Fair enough |
@joouha this might soon be supported ootb with release of the next fsspec version. see: fsspec/filesystem_spec#1415 We'll have to add some tests, since I believe that most of the pathlib interface will just be non-functional. But the read methods might just work! Cheers, |
Ooh! That's awesome news 😃 😃 😃 Thanks Andreas |
Would you be interested in supporting data URIs in
universal_pathlib
?Most methods would be unimplemented, as the "path" is not a real hierarchical path 😃
I think the only useful method would be
open
, which would return the data encoded in the path.So a
DataPath
wouldn't requirefsspec
.The text was updated successfully, but these errors were encountered: