Skip to main content

CLI Calendar

CLI Calendar with multiple styles to display the current month on your terminal.

NOTE: Monday is always the first day of the week. Currently this is not configurable, if you are interested in this option being tweakable with a parameter, open an issue and I will take a look at it.

┌─────────────────────────────────────────┐
│ 8  August                          2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │
├─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│  27 │  28 │  29 │  30 │  31 │  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 │  1  │  2  │  3  │  4  │  5  │  6  │
└─────┴─────┴─────┴─────┴─────┴─────┴─────┘

Installation

This project is available in PyPI: https://pypi.org/project/cli-calendar

You can install it in your machine by just doing:

pip install cli-calendar

Usage

After installation, just run calendar on your shell.

Double check your PATH in case the command is not found. Sometimes pip might install it under $HOME/.local/bin/ and if you don't have it your $PATH you will need to either add it or create an alias like alias calendar=$HOME/.local/bin/calendar

usage: calendar.py [-h] [-d DAY] [-m MONTH] [-y YEAR] [-a] [-l LOOK] [-nc]
                   [--lang LANG] [--lang-days LANG_DAYS]
                   [--lang-months LANG_MONTHS] [-c]

CLI Calendar for the terminal by LluisE

options:
  -h, --help            show this help message and exit
  -d, --day DAY         Calendar day: 27
  -m, --month MONTH     Calendar month: 07 or May
  -y, --year YEAR       Calendar year: 2019
  -a, --all             Print all the calendars of the year
  -l, --look LOOK       Change how the calendar looks: 0, 1 or 2
  -nc, --no-color       Disable colored output
  --lang LANG           Language: en, es, ca, jp
  --lang-days LANG_DAYS
                        Language for days
  --lang-months LANG_MONTHS
                        Language for months
  -c, --compact         Compact calendar width

Styles

Style 0

                                           
  8  August                          2026  
                                           
  Mon   Tue   Wed   Thu   Fri   Sat   Sun  
                                           
   27    28    29    30    31    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    1     2     3     4     5     6   
                                           

Style 1

|-----------------------------------------|
| 8  August                          2026 |
|-----------------------------------------|
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|-----+-----+-----+-----+-----+-----+-----|
|  27 |  28 |  29 |  30 |  31 |  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 |  1  |  2  |  3  |  4  |  5  |  6  |
|-----------------------------------------|

Style 2

┌─────────────────────────────────────────┐
│ 8  August                          2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │
├─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│  27 │  28 │  29 │  30 │  31 │  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 │  1  │  2  │  3  │  4  │  5  │  6  │
└─────┴─────┴─────┴─────┴─────┴─────┴─────┘

Style 3

···········································
: 8  August                          2026 :
···········································
: Mon : Tue : Wed : Thu : Fri : Sat : Sun :
···········································
:  27 :  28 :  29 :  30 :  31 :  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 :  1  :  2  :  3  :  4  :  5  :  6  :
···········································

All the styles can be compacted with the -c or --compact flag:

┌───────────────────────────┐
│ 8  August            2026 │
├───┬───┬───┬───┬───┬───┬───┤
│Mon│Tue│Wed│Thu│Fri│Sat│Sun│
├───┼───┼───┼───┼───┼───┼───┤
│ 27│ 28│ 29│ 30│ 31│ 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│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │
└───┴───┴───┴───┴───┴───┴───┘

LICENSE

This project is licenced under the Mozilla Public License version 2.0. You may obtain a copy of the licence at the LICENCE file in this repository, or online at https://www.mozilla.org/en-US/MPL/2.0/.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_calendar-1.0.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

cli_calendar-1.0.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file cli_calendar-1.0.0.tar.gz.

File metadata

  • Download URL: cli_calendar-1.0.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for cli_calendar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 da9901f9d73e5aea0799e80bf1d34df1bffa780aeb8ef03d655f39db8a515f14
MD5 581aeea83a46695014e0bd7887ea4ae3
BLAKE2b-256 df1ae845e7db2d8923821a3f63a4a7783b26cf155753089d3d6a879eaf84140a

See more details on using hashes here.

File details

Details for the file cli_calendar-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cli_calendar-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for cli_calendar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 314f7b8dcebe4aa6ced15be7eed0b33a1c8836b7fcb7af168e51c187fdbdc7c5
MD5 e37e52827f702db8d3a0986d70ee19fa
BLAKE2b-256 733d948e988591dbc70b2a2fd3b42736cd9374b9e5c1cd2a4abd1fa8cbee766a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page