Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

digitalguy99/pythoncalendar

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pythoncalendar

Linux inspired cli calendar program brought to life on Windows with Python

Requirement: any Windows version

Preview

image

Installation

  1. Open preferred console application.

  2. Copy, paste and run the following:

    cmd /v /c "IF EXIST %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\cal.exe (set /p userinp=File already exists. Do you want to overwrite it? ^(y/n^) & IF /I !userinp! == y curl -kL -o %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\cal.exe https://github.com/digitalguy99/pythoncalendar/releases/download/v4.0.3/cal.exe) ELSE curl -kL -o %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\cal.exe https://github.com/digitalguy99/pythoncalendar/releases/download/v4.0.3/cal.exe"
  3. Restart your console.

  4. If you are facing any problem, check the Troubleshooting section.

Uninstalling

Copy, paste and run the following:

cmd /c "for /f "delims=" %i in ('where cal') do del "%i""

Usage

usage: cal [-h] [-y YEAR] [-m MONTH]

options:
  -h, --help            show this help message and exit
  -y YEAR, --year YEAR
  -m MONTH, --month MONTH

or simply:

cal -y <yyyy> -m <month full name or number>

Examples

  • Displaying calendar of current date

    $ cal
  • Displaying 1997 full year calendar

    $ cal -y 1997
  • Displaying March calendar of current year

    $ cal -m March
  • Displaying calendar of March 1997

    $ cal -m March -y 1997

Update

  1. Run the installation command.

  2. Type y and press enter when prompted the following:

    Do you want to overwrite it? (y/n)

  3. Restart your console.

Troubleshooting

If you are seeing some garbled characters on the calendar, try pasting and running the following:

cmd /c "reg add HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1 /f"

Then restart your console application.

License

© 2024 digitalguy99. This project is licensed under the terms of the MIT license.

About

cli calendar program for Windows written in Python

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.