s3-upload-sdt-sdk-template/main.py

18 lines
386 B
Python

import sdtclouds3
import time
S3Id = "" # S3 AWS Access Key
S3Key = "" # S3 AWS Access Sercet Key
sdtcloudClient = sdtclouds3.sdtclouds3(S3Id, S3Key)
def runAction():
while True:
uploadFile = "./text.txt"
result = sdtcloudClient.uploadData(uploadFile, "")
print(f"Upload URL: {result}")
time.sleep(10)
if __name__ == "__main__":
runAction()