Skip to main content

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

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
nicecal-1.1.3-py2.py3-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Nov 12, 2017
nicecal-1.1.3.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None Nov 12, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page