[Q] Programmatically fetch all blocks of all reports
SauravMaheshkar opened this issue Β· comments
Saurav Maheshkar commented
Hi ππ½, I was wondering if there is any way to use the wandb API and workspaces together to fetch all the blocks of all the reports I have authored.
References
Andrew Truong commented
I think you can query for Reports from the vanilla W&B API, and there should be a url
property.
Then you can iterate to get the blocks you need:
urls = [...]
def get_all_blocks(urls: list[str]):
for url in urls:
report = wr.Report.from_url(url)
yield from report.blocks