product_recognition_sdk
商品识别 SDK(v0.1.0),可用于练习发布到 TestPyPI。仓库内另含一个请求 example.com 的独立脚本。
包用法
安装(本地开发模式):
pip install -e .
命令行:
product_recognition_sdk
product_recognition_sdk PyPI
Python API:
from product_recognition_sdk import greet
print(greet("world")) # Hello, world!
测试
PYTHONPATH=src python -m unittest discover -s tests
构建与发布到 TestPyPI
pip install build twine
python -m build
上传到 TestPyPI(需先在 https://test.pypi.org/ 注册并创建 API Token):
twine upload --repository testpypi dist/*
从 TestPyPI 安装验证:
pip install -i https://test.pypi.org/simple/ product_recognition_sdk
包名若已被占用,请在
pyproject.toml中修改name后重新构建。
独立脚本:请求 example.com
python fetch_example.py
使用标准库 urllib,无需额外依赖。
Metadata
Release files for product-recognition-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| product_recognition_sdk-0.1.1.tar.gz | 2.6 kB | Without provenance | Details for product_recognition_sdk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| product_recognition_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for product_recognition_sdk-0.1.1-py3-none-any.whl |
Total release size: 5.9 kB
Release files / product_recognition_sdk-0.1.1.tar.gz
| Download URL | product_recognition_sdk-0.1.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ca32e5b723f86da3d4281488df9a2f8e87d377a5ed688c2c7f984098e93dc7f
|
|
BLAKE2b-256 checksum How to use checksums |
5c68b265b3baf16a36d089c6238d800783ae3dd2244bf206ebc78596443549ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / product_recognition_sdk-0.1.1-py3-none-any.whl
| Download URL | product_recognition_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95032e1dec8579c77cea11d01fe2ee27fef9fcc6eaac4db6be536608217dab15
|
|
BLAKE2b-256 checksum How to use checksums |
0f02bc02795f5a7493833166a45b4dd5bb2ad54bba940f5650387b92aaee8bdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for product-recognition-sdk 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.