Comments (6)
Good for me if that works for you!
from etils.
Thank you for the suggestion. With the fsspec
backend, it should be quite straightforward (using Azure extension for fsspec: https://github.com/fsspec/adlfs)
There's only 3 places to change:
-
Add a condition here to load the adlfs fsspec backend:
Line 349 in 470e159
-
Add GCS as an accepted URI scheme:
Line 38 in 470e159
-
Currently, for backward compatibility, if TF is installed, the
tf.io.gfile
backend will be used instead offsspec
. You need to excludeaz://
from this condition that force the TF backend:Line 110 in 470e159
Don't hesitate to send a PR. Happy to review it.
from etils.
Thanks @Conchylicultor. I'm ready to send you a PR. I think I need you to give me the right permissions for that.
from etils.
Thanks @Conchylicultor. I'm ready to send you a PR. I think I need you to give me the right permissions for that.
Thanks for the contribution. I'm not sure I understand which permission you need. Everyone is able to send a PR on any repository: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
from etils.
You're right, I just needed a fork. In any case, I just realized something:
So my actual end goal is to make tfds work on az:// paths, and because I'm using tfds via tf.data (instead of using say datasource), tfds actually will read files from the given dataset path via two different paths: etils and tensorflow_io. Unfortunately tensorflow_io expects the az:// path to start with the azure account name, while fsspec does not (it gets the account name from e.g., an env var).
That probably means that if we want tfds to work with az://, I can do all the pieces you suggested excepted this part:
"Currently, for backward compatibility, if TF is installed, the tf.io.gfile backend will be used instead of fsspec. You need to exclude az:// from this condition that force the TF backend".
That way tfds should theoretically be able to work with az whether you use it with tensorflow or not.
What do you think?
from etils.
#470 was merged. Closing this! Thanks again for the contribution
from etils.
Related Issues (20)
- Using etils's `epath` with AWS S3 links HOT 4
- pip installing etils spews warnings HOT 2
- When using edc and frozen/unfrozen pylint and mypy complain HOT 2
- cannot "pip install etils" HOT 4
- AttributeError when calling etils.eapp.better_logging HOT 2
- [Enhancement] Add `optree` integration to `etils.etree` HOT 1
- broken link in ecolab/docs/demo.ipynb HOT 1
- etils example fails to load on public colab due to missing mediapy dependency HOT 2
- Freezing unfrozen dataclasses requires unfreezing them beforehand. HOT 2
- edc: unfrozen dataclasses are hashble HOT 2
- etils.epath.Path.glob() removes gs:// prefix HOT 3
- Broken import of ecolab HOT 1
- v1.5.2: Test fails for python3.11 HOT 4
- epath behaves weird using fsspec on gcs HOT 2
- Support walk in epath? HOT 1
- Package broken under Python 3.9 HOT 6
- Infinite recursion on `is_relative_to` in `abstract_path.py` HOT 5
- ecolab incompatible with current protobuf version on google colab HOT 1
- `epath.Path("s3://...")` regression in python3.12? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etils.