Metadata-Version: 2.4
Name: fuxing-utils
Version: 0.1.0
Summary: 一个简易的加减乘除工具库
Author: fuxing
License: MIT
Keywords: math,arithmetic,calculator
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# fuxing-utils

一个简易的加减乘除工具库,用于学习 Python 打包与发布。

## 安装

从 PyPI 安装(发布后):

```bash
pip install fuxing-utils
```

本地开发安装:

```bash
pip install -e .[dev]
```

## 使用

```python
from fuxing_utils import add, subtract, multiply, divide

print(add(1, 2))        # 3
print(subtract(5, 2))   # 3
print(multiply(3, 4))   # 12
print(divide(6, 3))     # 2.0

divide(1, 0)            # ZeroDivisionError: 除数不能为 0
```

## 构建与发布

```bash
# 构建 sdist + wheel,产物在 dist/ 目录
python -m build

# 发布到 PyPI(需要先注册账号并配置 token)
python -m twine upload dist/*
```

## 运行测试

```bash
pytest
```

## 项目结构

```
fuxing-utils/
├── pyproject.toml      # 构建与元数据配置(PEP 621)
├── README.md
├── src/
│   └── fuxing_utils/   # 源码包
│       ├── __init__.py
│       └── calc.py
└── tests/
    └── test_calc.py
```
