Skip to main content

洋蔥工具包 🧅 收錄洋蔥的名言與趣味功能!

Project description

🧅 洋蔥 (Onion)

一個有趣又實用的 Python 套件,收錄洋蔥的各種名言與趣味功能!

安裝

pip install oniondctw

功能介紹

1. 🧅 hello(name) - 洋蔥問候

讓洋蔥向指定的人打招呼!

from onion import hello

print(hello("世界"))  # 🧅 洋蔥向 世界 問好!
print(hello("小明"))  # 🧅 洋蔥向 小明 問好!

2. 🧅💧 onionify(text) - 洋蔥風格裝飾

用洋蔥的專屬風格包裝你的文字!

from onion import onionify

print(onionify("哈囉"))        # 🧅💧 哈囉 💧🧅
print(onionify("今天天氣真好"))  # 🧅💧 今天天氣真好 💧🧅

3. 🧅 onion_quote() - 洋蔥語錄

隨機顯示一句洋蔥本人說過的話!收錄洋蔥的經典語錄,每次呼叫都有不同的驚喜。

from onion import onion_quote

onion_quote()  # 隨機顯示一句洋蔥語錄
# 範例輸出:
# 因為只有你是男娘
# 洋蔥女裝
# 太棒了不要跟他們同流合污
# ... 等等

4. 🧅 onion_wall(count) - 洋蔥名言牆

一次顯示多條洋蔥語錄,用精美的格式排版!讓你被洋蔥的智慧包圍。

from onion import onion_wall

# 顯示 5 條語錄(預設值)
onion_wall()

# 自訂顯示數量
onion_wall(3)  # 顯示 3 條語錄
onion_wall(10) # 顯示全部 10 條語錄

# 範例輸出:
# ==================================================
#                   🧅 洋蔥名言牆 🧅
# ==================================================
# 
# 📌 名言 1:
#    洋蔥女裝
# 
# 📌 名言 2:
#    太棒了不要跟他們同流合污
# ...
# ==================================================
#              ✨ 共展示了 5 條洋蔥的智慧結晶 ✨
# ==================================================

5. 📦 version - 版本資訊

查看目前套件的版本資訊。

from onion import version, show_info
from onion.utils import show_info

print(version)  # 1.0.0
show_info()     # 顯示完整資訊

完整範例

from onion import hello, onionify, onion_quote, onion_wall

# 問候
print(hello("Python"))

# 裝飾文字
message = onionify("洋蔥套件真好用!")
print(message)

# 獲得洋蔥的智慧
onion_quote()

# 展示洋蔥名言牆
onion_wall(3)

系統需求

  • Python >= 3.9
  • requests

作者

作者:YiChen、HCL_2025

授權

本專案採用開源授權。


🧅 把洋蔥帶進你的程式碼裡!

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

oniondctw-1.5.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

oniondctw-1.5.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file oniondctw-1.5.0.tar.gz.

File metadata

  • Download URL: oniondctw-1.5.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for oniondctw-1.5.0.tar.gz
Algorithm Hash digest
SHA256 dd672c7ec52e25f268bb1f697e964de4c41e1a56d098621226a862116b4d0195
MD5 ff2850139d78cdbfb48db8f73f7b12e8
BLAKE2b-256 4324e02dc86e02d681ffde3d1bdbfa26131d9151e5a8094dd0ec67489acba3e2

See more details on using hashes here.

File details

Details for the file oniondctw-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: oniondctw-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for oniondctw-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ba2f5615f91160a7ec5ec0b3b8b51e97d83b3a2b9fd18ecffbaa8d0d3f52708
MD5 1ac1b094565fe98f57b833b53c34aa66
BLAKE2b-256 0ac4d27decf1484c048ce651233293a02fdd4473cd5049aa3e6691f02ec286fa

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