Bioinformatics analysis generally involves large data sets. When transferring data back to local or sharing data, you can use the
<span>linux</span>
version of Baidu Cloud Disk for transmission.
<span>linux</span>
has a program for Baidu Cloud Disk called <span>bypy</span>
, which is a third-party tool based on <span>python</span>
that calls the Baidu Cloud Disk <span>API</span>
. The <span>github</span>
link is: https://github.com/houtianze/bypy
Installation and usage:
mamba create -n -y bypy python=3.11
mamba activate bypy
pip install bypy -i https://pypi.tuna.tsinghua.edu.cn/simple
bypy info
# The first run will require you to paste the URL given in the command above into your browser to get the authorization code. Copy the authorization code and paste it into the terminal, then press enter and wait.
# You need to place the downloaded content under Baidu Cloud Disk/apps/bypy/
# To upload files or folders:
bypy upload [localpath] [remotepath] [ondup]
bypy syncup [localdir] [remotedir] [deleteremote]
# To download files or folders:
bypy downfile <remotefile> [localpath]
bypy downdir [remotedir] [localdir]
# You can use the third-party downloader aria2 to speed up:
# aria2 official website: https://aria2.github.io/
bypy --downloader aria2 download cn_windows_10_consumer_editions_version_1903_updated_aug_2019_x64_dvd_4c9cbf0b.iso
Reference link:
https://blog.csdn.net/PolarisRisingWar/article/details/121887801
Notes:
-
<span>bypy</span>
can only access the folder “bypy” within the “My Application Data” folder on Baidu Cloud Disk. Uploading and downloading data is restricted to this folder and cannot access data outside of it. -
<span>vip</span>
download speeds are relatively fast, reaching about 5MB/s, but uploads are limited to about 100-500KB/s, which the author explains as a limitation of the transit server. -
Due to various reasons, development of the software has currently stopped, and you may encounter issues with downloading or uploading. You can try again after a while, as this is the only convenient software available at the moment.