Skip to main content

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

Project description

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!

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

greet_tool_demo-0.1.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

greet_tool_demo-0.1.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for greet_tool_demo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8f1bef1b99647a2e39b55c48a590fe37a4614b360ffcd79d3f31e69fe859e70b
MD5 5267c7e41cd9e885d8ce447ed0abac56
BLAKE2b-256 0cfa3f09d2e38c7289de8b87ae02461cd5d35708848e5d463079713795f3f9a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for greet_tool_demo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c00cc1b13090c791158fe82e3a45cd733f3e135c903ff88a892ce17435991c4c
MD5 623093e0159ab4d6a913b1cadaf8bf3a
BLAKE2b-256 170d03c8c282bde87a680f21447af13ba7c10868185e73fe84544515a4ac50ea

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