{"id":31021237,"url":"https://github.com/evansuner/upyuns3client","last_synced_at":"2025-10-22T02:56:17.883Z","repository":{"id":190078949,"uuid":"681901837","full_name":"evansuner/upyuns3client","owner":"evansuner","description":"upyun存储 S3支持","archived":false,"fork":false,"pushed_at":"2023-08-25T05:43:37.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T11:48:06.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evansuner.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-23T02:28:58.000Z","updated_at":"2023-08-23T02:34:45.000Z","dependencies_parsed_at":"2023-08-23T06:21:49.301Z","dependency_job_id":null,"html_url":"https://github.com/evansuner/upyuns3client","commit_stats":null,"previous_names":["evansuner/upyuns3client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evansuner/upyuns3client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansuner%2Fupyuns3client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansuner%2Fupyuns3client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansuner%2Fupyuns3client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansuner%2Fupyuns3client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evansuner","download_url":"https://codeload.github.com/evansuner/upyuns3client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evansuner%2Fupyuns3client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280370896,"owners_count":26319317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-13T11:04:16.114Z","updated_at":"2025-10-22T02:56:17.878Z","avatar_url":"https://github.com/evansuner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 又拍云存储-s3 支持\n\n## 接口说明\n\n### 获取服务列表\n\nlist_buckets\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ---- | ---- | ---- | ---- |\n| None | None | None | None |\n\n### 获取目录列表\n\nlist_folders\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ------ | ---- | ---- | -------------- |\n| bucket | 是 | str | 又拍云服务名称 |\n\n### 获取目录文件列表\n\nlist_files\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ------ | ---- | ---- | -------------- |\n| bucket | 是 | str | 又拍云服务名称 |\n| folder | 是 | str | 又拍云服务目录 |\n\n### 删除文件\n\ndelete_file\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ------ | ---- | ---- | -------------- |\n| bucket | 是 | str | 又拍云服务名称 |\n| file | 是 | str | 又拍云文件名称 |\n\n### 删除目录\n\ndelete_folder\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ------ | ---- | ---- | -------------- |\n| bucket | 是 | str | 又拍云服务名称 |\n| folder | 是 | str | 又拍云服务目录 |\n\n### 创建目录\n\ncreate_folder\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ------ | ---- | ---- | -------------- |\n| bucket | 是 | str | 又拍云服务名称 |\n| folder | 是 | str | 又拍云服务目录 |\n\n### 上传文件\n\nupload_file\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ----------- | ---- | ---- | ------------------------------------------------------------ |\n| bucket | 是 | str | 又拍云服务名称 |\n| file_path | 是 | str | 本地文件路径 |\n| object_name | 否 | str | 如果 object 为 None，则又拍云的存储文件名称为 file_path 文件名，并且存放位置是根目录 |\n\n### 获取文件信息\n\nget_file_info\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ----------- | ---- | ---- | ------------------ |\n| bucket | 是 | str | 又拍云服务名称 |\n| object_name | 是 | str | 又拍云存储文件名称 |\n\n### 获取随机文件\n\nget_random_file\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ------ | ---- | ---- | -------------- |\n| bucket | 是 | str | 又拍云服务名称 |\n| folder | 是 | str | 又拍云服务目录 |\n\n### 下载文件\n\ndownload_file\n\n参数\n| 参数 | 必选 | 类型 | 说明 |\n| ----------- | ---- | ---- | ------------------------ |\n| bucket | 是 | str | 又拍云服务名称 |\n| object_name | 是 | str | 又拍云存储文件名称 |\n| file_path | 否 | str | 本地存储的文件路径及名称 |\n\n### 生成预签名 URL\n\ngenerate_presigned_url\n\n| 参数        | 必选 | 类型 | 说明                                                    |\n| ----------- | ---- | ---- | ------------------------------------------------------- |\n| bucket      | 是   | str  | 又拍云服务名称                                          |\n| object_name | 是   | str  | 又拍云存储文件名称                                      |\n| expiration  | 否   | int  | 过期时间，单位秒，最大不能超过 604800，默认不填 3600 秒 |\n\n## 代码示例\n\n```python\nfrom upyuns3client import UpYunS3Client\nak = \"xxxxx\"\nsk = \"xxxxx\"\nclient = UpYunS3Client(ak, sk)\nclient.generate_presigned_url(\n    bucket=\"test-bucket\", object_name=\"test.png\", expiration=3600\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevansuner%2Fupyuns3client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevansuner%2Fupyuns3client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevansuner%2Fupyuns3client/lists"}