Join Slack
Powered by
Hey everyone! Does anyone know a way to use Python...
# ask-community
j
James Ashby
03/20/2023, 9:52 PM
Hey everyone! Does anyone know a way to use Python to get a list of all JSON blocks from my Prefect Cloud workspace? I want a list of all the names, assuming I don't know any.
✅ 1
r
redsquare
03/20/2023, 10:03 PM
use prefect client and read_block_documents()
🙏 1
redsquare
03/20/2023, 10:04 PM
orion is now server
https://discourse.prefect.io/t/how-can-i-list-all-blocks-across-my-workspaces/2002
j
James Ashby
03/20/2023, 10:06 PM
Great, thanks! Dunno why this wasn't coming up in my searches...
r
redsquare
03/20/2023, 10:09 PM
helps if you google prefect 2.0+bla
👍 1
2
Views
Open in Slack
Previous
Next