Skip to main content

A Securely Data Transmitting Tool

Project description

xbridge

An xrpc based tool for securely transmitting in a local network

Command line Usage

Install

suggest using pipx to install command

pipx install xbridge

帮助

xbridge [-h|--help]

搜索服务

xbridge -d

启动服务

xbridge [-c <config_dir>] <name> start

<config_dir>是本地配置目录, 包含密钥和未结束的sessions. 默认路径$HOME/.xbridge <name>是建议的服务名, 实际服务名以启动后为准

发起请求

一般命令格式

xbridge [-c <config_dir>] <name> request [<action> <params...> [ --with-files <files...> ]]

<name>可以是服务名, 也可以是[protocal://]ip:port格式字符串

快捷子命令

  • 查看服务支持的所有请求
xbridge <server> info
# 等价于:
xbridge <server> request info
  • 发送文件:
xbridge <server> send <files...>
# 等价于:
xbridge <server> request send_files <files...> --with-files <files...>
  • 获取文件
xbridge <server> get <files...>
# 等价于:
xbridge <server> request get_files <files...>
  • 列出文件
xbridge <server> ls [<files...>]
# 等价于:
xbridge <server> request list_files [<files...>]

断点继续

xbridge [-c <config_dir>] <server> resume <session> <msg_type> [ <params...> [ --with-files <files...> ]]

<msg_type>: reply/done/get_file

Configuration

configuration dir is by default located in $HOME/.xbridge/. You can specify the dir by -c <config_dir>

RSA keys

rsa key用来表明自己的身份. prikey.pem 私钥 pubkey.pem 公钥

密钥会在首次使用时自动生成

Permissions

// permissions.json
[
    {
        "client_hash": "xxxx",
        "allow_connect": true,
        "always_allow_actions": {
            "send_files": true,
            "get_files": false,
            "list_files": true,
        }
    }
]

Sessions

该目录用户存放所有未结束的sessions

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

xbridge-1.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

xbridge-1.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file xbridge-1.2.0.tar.gz.

File metadata

  • Download URL: xbridge-1.2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.10 Darwin/23.1.0

File hashes

Hashes for xbridge-1.2.0.tar.gz
Algorithm Hash digest
SHA256 9581963b8b0713307f85e725690f39e691c11eaea54e865dc3cbc8be53d55248
MD5 e73b4d0194031562e2cc7d3167e34b1a
BLAKE2b-256 4d1fdcdbbd447ac39d5f01f7ce7984e6619ffc97e8c6e94b606fc6f229c48ab4

See more details on using hashes here.

File details

Details for the file xbridge-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: xbridge-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.10 Darwin/23.1.0

File hashes

Hashes for xbridge-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edc90357479be3eb14176ff925d31c986cc00c7a45bc683287d28f269b27ba93
MD5 7b77ac91cf9ade3b835a1914621a080a
BLAKE2b-256 89ced9dda59d4fd30bd735fcc7c17feaa1d737e8d235956cb0074f87b4845c16

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