Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CANConfigPython

Python CLI and API for CANHub, CANFB, CANBridge, CANRPT and CANCOM configuration. The package runs a bundled Qt console subprocess, which uses WIICAN. It does not require a GUI installation or a separately installed Qt runtime.

0.1.0a2 is a prerelease. It corrects the documentation entry points and rebuilds Console/WIICAN with Qt 5.15.2. Windows supports Python 3.8+ on x86/x64: win32 bundles 32-bit native files, win_amd64 bundles 64-bit native files. Linux targets x86_64 with glibc 2.38 or newer (the audited manylinux baseline). Its bundled Qt 5.15.2 includes upstream compatibility fixes for current GCC. ARM64, macOS and musl are not supported.

canconfig / Python Client
    -> CANConfigConsole.exe + WIICAN.dll           (Windows)
    -> CANConfigConsole + libWIICAN.so.1           (Linux)

安装与首次检查 / Install and check

在 Python 虚拟环境中执行以下命令。Linux 可使用 python3;无需另装 Qt 或 WIICAN。 Run these commands in a Python virtual environment. Use python3 on Linux if needed.

python -m pip install CANConfigPython==0.1.0a2
canconfig --version --json
canconfig doctor --json

doctor 成功时返回 ok=true、exit_code=0、data.device_opened=false。 它检查随包运行库,不连接设备。schema、validate 和固件 --dry-run 也不打开硬件。 配置命令 info 和配置 --dry-run 会连接设备,并可能改变设备运行模式。

Doctor verifies the bundled runtime without opening a device. Check ok, exit_code and data.device_opened. Configuration info and configuration --dry-run connect to hardware and may change its run mode; use them only for an authorized target.

Upgrade to the latest prerelease with python -m pip install --upgrade --pre CANConfigPython. Uninstall with python -m pip uninstall CANConfigPython.

中文使用说明与英文手册 / User guides

完整的中英文手册已包含在安装包内。PyPI 简介不会提供源码目录中的文件网页; 请先导出文档,再在本机打开文件。以下操作无需连接设备或输入设备密码。

The complete Chinese and English manuals are included in the installed package. Export them to a new directory and open the files locally; no device is required.

canconfig docs export --output ./canconfig-docs
内容 / Content 导出后的文件 / Exported file
中文操作手册 canconfig-docs/user-guide.zh-CN.md
English user guide canconfig-docs/user-guide.en.md
配套源码、构建说明、验证记录、许可证 / Source and supporting documents canconfig-docs/native-source.tar.gz
Linux 随包 Qt 的完整修改源码 / Full modified Qt source, Linux wheel canconfig-docs/qt5152-linux-source.tar.xz

使用支持 Markdown 的编辑器阅读 .md 文件;Windows 也可执行 notepad .\canconfig-docs\user-guide.zh-CN.md 阅读文本。 The manuals cover installation, device selection, password handling, backup/export, validation/restore, JSON changes, firmware updates, failures and exit codes.

导出目录必须不存在;如果提示 output_exists,请换一个新目录名,例如 ./canconfig-docs-a2。导出不会覆盖已有文档,卸载也不会删除已导出的文件。 Export requires a new directory and never overwrites existing files.

Agent Skill 与用例 / Agent Skill and examples

canconfig skill export --output ./canconfig-skill
内容 / Content 导出后的文件 / Exported file
Skill 入口 / Entry point canconfig-skill/SKILL.md
操作参考 / Operation reference canconfig-skill/references/operations.md
中文用例目录 canconfig-skill/assets/examples/index.zh-CN.md
English example catalog canconfig-skill/assets/examples/index.en.md
JSON Schema canconfig-skill/assets/changes.schema.json

将整个导出目录交给所用 Agent,或按该 Agent 的要求安装。保留 references 和 assets 子目录,才能使用 Skill 内部的文档和用例链接。安装 Python 包不会自动修改 Agent 设置。 Keep the complete exported directory together. Package installation does not change Agent settings. Examples contain placeholder device identifiers and must be adapted to the confirmed device and authorized operation before use.

Python API

from canconfigpython import Client, ConfigError

client = Client()
try:
    result = client.execute("info", port="COM3")  # Linux: confirmed /dev/serial/by-id/... path
except ConfigError as error:
    print(error.code, error.message)
else:
    print(result["exit_code"], result["effects"], result["verification"])

