Skip to content

Commit b28ec3e

Browse files
committed
Refactor for v8.0.0
* Move all request, response, result and configuraton as models * Move dependent classes as inner classes Signed-off-by: Bala.FA <bala@minio.io>
1 parent a929d3a commit b28ec3e

File tree

134 files changed

+5478
-5008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+5478
-5008
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ jobs:
3030
runs-on: ${{ matrix.os }}
3131
strategy:
3232
matrix:
33-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
33+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
3434
os: [ubuntu-latest, windows-latest, macos-latest]
3535

3636
steps:
37-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v5
3838
- name: Run spell check on Ubuntu
3939
if: matrix.os == 'ubuntu-latest'
4040
uses: codespell-project/actions-codespell@master
4141
with:
4242
ignore_words_list: assertIn
4343
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v5
44+
uses: actions/setup-python@v6
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
- name: Install dependencies

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The MinIO Python Client SDK provides high level APIs to access any MinIO Object
55
This Quickstart Guide covers how to install the MinIO client SDK, connect to the object storage service, and create a sample file uploader.
66

77
The example below uses:
8-
- [Python version 3.9+](https://www.python.org/downloads/)
8+
- [Python version 3.10+](https://www.python.org/downloads/)
99
- The [MinIO `mc` command line tool](https://min.io/docs/minio/linux/reference/minio-mc.html)
1010
- The MinIO `play` test server
1111

@@ -17,7 +17,7 @@ For a complete list of APIs and examples, see the [Python Client API Reference](
1717

1818
## Install the MinIO Python SDK
1919

20-
The Python SDK requires Python version 3.9+.
20+
The Python SDK requires Python version 3.10+.
2121
You can install the SDK with `pip` or from the [`minio/minio-py` GitHub repository](https://github.com/minio/minio-py):
2222

2323
### Using `pip`

examples/append_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage,
3-
# (C) 2025 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

examples/bucket_exists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage,
3-
# (C) 2015 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

examples/compose_object.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage,
3-
# (C) 2020 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
from minio import Minio
18-
from minio.commonconfig import ComposeSource
18+
from minio.args import ComposeSource
1919
from minio.sse import SseS3
2020

2121
client = Minio(

examples/copy_object.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage,
3-
# (C) 2016-2020 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
1717
from datetime import datetime, timezone
1818

1919
from minio import Minio
20-
from minio.commonconfig import REPLACE, CopySource
20+
from minio.args import CopySource, Directive
2121

2222
client = Minio(
2323
endpoint="play.min.io",
@@ -55,6 +55,6 @@
5555
bucket_name="my-sourcebucket", object_name="my-sourceobject",
5656
),
5757
user_metadata={"test_meta_key": "test_meta_value"},
58-
metadata_directive=REPLACE,
58+
metadata_directive=Directive.REPLACE,
5959
)
6060
print(result.object_name, result.version_id)

examples/delete_bucket_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage.
3-
# Copyright (C) 2020 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

examples/delete_bucket_lifecycle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage.
3-
# Copyright (C) 2020 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

examples/delete_bucket_notification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage.
3-
# Copyright (C) 2020 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

examples/delete_bucket_policy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# MinIO Python Library for Amazon S3 Compatible Cloud Storage.
3-
# Copyright (C) 2020 MinIO, Inc.
2+
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C)
3+
# [2014] - [2025] MinIO, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)