一个简单的加法运算SDK,用于测试PyPI发布
Project description
Calc SDK
一个简单的加法运算 Python SDK,用于测试 PyPI 发布流程。
安装
pip install calc-test-sdk
使用方法
简单加法
from calc_sdk import add
result = add(1, 2)
print(result) # 输出: 3
链式计算
from calc_sdk import Calculator
calc = Calculator()
result = calc.add(1).add(2).add(3).result
print(result) # 输出: 6
# 重置计算器
calc.reset()
result = calc.add(10).add(20).result
print(result) # 输出: 30
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calc_test_sdk-1.0.0.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calc_test_sdk-1.0.0.tar.gz.
File metadata
- Download URL: calc_test_sdk-1.0.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c7fbdc8ef05fbd3b7f113fa401e399436fc573626d154c36bb7dc6f4771c3e
|
|
| MD5 |
0a8b7709064fef711b566864dc21b022
|
|
| BLAKE2b-256 |
60ef8507fa0c37fab96934feaf8dc1e0ae33ea81d74a1ed1fc9838fcf1852958
|
File details
Details for the file calc_test_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: calc_test_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dd6dbeac61c364a8ace74fcf5add42ab7d822d0cb4ab8d8fcbaabd83418cec1
|
|
| MD5 |
e07fd5ee048ac6253da4f2206dba114e
|
|
| BLAKE2b-256 |
e7ab05fbcd1d264b5f262a439b5a7b479f79e15cac5e8fc004431f1f2d6c2a83
|