Kunlun (昆仑)
与具体业务无关的 Python 底层能力库。承载跨平台、跨业务的通用抽象与基础设施,不依赖上层应用包。
定位
- 底层抽象 — 沉淀跨平台、跨业务的通用能力,保持稳定、零业务耦合
- 基础设施 — 为上层应用包提供可复用的底层支撑,上层按需在此之上扩展具体实现
- 最小依赖 — 不依赖任何上层应用包,可被任意项目自由引用
开始使用
安装
# 安装 pykunlun(使用清华镜像源加速)
pip install pykunlun -i https://pypi.tuna.tsinghua.edu.cn/simple/
开发指南
本地安装
# 开发模式(修改源码立刻生效,无需重新安装)
python -m pip install -e . -i https://pypi.tuna.tsinghua.edu.cn/simple/
# 基础安装
python -m pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple/
开发依赖
# 安装开发依赖(代码检查、测试等)
python -m pip install ".[dev]"
代码质量
# 代码风格检查
python -m ruff check src/
# 类型检查(mypy strict,配置在 pyproject.toml [tool.mypy])
python -m mypy src/
# 类型检查(Pyright strict,配置在 pyrightconfig.json;
# 全局安装:npm install -g pyright,国内镜像加 --registry=https://registry.npmmirror.com)
pyright src/
# 运行测试
python -m pytest tests/
打包上传
# 清理 __pycache__ 缓存
python -m baibao py_clean .
# 构建源码包和 wheel 包
python -m build
# 构建结果
ls dist/
# 检查元数据
python -m twine check dist/*
# 上传到正式 PyPI
python -m twine upload dist/*
许可证
GPL-3.0-or-later
Metadata
Release files for pykunlun 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pykunlun-0.0.6.tar.gz | 161.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pykunlun-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 360.1 kB
Release files / pykunlun-0.0.6.tar.gz
| Download URL | pykunlun-0.0.6.tar.gz |
|---|---|
| Size | 161.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91618b33b6467efe0cb64dc20fe594d64ec128967919b3d8deeee442841aa540
|
|
BLAKE2b-256 checksum How to use checksums |
b70ab7676e4e8ecf4b65b21dc64f361d1a2f0c2553a4d4cf0c612e2c0d0dde0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Release files / pykunlun-0.0.6-py3-none-any.whl
| Download URL | pykunlun-0.0.6-py3-none-any.whl |
|---|---|
| Size | 198.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
101eb4c4dd4c101a5f7872f44c98c484468fa7eaa38ec9232a1c0105ed23bfeb
|
|
BLAKE2b-256 checksum How to use checksums |
6a3a34eb5c4e83980c71b6af4434ad6171dea2c6c7a8287255a9b0a9d83c1a43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|