How can we create block from python code? for pref...
# ask-community
h
How can we create block from python code? for prefect 2.0 UI
a
it depends which type of Block but the general syntax is - e.g. S3:
Copy code
from prefect.filesystems import S3

block = S3(bucket_path="prefect-orion/test")
block.save("dev", overwrite=True)
👍 1
1