Skip to main content

auto backup your code

Project description

bpcode 工具使用说明

  1. 服务端配置(必须先配置)

    • 在服务器用户目录下新建

      .env
      

      文件,内容示例:

      BPCODE=你的密码
      BPATH=你的代码备份路径
                              
      

      BPCODE:设置密码,只是为了防止误上传到他人服务器,现在反正也没什么人用,以后再说叭 BPATH:必填,指定代码备份存储路径。

    • 安装 bpcode 并启动服务端:

      pip install bpcode
      
      bpserver
      
      ufw allow 8888(ubuntu)总之自己开防火墙端口就行
      
  2. 客户端使用

    • 在你的代码中添加如下内容(以 Python 为例):

      from bpcode import backup
      a = backup.AutoBackUp("你的密码", "http://服务器IP")
                              
      
    • 支持自动备份 .py.pyc.pt.pth 等文件,修改后服务器自动同步版本。

    • 如有需要,可回退代码版本,类似于简易版的 git。

  3. 工具作用

    • 解决深度学习开发中代码频繁拷贝、同步不及时、易丢失的问题。
    • 只需配置一次服务器,后续代码自动备份,无需手动操作。
  4. 注意事项

    • 本工具安全性有限,不建议用于敏感项目。有的bug甚至会暴露整个磁盘文件,以后有空再改

Project details


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.1.0.tar.gz (793.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bpcode-0.1.0-py3-none-any.whl (801.0 kB view details)

Uploaded Python 3

File details

Details for the file bpcode-0.1.0.tar.gz.

File metadata

  • Download URL: bpcode-0.1.0.tar.gz
  • Upload date:
  • Size: 793.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for bpcode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6cc5c41c7af457333d5faaf0666994ae2d0b709305f474377e3cb11c792a9983
MD5 00b76b64a72f1d5b21a0871fb8fffc24
BLAKE2b-256 edace9c6765a6d588b0f344fd5b00c775841c793996e5e37c794ee4ed6217f74

See more details on using hashes here.

File details

Details for the file bpcode-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bpcode-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 801.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for bpcode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0ba0a83b7f3a97b219d0b71969531517f311abfea821a79210588c8c755d5bb
MD5 6cc7f02fe1e174d88c7f7a5e9d6154b8
BLAKE2b-256 18ec9d8e0d1751ccd62210f95b9544ed3f9b99f6130c17e5b9fe513fb367372d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page