Skip to main content

curdate

终端日期时间显示工具 - 显示公历、农历、法定节假日和日历,支持生日管理。

功能特性

  • 📅 显示当前日期和时间
  • 🌙 显示农历日期
  • 🎊 显示法定节假日和下一假期倒计时
  • 🎂 显示近期生日(30天内,超出则显示最近的生日)
  • 📆 显示当月日历
  • 🎁 生日管理(添加、删除、修改、查看)

安装

pip install -e .

使用

主命令

curdate

生日管理

curdate add          # 添加生日(交互式输入)
curdate list         # 列出所有已存储的生日
curdate delete <姓名>  # 删除指定人的生日
curdate edit <姓名>    # 修改指定人的生日

演示效果

🗓️ 2026/05/14 (周四) | 🕐 01:23:52 | 🌙 农历三月廿八

🎊 下一假期: 端午节 (06月19日) - 36天后

🎂 近期生日:
   🧑 张三 - 农历3月29日 - 还有 1天
   👨 李四 - 公历5月20日 - 还有 6天

📅 2026年5月
  日 一 二 三 四 五 六
                  1  2
   3  4  5  6  7  8  9
 10 11 12 13 14 15 16
 17 18 19 20 21 22 23
 24 25 26 27 28 29 30
 31

添加生日示例

$ curdate add
请输入姓名: 张三
选择日期类型: (1) 公历 (2) 农历: 2
输入月份 (1-12): 8
输入日期 (1-30): 15
✓ 已添加 张三 的生日(农历 8月15日)

数据存储

生日数据存储在 ~/.curdate_birthdays.json,支持公历和农历两种日期类型。

依赖

Metadata

Release files for curdate 0.1.1

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

Source distribution (sdist)

Source distribution for curdate 0.1.1
File Size Uploaded
curdate-0.1.1.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for curdate 0.1.1
File Interpreter ABI Platform
curdate-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / curdate-0.1.1.tar.gz

Download URL curdate-0.1.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7f882f1e018c551e4db8ee5c25b8ab2aa880768ac23dbe3c6b550bbb071ea129
BLAKE2b-256 checksum
How to use checksums
79a7146839b76ad78bf4294bdcf6f2792986f1f3e42e60e84a9edc23cfae5609
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / curdate-0.1.1-py3-none-any.whl

Download URL curdate-0.1.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3bb315cb5267c0644ab2fe4e59b3161d64954a3ba8ce50a8878992895929ecf
BLAKE2b-256 checksum
How to use checksums
ac203ef1fab1d924fb5d66fded4c50ee5ce73fc4083cac8a00775b199a1b1d1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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