https://github.com/awesmubarak/nicecal
Python module to create simple calendars using box-drawing characters
https://github.com/awesmubarak/nicecal
calendar package python
Last synced: about 2 months ago
JSON representation
Python module to create simple calendars using box-drawing characters
- Host: GitHub
- URL: https://github.com/awesmubarak/nicecal
- Owner: awesmubarak
- License: mit
- Created: 2017-06-10T09:54:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-12T09:46:59.000Z (over 7 years ago)
- Last Synced: 2025-03-04T21:38:08.194Z (2 months ago)
- Topics: calendar, package, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
=======
Nicecal
=======Create simple calendars using box-drawing characters
Usage
=====Month
-----``nicecal.month(2038, 1)``
::┌──────────────────────┐
│ January │
│ Mo Tu We Th Fr Sa Su │
│ 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 │
└──────────────────────┘The calendar output can be modified using the following arguments:
Options:
- ``show_month_info`` (default 1)
- 0: No month information header
- 1: Only month name centred as header
- 2: Both month name and year centred as header
- ``show_days`` (default 1)
- 0: Day names are not shown
- 1: Day names are shown``>>>nicecal.month(2038, 1, show_month_info=0)``
::┌──────────────────────┐
│ Mo Tu We Th Fr Sa Su │
│ 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 │
└──────────────────────┘``>>>nicecal.month(2038, 1, show_month_info=2)``
::┌──────────────────────┐
│ January 2038 │
│ Mo Tu We Th Fr Sa Su │
│ 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 │
└──────────────────────┘``>>>nicecal.month(2038, 1, show_days=0)``
::┌──────────────────────┐
│ January │
│ 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 │
└──────────────────────┘``>>>nicecal.month(2038, 1, show_month_info=2, show_days=0)``
::┌──────────────────────┐
│ January 2038 │
│ 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 │
└──────────────────────┘``>>>nicecal.month(2038, 1, show_month_info=0, show_days=0)``
::┌──────────────────────┐
│ 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 │
└──────────────────────┘