api request: asset blob id to asset/dandiset/version
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 DandiAPIClient 如何公开 get_dandisets()、get_versions() 和 get_assets(),以及 API 请求的定义位置。将提议的 assets/blob/{blob_id}/ endpoint 与现有的 asset 元数据流程进行比较。当 blob ID 能够返回其 asset 元数据,以及包含它的每个 dandiset 和版本,且无需扫描所有 dandiset 时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I need to build a map from asset blob id to dandiset(s). Currently, I am doing this by:
client = DandiAPIClient()
with shelve.open("asset_blob_to_dandiset") as db:
for dandiset in tqdm(list(client.get_dandisets()), position=1):
for version in tqdm(list(dandiset.get_versions()), position=2, leave=False):
dandiset = client.get_dandiset(dandiset_id=dandiset.identifier, version_id=version.identifier)
for asset in tqdm(list(dandiset.get_assets()), position=3, leave=False):
blob_id = asset.zarr if ".zarr" in pathlib.Path(asset.path).suffixes else asset.blob
db[blob_id] = dandiset.identifier
This works, but feels terrible inefficient because I really only need the map for a subset of assets, but since I don't know which dandisets they belong to I am forced to iterate over all of them in order to create a reverse map. It would be great if I could have an endpoint like assets/blob/{blob_id}/ which would return asset metadata. Ideally, this would include the ids of each dandiset that contains this asset and versions within each of those dandisets that contain this asset.
- 主要语言
- Python
- 星标
- 28
- 派生
- 37
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 9
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dandi/dandi-cli 的其他 Issue
-
pynwb metadata: get neurodata types可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
`metadata.nwb.get_metadata()` validates the whole BIDS dataset for every NWB file, then discards the result可能已有人在做 @CodyCBakerPhD 于 20 天前认领。 未关闭BIDS performance
dandi/dandi-cli#1962 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
BIDS bug
难度 3/5 半天 新手友好度 45/100
dandi/dandi-cli#1961 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
dandi/dandi-cli#1920 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 64/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
huggingface/smolagents#3106 ·
维护者通常 2 天内回复
-
area:scripts area:tests bug priority:later
难度 2/5 1-3 小时 新手友好度 72/100
Ikalus1988/MisakaNet#4358 ·
维护者通常 1 天内回复
-
Discovered ports from service discovery are never propagated to modules in Module.load()可能已有人在做 @vishalmore90 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
OWASP/Nettacker#1828 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
aws-samples/sample-per-model-bedrock#708 ·
维护者通常 1 天内回复
-
maintenance
难度 2/5 1-3 小时 新手友好度 62/100