Skip to main content

bootcode CLI

bootcode 的本地命令行提交工具。部分课程的关卡需要用它拉取题目、本地跑测试、提交结果。

安装

需要 Python 3.11+。

pip install bootcode-cli

装完后确认能跑:

bootcode --version

登录

bootcode login

会打开浏览器,登录并确认授权后命令行会自动完成登录,凭证保存在本机 ~/.config/bootcode/config.toml。之后可以用 bootcode status 随时查看当前登录的账号。

使用流程

每道题拉取到当前目录,可以在同一个目录里连续拉取多道题:

bootcode pull <course-slug>/<stage-slug>   # 写入起始代码 + 测试文件到当前目录

bootcode run                                # 本地跑公开测试,纯本地断言,不联网
bootcode submit                             # 本地跑评分函数,收集结果后一次性提交,返回逐条 correct/incorrect

bootcode run 只是帮你自查实现是否正确,不联网、不计分;只有 bootcode submit 才会把结果发给服务器判分。判定失败可以改完代码后随时重新 bootcode submit,不扣分。

常用命令

命令 作用
bootcode login 登录
bootcode status 查看当前登录账号
bootcode logout 清除本机保存的登录凭证
bootcode pull <course>/<stage> 拉取一道题到当前目录
bootcode run 本地跑该题的公开测试(不联网)
bootcode submit 提交评分(联网,一次性提交)
bootcode submit --debug 提交时额外把请求/响应写入本地调试文件
bootcode configure <key> <value> 修改本地配置,如切到自建/本地部署的 api_url

Metadata

Release files for bootcode-cli 0.1.1

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

Source distribution (sdist)

Source distribution for bootcode-cli 0.1.1
File Size Uploaded
bootcode_cli-0.1.1.tar.gz 22.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bootcode-cli 0.1.1
File Interpreter ABI Platform
bootcode_cli-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.2 kB

Release files / bootcode_cli-0.1.1.tar.gz

Download URL bootcode_cli-0.1.1.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1f1872d73bc033552b45d4bb038d9211cf8747815a9d395bfc774a595d2d8e4b
BLAKE2b-256 checksum
How to use checksums
a32f3260d985eef608832407aa9f8eab02b58ed95054f09582bf85d362927efb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 17, 2026.

Transparency log

Release files / bootcode_cli-0.1.1-py3-none-any.whl

Download URL bootcode_cli-0.1.1-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecd13db07a37b95ff550d4887de1c5913d40b092733fc8cd4da12ab10eef37ab
BLAKE2b-256 checksum
How to use checksums
f4392c83457ddfe87a83d11f35fd2e1a4f9e0408174357a2cd46ada736c04997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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