Skip to main content

Beautiful terminal calendar with seasonal colors

Project description

PPCalendar - Pure Python Calendar

Month view and events for the day

A modern replacement for your system's cal command with Python-powered features.

Installation

# Recommended (requires uv 0.1.0+):
uv tool install ppcalendar

# Alternative:
pip install ppcalendar

Colorful 3-months calendar

Usage

# Show current month, also will work as just `cal`
ppcal

# Show 3-month view (previous/current/next)
ppcal 3

# Show specific year
ppcal 2025

# Show specific month (June 2024 example)
ppcal 6 2026

# Add events for a day (also supports yearly and monthly events)
ppcal add

# Will open an interactive menu for adding an event.
# XXXX-XX-XX - will add an event.
#      XX-XX - good for birthdays, once a year event
#         XX - an every month event 

# Delete an event from your list
ppcal del

Usage via cal command year view

Key Features

Seasonal Colors
Months change background by season:

  • 🌸 Spring: Green
  • ☀️ Summer: Red
  • 🍂 Autumn: Yellow
  • ❄️ Winter: Blue

📅 Multiple Views

  • Single month (default)
  • 3-month context view
  • Full year overview
  • Specific month/year

🔄 Drop-in Replacement
Add to your shell config:

alias cal='ppcal'  # Add to ~/.bashrc or ~/.zshrc

Why PPCalendar?

It is simply just better!

  • colors for year, months, weekdays and Sundays
  • add events for today
  • suppots emoji
  • minimalist
  • fast

For Developers

from ppcalendar import cal

# All these work like the CLI:
cal()           # Current month
cal(3)          # 3-month view
cal(2025)       # Year view
cal(6, 2024)    # June 2024

Contributing

We welcome contributions! Here's how to help:

  1. Report bugs or suggest features in Issues
  2. Submit Pull Requests for:
    • Holiday markers 🎄
    • Week numbers 🔢
    • Moon phases 🌕
  3. Improve test coverage
# Development setup:
git clone https://github.com/yourusername/PPCalendar.git
cd PPCalendar
pip install -e '.[dev]'

FAQ

Q: Why not call it just cal?
A: Avoids conflicts with system commands. Use alias cal='ppcal' if desired.

Q: How to uninstall?

uv tool uninstall ppcalendar  # or pip uninstall ppcalendar

Q: Windows support?
✅ Yes! Works in all terminals that support ANSI colors.


"The Unix philosophy meets Python beauty"

– For terminal lovers who appreciate design

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

ppcalendar-0.1.9.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

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

ppcalendar-0.1.9-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file ppcalendar-0.1.9.tar.gz.

File metadata

  • Download URL: ppcalendar-0.1.9.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ppcalendar-0.1.9.tar.gz
Algorithm Hash digest
SHA256 ce69afbe93b451653a8fe857fea40d45be91e6e7e649c94198ace0f5f6073439
MD5 98a329f77cd53ada0f4267af06c28c38
BLAKE2b-256 2d7669e8cb28ca236765f9946dea06fb7e376d30b560ca58bf413dd66223717c

See more details on using hashes here.

File details

Details for the file ppcalendar-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: ppcalendar-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ppcalendar-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ccc69cb140a68bb82158d8c2de633afbc729795839d1e0862ee7e0146252c528
MD5 dc769923af77fa271b123e9edd1c12d2
BLAKE2b-256 24a3dd0204a213825c1a1bf660a786023fff8515a0546c6ee500b86a235a7c9b

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