Dagger Python SDK
A client package for running Dagger pipelines.
Tip
New to Dagger? Learn how it works and start using it.
Reference
- Connection
- Client
BuildArgCacheSharingModeCacheVolumeCacheVolumeIDClientClient.blob()Client.builtin_container()Client.cache_volume()Client.container()Client.current_function_call()Client.current_module()Client.current_type_defs()Client.dagger_engine()Client.default_platform()Client.directory()Client.function()Client.generated_code()Client.git()Client.host()Client.http()Client.load_cache_volume_from_id()Client.load_container_from_id()Client.load_current_module_from_id()Client.load_dagger_engine_cache_entry_from_id()Client.load_dagger_engine_cache_entry_set_from_id()Client.load_dagger_engine_cache_from_id()Client.load_dagger_engine_from_id()Client.load_directory_from_id()Client.load_enum_type_def_from_id()Client.load_enum_value_type_def_from_id()Client.load_env_variable_from_id()Client.load_field_type_def_from_id()Client.load_file_from_id()Client.load_function_arg_from_id()Client.load_function_call_arg_value_from_id()Client.load_function_call_from_id()Client.load_function_from_id()Client.load_generated_code_from_id()Client.load_git_module_source_from_id()Client.load_git_ref_from_id()Client.load_git_repository_from_id()Client.load_host_from_id()Client.load_input_type_def_from_id()Client.load_interface_type_def_from_id()Client.load_label_from_id()Client.load_list_type_def_from_id()Client.load_local_module_source_from_id()Client.load_module_dependency_from_id()Client.load_module_from_id()Client.load_module_source_from_id()Client.load_module_source_view_from_id()Client.load_object_type_def_from_id()Client.load_port_from_id()Client.load_scalar_type_def_from_id()Client.load_secret_from_id()Client.load_service_from_id()Client.load_socket_from_id()Client.load_terminal_from_id()Client.load_type_def_from_id()Client.module()Client.module_dependency()Client.module_source()Client.pipeline()Client.secret()Client.set_secret()Client.type_def()Client.version()Client.with_()
ContainerContainer.as_service()Container.as_tarball()Container.build()Container.default_args()Container.directory()Container.entrypoint()Container.env_variable()Container.env_variables()Container.experimental_with_all_gp_us()Container.experimental_with_gpu()Container.export()Container.exposed_ports()Container.file()Container.from_()Container.id()Container.image_ref()Container.import_()Container.label()Container.labels()Container.mounts()Container.pipeline()Container.platform()Container.publish()Container.rootfs()Container.stderr()Container.stdout()Container.sync()Container.terminal()Container.user()Container.with_()Container.with_default_args()Container.with_default_terminal_cmd()Container.with_directory()Container.with_entrypoint()Container.with_env_variable()Container.with_exec()Container.with_exposed_port()Container.with_file()Container.with_files()Container.with_focus()Container.with_label()Container.with_mounted_cache()Container.with_mounted_directory()Container.with_mounted_file()Container.with_mounted_secret()Container.with_mounted_temp()Container.with_new_file()Container.with_registry_auth()Container.with_rootfs()Container.with_secret_variable()Container.with_service_binding()Container.with_unix_socket()Container.with_user()Container.with_workdir()Container.without_default_args()Container.without_directory()Container.without_entrypoint()Container.without_env_variable()Container.without_exposed_port()Container.without_file()Container.without_focus()Container.without_label()Container.without_mount()Container.without_registry_auth()Container.without_secret_variable()Container.without_unix_socket()Container.without_user()Container.without_workdir()Container.workdir()
ContainerIDCurrentModuleCurrentModuleIDDaggerEngineDaggerEngineCacheDaggerEngineCacheEntryDaggerEngineCacheEntryIDDaggerEngineCacheEntrySetDaggerEngineCacheEntrySetIDDaggerEngineCacheIDDaggerEngineIDDirectoryDirectory.as_module()Directory.diff()Directory.directory()Directory.docker_build()Directory.entries()Directory.export()Directory.file()Directory.glob()Directory.id()Directory.pipeline()Directory.sync()Directory.terminal()Directory.with_()Directory.with_directory()Directory.with_file()Directory.with_files()Directory.with_new_directory()Directory.with_new_file()Directory.with_timestamps()Directory.without_directory()Directory.without_file()
DirectoryIDEnumTypeDefEnumTypeDefIDEnumValueTypeDefEnumValueTypeDefIDEnvVariableEnvVariableIDFieldTypeDefFieldTypeDefIDFileFileIDFunctionFunctionArgFunctionArgIDFunctionCallFunctionCallArgValueFunctionCallArgValueIDFunctionCallIDFunctionIDGeneratedCodeGeneratedCodeIDGitModuleSourceGitModuleSourceIDGitRefGitRefIDGitRepositoryGitRepositoryIDHostHostIDImageLayerCompressionImageMediaTypesInputTypeDefInputTypeDefIDInterfaceTypeDefInterfaceTypeDefIDJSONLabelLabelIDListTypeDefListTypeDefIDLocalModuleSourceLocalModuleSourceIDModuleModule.dependencies()Module.dependency_config()Module.description()Module.enums()Module.generated_context_diff()Module.generated_context_directory()Module.id()Module.initialize()Module.interfaces()Module.name()Module.objects()Module.runtime()Module.sdk()Module.serve()Module.source()Module.with_()Module.with_description()Module.with_enum()Module.with_interface()Module.with_object()Module.with_source()
ModuleDependencyModuleDependencyIDModuleIDModuleSourceModuleSource.as_git_source()ModuleSource.as_local_source()ModuleSource.as_module()ModuleSource.as_string()ModuleSource.config_exists()ModuleSource.context_directory()ModuleSource.dependencies()ModuleSource.directory()ModuleSource.id()ModuleSource.kind()ModuleSource.module_name()ModuleSource.module_original_name()ModuleSource.resolve_context_path_from_caller()ModuleSource.resolve_dependency()ModuleSource.resolve_directory_from_caller()ModuleSource.resolve_from_caller()ModuleSource.source_root_subpath()ModuleSource.source_subpath()ModuleSource.view()ModuleSource.views()ModuleSource.with_()ModuleSource.with_context_directory()ModuleSource.with_dependencies()ModuleSource.with_init()ModuleSource.with_name()ModuleSource.with_sdk()ModuleSource.with_source_subpath()ModuleSource.with_view()
ModuleSourceIDModuleSourceKindModuleSourceViewModuleSourceViewIDNetworkProtocolObjectTypeDefObjectTypeDefIDPipelineLabelPlatformPortPortForwardPortIDScalarTypeDefScalarTypeDefIDSecretSecretIDServiceServiceIDSocketSocketIDTerminalTerminalIDTypeDefTypeDef.as_enum()TypeDef.as_input()TypeDef.as_interface()TypeDef.as_list()TypeDef.as_object()TypeDef.as_scalar()TypeDef.id()TypeDef.kind()TypeDef.optional()TypeDef.with_()TypeDef.with_constructor()TypeDef.with_enum()TypeDef.with_enum_value()TypeDef.with_field()TypeDef.with_function()TypeDef.with_interface()TypeDef.with_kind()TypeDef.with_list_of()TypeDef.with_object()TypeDef.with_optional()TypeDef.with_scalar()
TypeDefIDTypeDefKindVoid
- Exceptions
- Module