我的第一个 Python 包
Project description
pypi-test-first
This is a simple Python package that provides basic mathematical operations.
Installation
pip install pypi-test-first
Usage
import pypi_test_first
result = pypi_test_first.add(2, 3)
print(result) # Output: 5
result = pypi_test_first.subtract(5, 3)
print(result) # Output: 2
result = pypi_test_first.multiply(2, 3)
print(result) # Output: 6
result = pypi_test_first.divide(6, 3)
print(result) # Output: 2.0
Available Functions
add(a, b): Returns the sum ofaandb.subtract(a, b): Returns the difference betweenaandb.multiply(a, b): Returns the product ofaandb.divide(a, b): Returns the result of dividingabyb. Raises aValueErrorifbis zero.
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
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 pypi_test_first-0.1.2.tar.gz.
File metadata
- Download URL: pypi_test_first-0.1.2.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
470355024b100fb581b7fa80d37a93409466f8eb1deb779ad651e5dfcced97b9
|
|
| MD5 |
b4fa5aef5d398dd8e0c232f7f9e2ce57
|
|
| BLAKE2b-256 |
b7d71a145dee86045e8622b8379cc43c3d1d0cf7690251cc6191bd6774744a00
|
Provenance
The following attestation bundles were made for pypi_test_first-0.1.2.tar.gz:
Publisher:
publish.yml on zs856/pypi-test-first
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypi_test_first-0.1.2.tar.gz -
Subject digest:
470355024b100fb581b7fa80d37a93409466f8eb1deb779ad651e5dfcced97b9 - Sigstore transparency entry: 467838332
- Sigstore integration time:
-
Permalink:
zs856/pypi-test-first@6127ea65b48500b1fcc08a350db4a5e273a58f5a -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/zs856
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6127ea65b48500b1fcc08a350db4a5e273a58f5a -
Trigger Event:
push
-
Statement type:
File details
Details for the file pypi_test_first-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pypi_test_first-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ec66c77e2c4ee7674078475f0b12811d463a9a18009c477f0784d0fdcd8b76b
|
|
| MD5 |
8e61f3a2d2e06974a064bda04af603c6
|
|
| BLAKE2b-256 |
2d61aed3d27f8349fe8c0c469f314033ad52c02120b0e990af1238157199f864
|
Provenance
The following attestation bundles were made for pypi_test_first-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on zs856/pypi-test-first
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypi_test_first-0.1.2-py3-none-any.whl -
Subject digest:
6ec66c77e2c4ee7674078475f0b12811d463a9a18009c477f0784d0fdcd8b76b - Sigstore transparency entry: 467838345
- Sigstore integration time:
-
Permalink:
zs856/pypi-test-first@6127ea65b48500b1fcc08a350db4a5e273a58f5a -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/zs856
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6127ea65b48500b1fcc08a350db4a5e273a58f5a -
Trigger Event:
push
-
Statement type: