auto backup your code
Project description
bpcode 工具使用说明
-
服务端配置(必须先配置)
-
在服务器用户目录下新建
.env文件,内容示例:
BPCODE=你的密码 BPATH=你的代码备份路径BPCODE:设置密码,只是为了防止误上传到他人服务器,现在反正也没什么人用,以后再说叭 BPATH:必填,指定代码备份存储路径。
-
安装 bpcode 并启动服务端:
pip install bpcodebpserverufw allow 8888(ubuntu)总之自己开防火墙端口就行
-
-
客户端使用
-
在你的代码中添加如下内容(以 Python 为例):
from bpcode import backup a = backup.AutoBackUp("你的密码", "http://服务器IP") -
支持自动备份
.py、.pyc、.pt、.pth等文件,修改后服务器自动同步版本。 -
如有需要,可回退代码版本,类似于简易版的 git。
-
-
工具作用
- 解决深度学习开发中代码频繁拷贝、同步不及时、易丢失的问题。
- 只需配置一次服务器,后续代码自动备份,无需手动操作。
-
注意事项
- 本工具安全性有限,不建议用于敏感项目。有的bug甚至会暴露整个磁盘文件,以后有空再改
5.下载文件
bpdown --password --name --version --host
version版本号可以通过页面http://host:8888/查看,比如test2,那么name就是test,版本号是2
0.2.0新增断网不报错,bpdown工具,修复了前端路由问题
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bpcode-0.2.0.tar.gz.
File metadata
- Download URL: bpcode-0.2.0.tar.gz
- Upload date:
- Size: 793.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
880e47cd7c4fa8740f7caf08c5fc36e8c9e2a8163eebeede8834e35714f377e6
|
|
| MD5 |
80acd0023125284062317b2ff00ebf56
|
|
| BLAKE2b-256 |
5d5b8c95f751dd64ddda27f55d6c36524ddef82d9d2839c4e88461fe795d48f9
|
File details
Details for the file bpcode-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bpcode-0.2.0-py3-none-any.whl
- Upload date:
- Size: 801.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b014116e80bd52852b148e9296adf5cc1bd1d8ca6121cff82faf2b2b0c82947
|
|
| MD5 |
893dd83191fdc455658387cdcca14626
|
|
| BLAKE2b-256 |
c557d475d4df655e5f4ae98dbad5594e1e2f91e4104f93f4b158f8e61fc51e65
|