https://prefect.io logo
d

Deceivious

08/11/2022, 3:36 PM
Hi all, I am using
prefect deployment apply ...
and
prefect deployment build ...
CLI commands to deploy and build flows. Is there a python equivalent to these commands?
... 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")
d

Deceivious

08/11/2022, 4:44 PM
Thank you.
2 Views