https://prefect.io logo
h

Hafsa Junaid

08/07/2022, 8:48 PM
How can we create block from python code? for prefect 2.0 UI
a

Anna Geller

08/07/2022, 9:28 PM
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
2 Views