Skip to main content

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/

# 类型检查
python -m mypy 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.4

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

Source distribution (sdist)

Source distribution for pykunlun 0.0.4
File Size Uploaded
pykunlun-0.0.4.tar.gz 126.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pykunlun 0.0.4
File Interpreter ABI Platform
pykunlun-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 284.4 kB

Release files / pykunlun-0.0.4.tar.gz

Download URL pykunlun-0.0.4.tar.gz
Size 126.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2ba7274a22c81cba5448b5ebebdc2da039f13a9b9d19f1287b4f96ce23767016
BLAKE2b-256 checksum
How to use checksums
6e8853fb8de10314f07aa8b0a8dae33a244a5664ac40f91c26facd90e1573f31
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.4-py3-none-any.whl

Download URL pykunlun-0.0.4-py3-none-any.whl
Size 157.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f296c5435b12752a1d00dc9fd52458ec3188d5d603b4e3e8f12bf2c680a6452
BLAKE2b-256 checksum
How to use checksums
637021590c9deef38ed274d6f72ebeceb799f9e7f2f7030d9c533faf9dbb8fb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release history Release notifications | RSS feed

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

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