Skip to main content

一个简单的 Python 包示例,用于演示如何发布到 PyPI

Project description

Example Package

一个简单的 Python 包示例,用于演示如何发布到 PyPI。

安装

pip install example-package-demo

使用方法

from example_package import hello, add

# 使用 hello 函数
print(hello("World"))
# 输出: Hello, World!

# 使用 add 函数
result = add(1, 2)
print(result)
# 输出: 3

运行示例

python -m example_package.main

运行测试

pytest tests/

许可证

MIT License

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

example_package_demo-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

example_package_demo-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file example_package_demo-0.1.0.tar.gz.

File metadata

  • Download URL: example_package_demo-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for example_package_demo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5136291b4c1ced0b94ce137afcfdcd83dc6f6968fa1d0e85f433152e30347390
MD5 6aa7f59678522f68009c45c9f13b8553
BLAKE2b-256 b44bb76c8c53e6e6b99b973d89017896773aa3ca539ae670e89399b6e30106b2

See more details on using hashes here.

File details

Details for the file example_package_demo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for example_package_demo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8de4c069579bf8490528d7b153a61131f7b508b133d4492fd9bdc4d5ccff8f08
MD5 a3ab36a8d57d2a2b69774739b6841b7e
BLAKE2b-256 bf95e5766204b4b92336d43cca92485fa8a82996fe87fa1563ed9f80ce6dde6a

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