Skip to main content

Beautiful terminal calendar with seasonal colors

Project description

PPCalendar - Pure Python Calendar

Terminal Screenshot showing colorful calendar

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

Usage

# Show current month
ppcal

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

# Show specific year
ppcal 2025

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

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?

Feature System cal PPCalendar
Colors ❌ No ✅ Yes
Today Highlight ❌✅ Partial ✅ Everywhere
3-Month View ✅ Yes ✅ Yes
Month/Year ✅ MM YYYY ✅ MM YYYY
Locale Support Limited ✅ Full

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.4.tar.gz (18.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.4-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppcalendar-0.1.4.tar.gz
  • Upload date:
  • Size: 18.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.4.tar.gz
Algorithm Hash digest
SHA256 ed70506992612ea2894e077f09a6d52d081a0775c02f3474ba214152637f7b99
MD5 84e5b2478a4ade756d065a3007d12a96
BLAKE2b-256 6a657c0d0cc6019db882bde046b33762d5067d1789f8732136e31dd48ce95e00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ppcalendar-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 19.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3fb63e0980beb337b6f433b7ef87c92d6458fc5e231acda1e3baf037989fc580
MD5 3352c78c2e7a6bc3d8da52325ab027df
BLAKE2b-256 4da900f49d9e14526d055f6fc4badf2a88e1f9cb0dc1a1e118f23501fb39aa2b

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