Skip to main content

A simple greeting package for demonstration

Project description

GreetPy

一个简单的Python打招呼包,用于演示如何创建和发布Python包。

安装

pip install greetpy_demingcn

使用方法

基本使用

from greetpy_demingcn import greet, greet_multiple, Greeter

# 使用函数
print(greet("Alice"))  # Hello, Alice!

# 向多个人打招呼
messages = greet_multiple(["Alice", "Bob", "Charlie"])
for msg in messages:
    print(msg)

# 使用类
greeter = Greeter("World")
print(greeter.say_hello())  # Hello, World!
print(greeter.say_hi())     # Hi, World!

命令行工具

安装后可以使用命令行工具:

greet-deming Alice
# 输出: Hello, Alice!

功能

  • greet(name): 向一个人打招呼
  • greet_multiple(names, greeting): 向多个人打招呼
  • Greeter 类: 更灵活的打招呼器

开发

  1. 克隆仓库
  2. 安装开发依赖:pip install -e ".[dev]"
  3. 运行测试:pytest

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

greetpy_demingcn-0.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

greetpy_demingcn-0.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file greetpy_demingcn-0.0.0.tar.gz.

File metadata

  • Download URL: greetpy_demingcn-0.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for greetpy_demingcn-0.0.0.tar.gz
Algorithm Hash digest
SHA256 5ad4c28f87f31e75f5be0351a2ae508cac4f89b2c5d7079253c1cf9729aad3c0
MD5 a0cd4d174e189b176c5001b54a49ba92
BLAKE2b-256 c93bdb7bc5f85e5b20d343248e261dd9bec6cd0aa252d0fdaa1a02c12f54648e

See more details on using hashes here.

File details

Details for the file greetpy_demingcn-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for greetpy_demingcn-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7409ce431d73a3b5c366a08a768dbef84b54c4a8a868037569deb77815e18e15
MD5 b5986f4b0f8235689e4ff5e4c655f7e9
BLAKE2b-256 e5bfa48b3e681c8763e78cc534c6387a7f551e6d05237ed6cff16ad61ad0dd50

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