Skip to main content

greet-tool-demo

一个示例 Python 包,演示如何发布到 PyPI。

安装

pip install greet-tool-demo

使用

作为库使用

from greet_tool import greet, format_name

print(greet("World"))
# 输出: Hello, World!

print(format_name("  zhang san  "))
# 输出: Zhang San

作为命令行工具使用

greet-tool World
# 输出: Hello, World!

greet-tool
# 输出: Hello, Guest!

Metadata

Release files for greet-tool-demo 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for greet-tool-demo 0.1.0
File Size Uploaded
greet_tool_demo-0.1.0.tar.gz 21.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for greet-tool-demo 0.1.0
File Interpreter ABI Platform
greet_tool_demo-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.3 kB

Release files / greet_tool_demo-0.1.0.tar.gz

Download URL greet_tool_demo-0.1.0.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8f1bef1b99647a2e39b55c48a590fe37a4614b360ffcd79d3f31e69fe859e70b
BLAKE2b-256 checksum
How to use checksums
0cfa3f09d2e38c7289de8b87ae02461cd5d35708848e5d463079713795f3f9a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / greet_tool_demo-0.1.0-py3-none-any.whl

Download URL greet_tool_demo-0.1.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c00cc1b13090c791158fe82e3a45cd733f3e135c903ff88a892ce17435991c4c
BLAKE2b-256 checksum
How to use checksums
170d03c8c282bde87a680f21447af13ba7c10868185e73fe84544515a4ac50ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page