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

18 lines
386 B
Python
Raw Permalink Normal View History

2024-03-05 08:42:25 +00:00
import sdtclouds3
import time
2024-06-14 02:17:17 +00:00
S3Id = "" # S3 AWS Access Key
S3Key = "" # S3 AWS Access Sercet Key
sdtcloudClient = sdtclouds3.sdtclouds3(S3Id, S3Key)
2024-03-05 08:42:25 +00:00
def runAction():
while True:
uploadFile = "./text.txt"
2024-03-05 08:43:47 +00:00
result = sdtcloudClient.uploadData(uploadFile, "")
print(f"Upload URL: {result}")
2024-03-05 08:42:25 +00:00
time.sleep(10)
if __name__ == "__main__":
runAction()