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


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)

Uploaded source

Built Distribution

nicecal-1.1.3-py2.py3-none-any.whl (3.8 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page