Capability#

class opendal.capability.Capability#

Capability defines the supported operations and their constraints for an Operator.

This structure provides a comprehensive description of an Operator’s capabilities, including:

  • Basic operations support (read, write, delete, etc.)

  • Advanced operation variants (conditional operations, metadata handling)

  • Operational constraints (size limits, batch limitations)

copy#

If operator supports copy.

copy_with_if_not_exists#

If copy can require that the target file does not exist.

create_dir#

If operator supports create dir.

delete#

If operator supports delete.

delete_with_recursive#

If recursive delete operations are supported.

delete_with_version#

If delete operations with version are supported.

list#

If operator supports list.

list_with_deleted#

If backend supports list with deleted.

list_with_limit#

If backend supports list with limit.

list_with_recursive#

If backend supports list without delimiter.

list_with_start_after#

If backend supports list with start after.

list_with_versions#

If backend supports list with versions.

presign#

If operator supports presign.

presign_delete#

If operator supports presign delete.

presign_read#

If operator supports presign read.

presign_stat#

If operator supports presign stat.

presign_write#

If operator supports presign write.

read#

If the operator supports read operations.

read_with_if_match#

If conditional read operations using If-Match are supported.

read_with_if_modified_since#

If conditional read operations using If-Modified-Since are supported.

read_with_if_none_match#

If conditional read operations using If-None-Match are supported.

read_with_if_unmodified_since#

If conditional read operations using If-Unmodified-Since are supported.

read_with_override_cache_control#

If Cache-Control header override is supported during read operations.

read_with_override_content_disposition#

If Content-Disposition header can be overridden during read operations.

read_with_override_content_type#

If Content-Type header override is supported during read operations.

read_with_version#

If versions read operations are supported.

rename#

If operator supports rename.

rename_with_if_not_exists#

If rename can require that the target file does not exist.

shared#

If operator supports shared.

stat#

If operator supports stat.

stat_with_if_match#

If operator supports stat with if match.

stat_with_if_modified_since#

If operator supports stat with if modified since.

stat_with_if_none_match#

If operator supports stat with if none match.

stat_with_if_unmodified_since#

If operator supports stat with if unmodified since.

stat_with_version#

If operator supports stat with version.

write#

If the operator supports write operations.

write_can_append#

If append operations are supported.

write_can_empty#

If writing empty content is supported.

write_can_multi#

If multiple write operations can be performed on the same object.

write_multi_max_size#

Maximum size supported for multipart uploads.

For example, AWS S3 supports up to 5GiB per part in multipart uploads.

write_multi_min_size#

Minimum size required for multipart uploads (except for the last part).

For example, AWS S3 requires at least 5MiB per part.

write_total_max_size#

Maximum total size supported for write operations.

For example, Cloudflare D1 has a 1MB total size limit.

write_with_cache_control#

If Cache-Control can be specified during write operations.

write_with_content_disposition#

If Content-Disposition can be specified during write operations.

write_with_content_encoding#

If Content-Encoding can be specified during write operations.

write_with_content_type#

If Content-Type can be specified during write operations.

write_with_if_match#

If conditional write operations using If-Match are supported.

write_with_if_none_match#

If conditional write operations using If-None-Match are supported.

write_with_if_not_exists#

If write operations can be conditional on object non-existence.

write_with_user_metadata#

If custom user metadata can be attached during write operations.