execute(command, password=..., new_password=..., **options) uses snake_case options such as expect_uid, dry_run, and timeout_ms; command names match the CLI. Provide passwords from a secret store or prompt, not source code. Backend failures return the full result; check ok and exit_code. Local validation/runtime errors raise ConfigError. The wrapper does not automatically retry or roll back operations. The Python runtime layer uses only the standard library.

构建、验证记录与许可证 / Build, validation and licenses

导出文档后,在一个新的工作目录解压 canconfig-docs/native-source.tar.gz。 其顶层文件夹为 canconfigpython-source,其中包含:

文件 / File 用途 / Purpose
DEVELOPING.md Windows/Linux 构建、验证与发布说明 / Build and release instructions
VALIDATION.md 实际测试范围和未完成条件 / Test evidence and limitations
THIRD_PARTY_NOTICES.md 第三方组件和源码位置 / Third-party notices and source locations
LICENSE、licenses/ 许可证文本 / License texts
native/、tools/、src/ 对应源码及构建工具 / Corresponding source and build tools

Extract the exported source archive to read these documents. The PyPI source distribution also includes them. Simulated tests and installed-package checks do not establish real-device configuration, firmware or power-cycle acceptance.

Python 包装层和项目自有新增代码采用 MIT。Console 包含 XinLi 的 GPL-3.0-or-later Ymodem 实现,因此随包 Console 按 GPL-3.0-or-later 分发;Qt 和编译器运行库保留各自许可证。 The Python wrapper is MIT; the bundled Console is GPL-3.0-or-later. Every wheel contains its corresponding project source. Preserve all applicable third-party notices. Runtime hashes check bundle consistency; they are not publisher signatures.

Metadata

Release files for CANConfigPython 0.1.0a2

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

Source distribution (sdist)

Source distribution for CANConfigPython 0.1.0a2
File Size Uploaded
canconfigpython-0.1.0a2.tar.gz 6.8 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for CANConfigPython 0.1.0a2
File Interpreter ABI Platform
canconfigpython-0.1.0a2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
canconfigpython-0.1.0a2-py3-none-win32.whl Python 3 none Windows x86-32 Details
canconfigpython-0.1.0a2-py3-none-manylinux_2_38_x86_64.manylinux_2_39_x86_64.whl Python 3 none Linux glibc 2.38+ x86-64, Linux glibc 2.39+ x86-64 Details

Total release size: 82.6 MB

Release files / canconfigpython-0.1.0a2.tar.gz

Download URL canconfigpython-0.1.0a2.tar.gz
Size 6.8 MB
Tags Source
SHA-256 checksum
How to use checksums
5b1dbb1408d6e5917373d85835eacaa1e84c174fb99232739b62052bc4a34b4f
BLAKE2b-256 checksum
How to use checksums
85f783e9e4a289c807075733506d08a0fa16d89d1e9d73333434db2ea71a95ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / canconfigpython-0.1.0a2-py3-none-win_amd64.whl

Download URL canconfigpython-0.1.0a2-py3-none-win_amd64.whl
Size 6.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
aa9e02c3e92663d76fc957bfbd6d9a6699ab3cc2fca7d40cf5eb20fff32d7864
BLAKE2b-256 checksum
How to use checksums
576c0114e76e1538b72f30940dd74f405dd32cdab870f871c982184d0c4a3f8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / canconfigpython-0.1.0a2-py3-none-win32.whl

Download URL canconfigpython-0.1.0a2-py3-none-win32.whl
Size 6.9 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
078d718915b03d12153699585581d6e7deadd13e030d1799e27fb2376b36b7eb
BLAKE2b-256 checksum
How to use checksums
36ca9c68ee1632ba226dd39fb85a139ff5ee97952c8f4413233bc728f20e321b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / canconfigpython-0.1.0a2-py3-none-manylinux_2_38_x86_64.manylinux_2_39_x86_64.whl

Download URL canconfigpython-0.1.0a2-py3-none-manylinux_2_38_x86_64.manylinux_2_39_x86_64.whl
Size 62.2 MB
Tags Linux glibc 2.38+ x86-64 Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
61a142bf4ecd28fa18ae3ae32760a57ab79bb081a037dc0554edafd9d55e8b4c
BLAKE2b-256 checksum
How to use checksums
4573a3fd4be8a261b8d4a738824509439d92738b5ec39ad8f98ba738df5dc9cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.0a2 This release

4 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