Skip to main content

极速 python 工具集。

Project description

fcmd

极速 python 工具集。

PyPI CI Python License Coverage

特性

  • 构建工具链:hatchling + uv + ruff + pyrefly + pytest + coverage
  • Python 版本:3.8 ~ 3.14
  • 代码质量:pre-commit 钩子 + ruff lint/format,覆盖率阈值 95%
  • CI/CD:GitHub Actions(lint + typecheck + 多版本测试 + 自动发布到 PyPI)
  • 文档:Sphinx + ReadTheDocs(中文 zh_CN)
  • 多版本测试:tox + tox-uv(py38, py39, py310, py311, py312, py313, py314)
  • CLI 入口:argparse + [project.scripts]
  • 项目结构:src layout + py.typed 类型标记

安装

pip install fcmd

或使用 uv

uv add fcmd

快速上手

import fcmd

print(fcmd.__version__)

开发

# 安装开发依赖
uv sync --extra dev

# 运行测试(含覆盖率,阈值 95%)
uv run pytest -m "not slow" --cov=fcmd --cov-fail-under=95

# 类型检查
uv run pyrefly check .

# 代码风格
uv run ruff check src tests
uv run ruff format --check src tests

Make 快捷命令

项目提供 Makefile 封装常用操作,运行 make help 查看全部命令:

make sync     # 安装开发依赖
make check    # 全套门禁 (lint + typecheck + cov)
make build    # 构建分发包
make clean    # 清理构建产物
make bump PART=patch  # 版本号 bump

文档

文档由 Sphinx 构建,托管在 ReadTheDocs:

# 本地构建文档
make doc

多版本测试

使用 tox 在多个 Python 版本(py38, py39, py310, py311, py312, py313, py314)下运行测试:

make tox

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fcmd-0.1.0.tar.gz (99.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fcmd-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file fcmd-0.1.0.tar.gz.

File metadata

  • Download URL: fcmd-0.1.0.tar.gz
  • Upload date:
  • Size: 99.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for fcmd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 937d9fc6c81cdee2833439d57e654925aacb8d8a39a11a97cccbc38fb2bdeb77
MD5 6802676619ec4c38a3125c121cad10c2
BLAKE2b-256 0804427eb66871ea8392cad9a841020dd48d44f47c3bee008f5b2f00a1ee155c

See more details on using hashes here.

File details

Details for the file fcmd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fcmd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for fcmd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60366c77523eb0c4c4650af26c3d18c468beab52523a3173f84c16d508dd2580
MD5 488beaf7b419b8717347121688d8c44c
BLAKE2b-256 0dda463b974c8dbe3a3edc9b6368cb103757aa0e43740670d75b85db4b0a4910

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page