__init__.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*- coding: utf-8 -*-
  2. # MinIO Python Library for Amazon S3 Compatible Cloud Storage,
  3. # (C) 2015, 2016, 2017 MinIO, Inc.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. """
  17. minio - MinIO Python SDK for Amazon S3 Compatible Cloud Storage
  18. >>> from minio import Minio
  19. >>> client = Minio(
  20. ... "play.min.io",
  21. ... access_key="Q3AM3UQ867SPQQA43P2F",
  22. ... secret_key="zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",
  23. ... )
  24. >>> buckets = client.list_buckets()
  25. >>> for bucket in buckets:
  26. ... print(bucket.name, bucket.creation_date)
  27. :copyright: (C) 2015-2020 MinIO, Inc.
  28. :license: Apache 2.0, see LICENSE for more details.
  29. """
  30. __title__ = "minio-py"
  31. __author__ = "MinIO, Inc."
  32. __version__ = "7.2.20"
  33. __license__ = "Apache 2.0"
  34. __copyright__ = "Copyright 2015, 2016, 2017, 2018, 2019, 2020 MinIO, Inc."
  35. # pylint: disable=unused-import,useless-import-alias
  36. from .api import Minio as Minio
  37. from .error import InvalidResponseError as InvalidResponseError
  38. from .error import S3Error as S3Error
  39. from .error import ServerError as ServerError
  40. from .minioadmin import MinioAdmin as MinioAdmin