Skip to main content

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

Metadata

Release files for xbridge 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xbridge 1.2.0
File Size Uploaded Provenance Actions
xbridge-1.2.0.tar.gz 5.2 kB Without provenance Details for xbridge-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xbridge 1.2.0
File Interpreter ABI Platform Actions
xbridge-1.2.0-py3-none-any.whl Python 3 none any Details for xbridge-1.2.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / xbridge-1.2.0.tar.gz

Download URL xbridge-1.2.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9581963b8b0713307f85e725690f39e691c11eaea54e865dc3cbc8be53d55248
BLAKE2b-256 checksum
How to use checksums
4d1fdcdbbd447ac39d5f01f7ce7984e6619ffc97e8c6e94b606fc6f229c48ab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.10 Darwin/23.1.0

Release files / xbridge-1.2.0-py3-none-any.whl

Download URL xbridge-1.2.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edc90357479be3eb14176ff925d31c986cc00c7a45bc683287d28f269b27ba93
BLAKE2b-256 checksum
How to use checksums
89ced9dda59d4fd30bd735fcc7c17feaa1d737e8d235956cb0074f87b4845c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.10 Darwin/23.1.0

Security for xbridge 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page