Metadata-Version: 2.4
Name: product_recognition_sdk
Version: 0.1.1
Summary: 商品识别 SDK 示例包
Author: Demo User
License: MIT
Keywords: product,recognition,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# product_recognition_sdk

商品识别 SDK（v0.1.0），可用于练习发布到 [TestPyPI](https://test.pypi.org/)。仓库内另含一个请求 example.com 的独立脚本。

## 包用法

安装（本地开发模式）：

```bash
pip install -e .
```

命令行：

```bash
product_recognition_sdk
product_recognition_sdk PyPI
```

Python API：

```python
from product_recognition_sdk import greet

print(greet("world"))  # Hello, world!
```

## 测试

```bash
PYTHONPATH=src python -m unittest discover -s tests
```

## 构建与发布到 TestPyPI

```bash
pip install build twine
python -m build
```

上传到 TestPyPI（需先在 https://test.pypi.org/ 注册并创建 API Token）：

```bash
twine upload --repository testpypi dist/*
```

从 TestPyPI 安装验证：

```bash
pip install -i https://test.pypi.org/simple/ product_recognition_sdk
```

> 包名若已被占用，请在 `pyproject.toml` 中修改 `name` 后重新构建。

## 独立脚本：请求 example.com

```bash
python fetch_example.py
```

使用标准库 `urllib`，无需额外依赖。
