allenai / allenai/cached_path

Optional dependencies for GCS/S3/HuggingFace-Hub?

オープン
#223 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
47
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi, big fan of the project!

`cached_path` is certainly very capable because of the support for GCS/S3/HuggingFace out of the box, but one issue is that it seems to bring a lot of dependency baggage for situations that really only require HTTP/local path functionality.

For example, one project I am working with relies on the HTTP and local cache path functionality, but [there are conflicts](https://github.com/sidharthrajaram/StyleTTS2/issues/16#issue-2172405345) due to the `boto3` package. It's kind of like a printer refusing to print black-and-white when there is no magenta ink.

To that end, I'm curious whether there's interest in making the HF/S3/GCS dependencies optional? I can make a PR if needed! Thank you!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。