Skip to main content

Python library for drawing simple monthly calendar images with events.

Project description

drawcal

Python library for drawing simple monthly calendar images with events.

drwacal clendar image

Installation

Install from PyPI:

$ pip install -U drawcal

Quickstart

Generate a calendar image for a given events file:

$ drawcal --events events.json --month 3 --year 2025

Python:

>>> from drawcal import draw_calendar
>>> draw_calendar(month, year, events=events, outfile=outfile)

Events format

drawcal uses a structured event object format:

[
  {
    "start_date": "3/1/2025",
    "end_date": "3/3/2025",
    "color": "#ee2233",
    "style": "rounded",
    "markers": ["3/3/2025"]
  },
  {
    "start_date": "3/14/2025",
    "end_date": "3/15/2025",
    "style": "filled",
    "markers": ["3/14/2025", "3/15/2025"]
  }
]

Supported style values are filled, rounded, and diagonal. Use markers to draw green marker indicators on specific dates within the event range, or use marker-only events when you only want calendar annotations.

Legacy list-based events are still supported for backward compatibility and are documented in docs/events.md.

Documentation

Additional docs:

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

drawcal-0.6.1.tar.gz (554.7 kB view details)

Uploaded Source

Built Distribution

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

drawcal-0.6.1-py3-none-any.whl (556.4 kB view details)

Uploaded Python 3

File details

Details for the file drawcal-0.6.1.tar.gz.

File metadata

  • Download URL: drawcal-0.6.1.tar.gz
  • Upload date:
  • Size: 554.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for drawcal-0.6.1.tar.gz
Algorithm Hash digest
SHA256 a73f032c7ac610dee00b0b3866a109e2af598e3b06dcfa3d37daa264a685b75a
MD5 efc5a2614d75b0c1005ed197a4404853
BLAKE2b-256 c30163dbe31c9bf533dae0b892008c64113b4162cb25c375b0100c833bccdca4

See more details on using hashes here.

File details

Details for the file drawcal-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: drawcal-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 556.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for drawcal-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e067a26a80e3d88251cca65f33c8aa28a83819ba86428f2d7ea996aeb76fc49d
MD5 762248032c98cc45f6cd5ce0b4a9b362
BLAKE2b-256 6a43d8f95772f8608867147455410521aaeb5df666c99c8e14fd04ce94d84807

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