终端日期时间显示工具
Project description
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,支持公历和农历两种日期类型。
依赖
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
curdate-0.1.1.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file curdate-0.1.1.tar.gz.
File metadata
- Download URL: curdate-0.1.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f882f1e018c551e4db8ee5c25b8ab2aa880768ac23dbe3c6b550bbb071ea129
|
|
| MD5 |
fe8e84569dc3ccc47605d5efc08bef35
|
|
| BLAKE2b-256 |
79a7146839b76ad78bf4294bdcf6f2792986f1f3e42e60e84a9edc23cfae5609
|
File details
Details for the file curdate-0.1.1-py3-none-any.whl.
File metadata
- Download URL: curdate-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3bb315cb5267c0644ab2fe4e59b3161d64954a3ba8ce50a8878992895929ecf
|
|
| MD5 |
e01de33960bae3195ca8c79d1656322b
|
|
| BLAKE2b-256 |
ac203ef1fab1d924fb5d66fded4c50ee5ce73fc4083cac8a00775b199a1b1d1c
|