__init__.py 813 B

12345678910111213141516171819202122
  1. # Copyright 2014 Baidu, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  4. # except in compliance with the License. You may obtain a copy of the License at
  5. #
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. #
  8. # Unless required by applicable law or agreed to in writing, software distributed under the
  9. # License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  10. # either express or implied. See the License for the specific language governing permissions
  11. # and limitations under the License.
  12. """
  13. This module defines some constants for BOS
  14. """
  15. MAX_PUT_OBJECT_LENGTH = 5 * 1024 * 1024 * 1024
  16. MAX_APPEND_OBJECT_LENGTH = 5 * 1024 * 1024 * 1024
  17. MAX_USER_METADATA_SIZE = 2 * 1024
  18. MIN_PART_NUMBER = 1
  19. MAX_PART_NUMBER = 10000
  20. URL_PREFIX = b"/"