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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file nicecal-1.1.3.tar.gz.

File metadata

  • Download URL: nicecal-1.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nicecal-1.1.3.tar.gz
Algorithm Hash digest
SHA256 39a57f1a544006bda91b5dd8ae724a808724abc661d687051366cbc8c9547c98
MD5 088d0c800b9c88dc9f4f0edeef010097
BLAKE2b-256 32410a4983bb9505117798bc75abb20792ba29c2a33bfe8c8bc608e3cb8b7590

See more details on using hashes here.

File details

Details for the file nicecal-1.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nicecal-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6df402ff78ada7201a42615d59a0d207201f33783a1cbc1c9269b06b737aeb46
MD5 3eb9aa86fe917fa1972817a08ac3c26a
BLAKE2b-256 1dd856694c1f24d15760920a09ef0953d1192b518910b7c28c1ce59863b7054d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page