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
安装必要的工具: 安装 setuptools、wheel 和 twine,它们是用来打包和上传库的工具。
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
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
hello3-0.1.0.tar.gz
(2.0 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 hello3-0.1.0.tar.gz.
File metadata
- Download URL: hello3-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe296b6ff1aacf38c75d9c8756333b17cae703944711256d6777953350b0474c
|
|
| MD5 |
98e9ce2ac7d2fec99a0c46f79ea169c6
|
|
| BLAKE2b-256 |
957cbd673f4cd6b0bb70b244157380a0bcb659302611f93c04f7b4ad495cadac
|
File details
Details for the file hello3-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hello3-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4086e45a71b8da672a2c54d02969b5cf67518a2ed1d430e102f489a01f203dad
|
|
| MD5 |
27b3630883a2a0c406d72770af009122
|
|
| BLAKE2b-256 |
a2594a35e4751e8f8c9b47084750fea7a1d3bd28a1ee393347d39a4e2fc225e0
|