Skip to main content

A simple hello world library

Project description

hello3 库

一个简单的 Python 库,打印 "Hello, World!"。

安装

使用 pip 安装库

pip install hello3

使用

from hello3 import say_hello

say_hello("World")  # Output: Hello, World!

构建和发布到 PyPI

安装必要的工具: 安装 setuptoolswheeltwine,它们是用来打包和上传库的工具。

pip install setuptools twine wheel

2.构建包

在项目根目录下运行以下命令来生成分发包

python3.10 setup.py sdist bdist_wheel

3.上传到 PyPI

确保你已经拥有 PyPI 的发布权限。然后,使用以下命令将包上传到 PyPI:

python3.10 -m twine upload dist/*

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

hello3-0.0.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

hello3-0.0.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file hello3-0.0.1.tar.gz.

File metadata

  • Download URL: hello3-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for hello3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7e2bb8d4bf30fc587e77b54360c92961cb343add04b3dc158fe068404a620c65
MD5 998ecf0d1e193ba6d10829db4bd0111e
BLAKE2b-256 e8af12955b7fd04d867c1a59ea506fa069d869318a95bce1a286e9f07ce4951a

See more details on using hashes here.

File details

Details for the file hello3-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hello3-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for hello3-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3280d6fa85282abf36680b2fb471924864818e304ba5c89d6c8e175ce33f642
MD5 cd056a41f32c1ca3668c80ae6afdad71
BLAKE2b-256 e73573fb18599ee2bb84a147b957f32e4ba7c1a93a0c871701ac4286c78de700

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