Create good looking plain text calendars using box-drawing characters.
Project description
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 │ └──────────────────────┘
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nicecal-1.1.3.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for nicecal-1.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6df402ff78ada7201a42615d59a0d207201f33783a1cbc1c9269b06b737aeb46 |
|
MD5 | 3eb9aa86fe917fa1972817a08ac3c26a |
|
BLAKE2b-256 | 1dd856694c1f24d15760920a09ef0953d1192b518910b7c28c1ce59863b7054d |