Skip to main content

duyi-utils

一个用于学习 Python 公共库构建和发布的示例工程。

功能

  • 日期工具 — 日期格式化、日期差值计算(依赖 python-dateutil)
  • Markdown 工具 — Markdown 转 HTML、去除 Markdown 标记(依赖 Markdown)
  • 问候工具 — 简单的个性化问候

安装

pip install duyi-utils

使用

from duyi_utils import format_date, days_until, to_html, strip_markdown
from datetime import date

# 日期工具
format_date(date(2026, 6, 1))    # => "2026年06月01日"
days_until("2026-10-01")          # => 剩余天数

# Markdown 工具
to_html("**Hello**")             # => "<p><strong>Hello</strong></p>"
strip_markdown("**Hello**")      # => "<strong>Hello</strong>"

# 问候工具
from duyi_utils.greeter import greet
greet("小明")                     # => "你好, 小明!"

Metadata

Release files for lzq-utils 0.1.3

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

Source distribution (sdist)

Source distribution for lzq-utils 0.1.3
File Size Uploaded Provenance Actions
lzq_utils-0.1.3.tar.gz 2.2 kB Without provenance Details for lzq_utils-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lzq-utils 0.1.3
File Interpreter ABI Platform Actions
lzq_utils-0.1.3-py3-none-any.whl Python 3 none any Details for lzq_utils-0.1.3-py3-none-any.whl

Total release size: 3.6 kB

Release files / lzq_utils-0.1.3.tar.gz

Download URL lzq_utils-0.1.3.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7419fa10aaec960450022bc16a4bb597d228f8381ebb5c25191d1a3b242db338
BLAKE2b-256 checksum
How to use checksums
821eaa3863bb5c913fada9f080e0dabd8d3caa5317e5e1e22294004e5321c323
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.1

Release files / lzq_utils-0.1.3-py3-none-any.whl

Download URL lzq_utils-0.1.3-py3-none-any.whl
Size 1.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90aee1504073309decc76b2c08dbf7e2205401ff28a81595c32571bee7985157
BLAKE2b-256 checksum
How to use checksums
aea695735b2659387def8ee92588e7cfb071482b2212bf0a648766d1f3a4fa5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.1

Security for lzq-utils 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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