Skip to main content

BYR Docs CLI

安装

使用 pip 安装:

pip3 install byrdocs-cli

使用 pipx 安装(当 pip 无法使用时):

根据包管理器选择对应的命令安装 pipx:

pip install pipx
sudo apt install pipx
sudo dnf install pipx
sudo pacman -S pipx

再使用 pipx 进行安装:

pipx install byrdocs-cli   

使用 homebrew 安装(MacOS 或 Linux):

brew tap byrdocs/homebrew-byrdocs-cli
brew install byrdocs-cli

更新

使用 pip:

pip install --upgrade byrdocs-cli

使用 pipx:

pipx upgrade byrdocs-cli

使用 homebrew:

brew upgrade byrdocs-cli

使用

直接在命令行中输入命令 byrdocs,打开交互式页面,或填写命令参数调用:

用法: byrdocs [-h] [--token TOKEN] [command] [file]

命令:
  upload <文件路径>    上传文件 [默认命令]
  login               登录到 BYR Docs
  logout              退出登录
  init                交互式生成文件元信息文件
  validate            (待实现) 验证元信息文件的合法性

参数:
  command        要执行的命令
  file           要上传的文件路径

选项:
  -h, --help     输出该帮助信息并退出
  --token TOKEN  指定登录时使用的 token

示例:
  $ byrdocs login
  $ byrdocs /home/exam_paper.pdf
  $ byrdocs logout
  $ byrdocs init

开发

构建:

python3 -m build

发布到 PyPI:

python3 -m twine upload --repository pypi dist/* --verbose

测试:

python test.py [arguments]

Metadata

Release files for byrdocs-cli 0.5.8

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

Source distribution (sdist)

Source distribution for byrdocs-cli 0.5.8
File Size Uploaded
byrdocs_cli-0.5.8.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for byrdocs-cli 0.5.8
File Interpreter ABI Platform
byrdocs_cli-0.5.8-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / byrdocs_cli-0.5.8.tar.gz

Download URL byrdocs_cli-0.5.8.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
02bc0a82a6b9995a2e51f70ccdebfdbdcfa5826261164af3a5860be3e912d4be
BLAKE2b-256 checksum
How to use checksums
b427ba6e467d171c516f695c0d38ce83ffb8aaa181b03eec2358665ea7d6b2c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 21, 2025.

Transparency log

Release files / byrdocs_cli-0.5.8-py3-none-any.whl

Download URL byrdocs_cli-0.5.8-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bb8861706d4d8a2d16e5063e9525e609b6efe9e98f7193b2390545fdb4eb70e
BLAKE2b-256 checksum
How to use checksums
a79da23c87a7be809d4b6e639735ec00c4bb7b54c7efb6b28cfe8c1c89712187
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.8 This release

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

2 release files

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