Python library for drawing simple monthly calendar images with events.
Project description
drawcal
Python library for drawing simple monthly calendar images with events.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drawcal-0.6.0.tar.gz.
File metadata
- Download URL: drawcal-0.6.0.tar.gz
- Upload date:
- Size: 554.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d29ff658b2552cd05f62d24705c9b055e0e32cc784afb82611dad2747c7db3e1
|
|
| MD5 |
4078c708cc9610d1e67b384d4db2d1a2
|
|
| BLAKE2b-256 |
f0938a595fd6ae91bc863e0b332faadfff96178dc086387cad9c35b81030bb3e
|
File details
Details for the file drawcal-0.6.0-py3-none-any.whl.
File metadata
- Download URL: drawcal-0.6.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155a14fe7f253e9e0e971ef9f931ac0d06ac6f1bc93b843920d3eafd3a3d8ce9
|
|
| MD5 |
2c5911b33957df99cf504826ada48b40
|
|
| BLAKE2b-256 |
33c049d22fdc8e054e304bfab6124cfdf4431d497381b894a9ad7662baba8944
|