CLI commands to deploy and build flows. Is there a python equivalent to these commands?
Deceivious
08/11/2022, 3:36 PM
... without having to use
from prefect.client import OrionClient
😄
k
Khuyen Tran
08/11/2022, 3:37 PM
We are working on the
Deployment
object for Python and will be released soon
d
Deceivious
08/11/2022, 3:38 PM
Thank you.
Any information on fetching block details and being able to create Azure Storage Blocks / Docker container blocks using python only [no UI]? Is this feature in the roadmap as well?
n
Nate
08/11/2022, 4:43 PM
Hi @Deceivious, we have support for this as of today:
creating azure storage block and saving it
Copy code
from prefect.filesystems import Azure
azure_storage_block = Azure(basepath="my-bucket/folder/")
azure_storage_block.save("dev")
creating docker container infrastructure block and saving it
Copy code
from prefect.infrastructure import DockerContainer
docker_container_block = DockerContainer(**my_args)
docker_container_block.save("my_container_setup")
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.