Skip to main content

商品识别 SDK 示例包

Project description

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,无需额外依赖。

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

product_recognition_sdk-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

product_recognition_sdk-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file product_recognition_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: product_recognition_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for product_recognition_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8ca32e5b723f86da3d4281488df9a2f8e87d377a5ed688c2c7f984098e93dc7f
MD5 af76ee4deeb5db7cdc49e4248cb9fc30
BLAKE2b-256 5c68b265b3baf16a36d089c6238d800783ae3dd2244bf206ebc78596443549ad

See more details on using hashes here.

File details

Details for the file product_recognition_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for product_recognition_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95032e1dec8579c77cea11d01fe2ee27fef9fcc6eaac4db6be536608217dab15
MD5 a70e288d51b4773afc1d80aae2cd0832
BLAKE2b-256 0f02bc02795f5a7493833166a45b4dd5bb2ad54bba940f5650387b92aaee8bdf

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