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",allfile=False)#如果是True,会上传所有文件而不只是py相关 -
如何下载? 安装完成后在终端输入 bpdown --name 项目名称 --version 版本 --password 密码 --host 服务器IP -
0.4.0 以后新增nas,可以在树莓派,玩客云等设备上使用,备份服务器代码 只需要在树莓派输入 bpnas 即可自动备份,打开http://服务器IP:8888/登录即可查看nas状态 在启动前,要在用户目录创建.env BPCODE=你的密码 BPATH=备份路径 BPHOST=服务器ip -
支持自动备份
.py、.pyc、.pt、.pth等文件,修改后服务器自动同步版本。 -
如有需要,可回退代码版本,类似于简易版的 git。
-
-
工具作用
- 解决深度学习开发中代码频繁拷贝、同步不及时、易丢失的问题。
- 只需配置一次服务器,后续代码自动备份,无需手动操作。
-
注意事项
- 本工具安全性有限,不建议用于敏感项目。
- 接单,商务合作请联系微信:15035624220
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
bpcode-0.5.1.tar.gz
(800.8 kB
view details)
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
bpcode-0.5.1-py3-none-any.whl
(809.7 kB
view details)
File details
Details for the file bpcode-0.5.1.tar.gz.
File metadata
- Download URL: bpcode-0.5.1.tar.gz
- Upload date:
- Size: 800.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8517187246c8bb932c4971eaef8d8054333937112286d1a5f42244cdb06fda10
|
|
| MD5 |
fd15b3e1c68d3d994ad031436c619dca
|
|
| BLAKE2b-256 |
cb42b43eb63fe3863af6ae92ebf6c0bfd5cf89ecf858137e87276b145a8e8e05
|
File details
Details for the file bpcode-0.5.1-py3-none-any.whl.
File metadata
- Download URL: bpcode-0.5.1-py3-none-any.whl
- Upload date:
- Size: 809.7 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 |
9c4dda9bf908e670392e8f0db02a8fdc2718dc640c84c7b0fd7c486eb89a7084
|
|
| MD5 |
5653fff544dafff3d9941a888b22528e
|
|
| BLAKE2b-256 |
223858a5cceec87373c16ef81c9080b47470bed2d92d7992574227d9a325b55e
|