You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.9KB

  1. __version__ = '2.18.0'
  2. from . import models, exceptions, defaults
  3. from .api import Service, Bucket
  4. from .auth import Auth, AuthV2, AuthV4, AnonymousAuth, StsAuth, AUTH_VERSION_1, AUTH_VERSION_2, AUTH_VERSION_4, \
  5. make_auth, ProviderAuth, ProviderAuthV2, ProviderAuthV4
  6. from .http import Session, CaseInsensitiveDict
  7. from .credentials import EcsRamRoleCredentialsProvider, EcsRamRoleCredential, CredentialsProvider, \
  8. StaticCredentialsProvider
  9. from .iterators import (BucketIterator, ObjectIterator, ObjectIteratorV2,
  10. MultipartUploadIterator, ObjectUploadIterator,
  11. PartIterator, LiveChannelIterator)
  12. from .resumable import resumable_upload, resumable_download, ResumableStore, ResumableDownloadStore, determine_part_size
  13. from .resumable import make_upload_store, make_download_store
  14. from .compat import to_bytes, to_string, to_unicode, urlparse, urlquote, urlunquote
  15. from .utils import SizedFileAdapter, make_progress_adapter
  16. from .utils import content_type_by_name, is_valid_bucket_name, is_valid_endpoint
  17. from .utils import http_date, http_to_unixtime, iso8601_to_unixtime, date_to_iso8601, iso8601_to_date
  18. from .models import BUCKET_ACL_PRIVATE, BUCKET_ACL_PUBLIC_READ, BUCKET_ACL_PUBLIC_READ_WRITE
  19. from .models import SERVER_SIDE_ENCRYPTION_AES256, SERVER_SIDE_ENCRYPTION_KMS, SERVER_SIDE_ENCRYPTION_SM4, \
  20. KMS_DATA_ENCRYPTION_SM4
  21. from .models import OBJECT_ACL_DEFAULT, OBJECT_ACL_PRIVATE, OBJECT_ACL_PUBLIC_READ, OBJECT_ACL_PUBLIC_READ_WRITE
  22. from .models import BUCKET_STORAGE_CLASS_STANDARD, BUCKET_STORAGE_CLASS_IA, BUCKET_STORAGE_CLASS_ARCHIVE, \
  23. BUCKET_STORAGE_CLASS_COLD_ARCHIVE
  24. from .models import BUCKET_VERSIONING_ENABLE, BUCKET_VERSIONING_SUSPEND
  25. from .models import BUCKET_DATA_REDUNDANCY_TYPE_LRS, BUCKET_DATA_REDUNDANCY_TYPE_ZRS
  26. from .crypto import LocalRsaProvider, AliKMSProvider, RsaProvider, EncryptionMaterials
  27. from .crypto_bucket import CryptoBucket