radicale-ics-sync
Ever wanted to subscribe to an ICS feed (like a university timetable or a shared calendar) in Radicale, but still be able to edit events locally? That's what this plugin is for.
It syncs external ICS feeds into your Radicale calendars, keeps your local changes intact, and lets you filter out events you don't care about.
Installation
pip install radicale-ics-sync
Then configure Radicale to use the plugin (see Configuration).
Configuration
Radicale config
In your Radicale config file, set the storage type to radicale_ics_sync.storage:
[storage]
type = radicale_ics_sync.storage
filesystem_folder = /data/collections
# ics_config is optional; if omitted, defaults to /config/ics_sync.json
ics_config = /config/ics_sync.json
Sync jobs (ics_sync.json)
Create a file /config/ics_sync.json that defines which feeds to sync and where.
[
{
"feed": "https://example.com/calendar.ics",
"collection": "username/calendar-name",
"sync_interval": 3600,
"include_patterns": [],
"exclude_patterns": []
}
]
You can provide multiple pairs of feed + collection. Each sync job supports these fields:
| Field | Required | Default | Description |
|---|---|---|---|
feed |
✅ | — | URL of the ICS feed |
collection |
✅ | — | Radicale collection path |
sync_interval |
3600 |
How often to poll the feed, in seconds | |
include_patterns |
[] |
Can be strings or arbitrary regex patterns | |
exclude_patterns |
[] |
Can be strings or arbitrary regex patterns |
Note: The collection must already exist in Radicale before the plugin can sync to it. Create it through the Radicale web interface or your CalDAV client first.
Changes to ics_sync.json take effect after restarting Radicale. docker compose restart for Docker, systemctl restart radicale for systemd.
Filtering
Patterns are matched case-insensitively against the event's SUMMARY (title) field.
{
"feed": "https://university.example.com/timetable.ics",
"collection": "alice/uni",
"exclude_patterns": ["Tutorial", "Exercise"]
}
- If
include_patternsis set: only events matching at least one pattern are synced - If
exclude_patternsis set: events matching any pattern are removed
Docker setup
Before starting the container for the first time, create the required config files:
touch config users ics_sync.json
Then fill in their contents (see Configuration above).
Here is a minimal docker-compose.yml:
services:
radicale:
build: .
container_name: radicale
restart: always
ports:
- "5232:5232"
volumes:
- ./config:/config/config:ro # Radicale config file (not a directory)
- ./users:/config/users:ro
- ./ics_sync.json:/config/ics_sync.json:ro
- ./data:/data
read_only: true
tmpfs:
- /tmp
And a Dockerfile to install the plugin:
FROM tomsquest/docker-radicale
RUN /venv/bin/pip install radicale-ics-sync --no-cache-dir
Non-Docker setup
Install Radicale and the plugin:
pip install radicale radicale-ics-sync
Create your Radicale config (e.g. ~/.config/radicale/config) and specify the path of your ics_sync.json:
[storage]
type = radicale_ics_sync.storage
filesystem_folder = ~/.local/share/radicale/collections
ics_config = ~/.config/radicale/ics_sync.json
Then create ~/.config/radicale/ics_sync.json and start Radicale:
radicale
State
The plugin stores its sync state in ics_sync_hashes.json, written next to your Radicale data. It tracks the last known content hash per event so unchanged events aren't rewritten. Safe to delete if you want a full re-sync on next startup.
Behavior
The plugin polls ICS feeds at a regular interval. Events are filtered by include/exclude patterns before being written to Radicale. Events that disappear from the upstream feed or are filtered out are deleted from the Radicale collection. Local edits to upstream events are preserved, until the upstream event itself changes, in which case the upstream version wins. Local events are not touched.
Limitations & Roadmap
- Filtering is
SUMMARY-only — other fields (LOCATION,DESCRIPTION) aren't supported yet, but are planned. - Upstream changes fully overwrite local edits — field-level merge (e.g. keeping your local title while accepting upstream time changes) is planned.
Contributing
Issues and pull requests are welcome.
License
MIT
Metadata
Release files for radicale-ics-sync 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| radicale_ics_sync-0.1.1.tar.gz | 12.1 kB | Without provenance | Details for radicale_ics_sync-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| radicale_ics_sync-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for radicale_ics_sync-0.1.1-py3-none-any.whl |
Total release size: 22.9 kB
Release files / radicale_ics_sync-0.1.1.tar.gz
| Download URL | radicale_ics_sync-0.1.1.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
809e11a3506d7eec4e65c024638827b904751952b5afe37969067de03a718a25
|
|
BLAKE2b-256 checksum How to use checksums |
cbc5edcb926fc9c7e59c9a5cc312dfdb5e81f1c5dbc52117c987f52ebe614fb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / radicale_ics_sync-0.1.1-py3-none-any.whl
| Download URL | radicale_ics_sync-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f41ea32c2dc103afa256b514f4d8c17e1b6e28511503f35132d2929f1093d1e2
|
|
BLAKE2b-256 checksum How to use checksums |
15603c1b48b3a4707288abc937f54a2a20490a296d441555c058169d2b369ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for radicale-ics-sync 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.