This project has been archived by its maintainers, and is no longer receiving any updates.
dfc-customer-sync
将巨懂车新增留资客户同步到大风车 CRM。
大风车认证使用 APP_KEY 动态换取 dfcToken。同步前会从
danube-tenant-web.souche.com/staffs/all.json 拉取当前门店员工,筛选
roleNames 含“销售员”的记录,并将其 id 用作客户“销售”字段的
recordId。巨懂车的当前跟进人按精确名称或唯一包含关系匹配销售员名称;
同名销售不会自动映射,需通过 dfc.follower_mapping 手动配置。
首次使用:
dfc-sync --setup
dfc-sync --check
dfc-sync
--setup 仅保存巨懂车浏览器登录态。运行同步前需设置 APP_KEY 环境变量。
中国大陆安装与可选诊断工具
生产同步只需要 Python Playwright,无需安装 playwright-cli:
pip install -U dfc-customer-sync -i https://pypi.tuna.tsinghua.edu.cn/simple
dfc-sync --install-cn
dfc-sync --setup
只有需要排查页面改版、定位器、请求或控制台问题的用户,才安装可选 CLI。该命令同时使用国内 npm 与 Playwright 浏览器镜像:
dfc-sync --install-cli-cn
安装 CLI 需要 Node.js 和 npm;缺少它们不会影响正常同步。
旧用户更新
pip install -U dfc-customer-sync -i https://pypi.tuna.tsinghua.edu.cn/simple
dfc-sync --install-cn
dfc-sync --install-skill
dfc-sync --check
--install-skill 只更新技能说明,不升级 Python 包或浏览器。只有旧 zip 版本迁移、Chromium 缓存损坏,或常规升级无法恢复时,才使用 dfc-sync --repair-cn。
Agent 技能安装
安装 PyPI 包后运行:
dfc-sync --install-skill
安装器会优先更新已安装的 dfc-customer-sync 技能;首次安装会写入检测到的
兼容技能目录。检测到用户自行修改的 SKILL.md 时不会覆盖,需显式使用
dfc-sync --install-skill --force,旧文件会自动备份。多个已安装目录时,使用
dfc-sync --install-skill --skill-dir /path/to/skills 指定目标。
Metadata
Release files for dfc-customer-sync 3.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dfc_customer_sync-3.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / dfc_customer_sync-3.7.0-py3-none-any.whl
| Download URL | dfc_customer_sync-3.7.0-py3-none-any.whl |
|---|---|
| Size | 51.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7067805b6a48a6244312ead29b48059f440e9787da83fe590bf0e9bdfa4cd8c1
|
|
BLAKE2b-256 checksum How to use checksums |
df41cf865220a39395b4814215640cea134812a20cf0fc337ad3176e36af07cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for dfc-customer-sync 3.7.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.