仪评指标联分析模块

This commit is contained in:
BBIT-Kai
2025-09-24 13:59:00 +08:00
parent 0ab82b00d6
commit d2775f60a7
28 changed files with 1106 additions and 181 deletions
+27
View File
@@ -0,0 +1,27 @@
from datetime import timedelta
from minio import Minio
# MinIO 客户端初始化
minio_client = Minio(
"s1.ronsunny.cn:9000",
access_key="minioadmin",
secret_key="minioadmin",
secure=False,
)
def push_file(bucket_name, object_name, file_bytes, contents, content_type):
minio_client.put_object(
bucket_name,
object_name,
file_bytes,
length=len(contents),
content_type=content_type,
)
def get_temp_url(bucket_name, object_name):
return minio_client.presigned_get_object(
bucket_name, object_name, expires=timedelta(seconds=3600)
)