Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
统一云存储接口(Unified Cloud Storage Interface,简称 UCSI)是一个开源工具,旨在为各种云存储服务提供统一的 API。无论您使用的是 Google Drive、Dropbox、OneDrive 还是其他任何云存储服务,UCSI 都能抽象掉不同 API 的复杂性,使开发者能够通过一个一致的接口与多个云存储服务进行交互。
pip install fundrive
python install git+https://github.com/farfarfun/fundrive.git
以下是一个简单的示例,展示如何使用。
from fundrive import LanZouDrive, AlipanDrive, GiteeDrive, GithubDrive, OSSDrive
drive = LanZouDrive()
drive = AlipanDrive()
drive = GiteeDrive()
drive = GithubDrive()
drive = OSSDrive()
drive.login('***每个网盘需要的东西不一样***')
# 上传
drive.upload_file(local_path="./download", fid=888666)
# 下载文件
drive.download_file(fid=888666, local_dir='./download')
# 下载文件夹
drive.download_dir(fid=888666, local_dir="./download")
# 获取目录下的所有目录
drive.get_dir_list(fid=888666)
# 获取目录下的所有文件
drive.get_file_list(fid=888666)
# 删除某个文件
drive.delete(fid=888666)
# 某个文件是否存在
drive.exist(path='upload/README.md')
序号 | 网盘 | 支持内容 | 对应的包 |
---|---|---|---|
1 | 蓝奏云 | 上传/下载/删除 | fundrive-lanzou |
2 | OSS | 上传/下载/删除 | fundrive[oss] |
3 | github | 上传/下载/删除 | fundrive |
4 | gitee | 上传/下载/删除 | fundrive |
5 | 阿里云盘 | 上传/下载/删除 | fundrive[alipan] |
6 | 百度网盘 | 上传/下载/删除 | fundrive[baidu] |
7 | 谷歌网盘 | TODO | fundrive |
8 | Dropbox | TODO | fundrive |
9 | OneDrive | TODO | fundrive |
10 | Amazon | TODO | fundrive |
我们欢迎任何形式的贡献!如果您想为 UCSI 做出贡献,请遵循以下步骤:
git checkout -b feature/your-feature-name
)。git commit -am 'Add some feature'
)。git push origin feature/your-feature-name
)。如果您有任何问题或建议,请通过 issues 或 email 联系我们。
感谢您使用统一云存储接口!我们希望这个工具能够简化您的云存储集成工作。
FAQs
fundrive
We found that fundrive demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.