Add manual_test.py

This commit is contained in:
2024-10-22 11:30:43 +00:00
parent aa061a4541
commit 33b0f0a094

24
manual_test.py Normal file
View File

@@ -0,0 +1,24 @@
import os
import traceback
from obs import ObsClient, Versions
obsClient = ObsClient(
access_key_id = ak,
secret_access_key = sk,
server = endpoint
)
mark = None
index = 1
listing = obsClient.listVersions(
bucket,
version = Versions(
prefix = prefiks,
encoding_type = 'url',
key_marker = mark,
max_keys = 1000
)
)
print(listing)