Technical Overview
SchedPlus Technical Overview
SchedPlus separates its user interfaces from a shared scheduling core. The Tkinter, PyQt and command-line interfaces all use the same task validation, persistence and data-management services.
Tkinter / PyQt / CLI
│
▼
Scheduler + Validation
│
▼
SQLite Storage (tasks.db)
This separation allows each interface to work with the same task data without implementing its own scheduling or database logic.
Application Identity
All interfaces use a shared application identity provider.
Packaged releases include an immutable schedplus/build-info.json containing:
- Application version and edition
- Update channel
- Package format
- Operating system and architecture
If embedded build information is unavailable, source installations fall back to installed Python package metadata for version identification.
Interfaces do not read pyproject.toml at runtime.
The Tkinter interface, PyQt interface, Full-edition selector and CLI therefore report a consistent installed version. Desktop About dialogs also expose package information for support and update troubleshooting.
SQLite Storage
SQLite is the sole persistence backend.
The entries table stores the following task fields:
| Field | Purpose |
|---|---|
id |
Unique task UUID |
date, time |
Scheduled date and time |
text |
Task description |
createdAt, updatedAt |
Creation and modification timestamps |
completed, completedAt |
Completion status and timestamp |
notes |
Additional task information |
priority |
Priority level |
duration |
Estimated duration |
category |
Task category |
recurrence, recurrenceEnd |
Recurring schedule and end date |
reminder |
Reminder configuration |
Dates and times use normalized ISO formats.
Schema Versioning and Migration
SchedPlus records its database schema version using SQLite's PRAGMA user_version.
Missing migrations run in numeric order within a single transaction.
Before modifying an existing database, SchedPlus creates a consistent timestamped backup beside it:
tasks_pre_migration_v<old>_to_v<new>_*.db
If a migration fails, the transaction rolls back without discarding the original task records.
Databases from v0.7.3 and v0.8.0 are adopted as schema version 1.
SchedPlus v0.9.0 introduced migrations 2–6:
| Migration | Changes |
|---|---|
| 2 | Task completion tracking |
| 3 | Notes, priority and duration |
| 4 | Categories |
| 5 | Recurring schedules |
| 6 | Reminders |
New migrations are appended to the migration registry rather than modifying previously released migration steps.
Downgrade Protection
If an older SchedPlus version encounters a database with a newer unsupported schema, it refuses to modify the database.
Users must install a compatible newer application version to access that data.
Corruption Recovery
Database initialization performs a SQLite quick check before migration.
If corruption is confirmed, SchedPlus:
- Preserves the damaged database as a timestamped
tasks_corrupted_*.dbfile. - Creates a new database using the current schema.
- Reports the preserved database location to the user.
Storage Reliability
Storage operations use SQLite transactions, with foreign keys enabled.
SQLite waits up to three seconds when a database is busy.
Storage logs are written to schedplus.log in the application data directory and rotate with up to three 1 MB backups.
Local Data Portability
SchedPlus uses a shared data-transfer service across the PyQt, Tkinter and CLI interfaces.
Backup and Restore
Backups use the schedplus-backup JSON format, version 1.
Each backup contains a consistent snapshot of tasks and relevant local preferences.
During restoration, SchedPlus:
- Parses and validates the complete backup document.
- Creates a safety backup of the existing data.
- Replaces tasks transactionally using the current database schema.
Task Export and Import
Task exports use the separate schedplus-task-export JSON format, version 1.
Imports run within a single database transaction.
| Record condition | Behaviour |
|---|---|
| New task ID | Inserted |
| Existing ID with identical values | Reported as duplicate and skipped |
| Existing ID with different values | Reported as conflict and skipped |
All backup, restore, export and import operations use user-selected local file paths. SchedPlus does not transmit these files over the network.
Undo Manager
An in-memory UndoManager maintains a bounded history of 50 actions.
Supported actions include:
- Adding and deleting tasks
- Editing tasks
- Completing and reopening tasks
- Rescheduling tasks
The PyQt interface exposes undo through Ctrl+Z. The Tkinter interface provides undo through its Edit menu.
Dependency Profiles
SchedPlus defines several dependency profiles to support different application editions.
| Profile | Components |
|---|---|
base |
Scheduler, CLI and updater foundation |
lite |
Base with Tkinter calendar support |
standard |
Base with PyQt interface |
full |
Both desktop interfaces |
dev |
Full with tests, formatter and linter |
Application Packaging
Release packaging begins with four PyInstaller onedir builds.
| Build | Default interface |
|---|---|
| Standard | PyQt |
| Lite | Tkinter |
| Full | Interface selector |
| CLI | Command-line parser |
Each build uses a dedicated launcher and includes the required application icons, package metadata, licences and NOTICE files.
Frameworks not required by an edition are excluded from that build.
All frozen editions include the shared updater modules required for startup and package identity. Whether internal updating is enabled depends on the embedded package policy, not the presence or absence of updater modules.
The frozen application directories are then wrapped in platform-specific packages or installers.
Debian Packages
Debian distributions provide three mutually exclusive packages:
schedplus— Standardschedplus-lite— Liteschedplus-cli— CLI
Each package installs its frozen application under /usr/lib, its launcher under /usr/bin, and licensing documents under /usr/share/doc.
Desktop editions also include desktop entries, hicolor icons and AppStream metadata.
Standard launches PyQt by default while also supporting CLI commands. Lite includes Tkinter, and CLI omits the graphical interfaces.
Task data remains in:
~/.local/share/ZFordDev/SchedPlus/tasks.db
No Debian package owns this database, allowing it to survive package removal, upgrades and edition changes.
AppImage
The Standard AppImage contains a read-only frozen application.
Task data is stored outside the AppImage at:
~/.local/share/ZFordDev/SchedPlus/tasks.db
The application normally runs through FUSE. Systems without FUSE support can extract the image using --appimage-extract and launch squashfs-root/AppRun.
Release filenames include version and architecture information, with published SHA-256 checksums.
Windows
Windows distributions include:
- Portable ZIP packages for Standard, Lite, Full and CLI
- A per-user Standard installer
- A Standard Microsoft Store MSIX package
The per-user installer installs under:
%LocalAppData%\Programs\SchedPlus
All Windows editions store tasks separately at:
%APPDATA%\ZFordDev\SchedPlus\tasks.db
Microsoft Store
The Microsoft Store MSIX contains the Standard PyQt application.
Its package configuration:
- Does not expose a command execution alias
- Requests only
runFullTrust - Uses Microsoft Store-managed updates
The Store upload package is built through GitHub Actions, with Partner Center submission performed manually.
Snap
The Standard Snap uses strict confinement.
Its database location is:
$SNAP_USER_COMMON/SchedPlus/tasks.db
This directory is shared across Snap revisions, preserving task data during refreshes.
The release workflow publishes to the following Snap channels:
| Source | Snap channel |
|---|---|
main application/package changes |
edge |
pre-release-* tags |
candidate |
release-* tags |
stable |
Update Architecture and Security
SchedPlus enables internal updates only when its embedded package identity permits them.
The schedplus/build-info.json file identifies:
- Version and edition
- Operating system and architecture
- Package format
- Stable or preview channel
- Update manifest URL
- Ed25519 public verification key
Release automation generates signed update feeds using the final artifact hashes.
The signing private key is held in a masked, protected secret and is not written to release artifacts or logs.
Update Verification
Before handing off an update, SchedPlus verifies:
- The signature of the HTTPS update manifest.
- The exact matching edition, platform, architecture and package format.
- The downloaded artifact's SHA-256 checksum.
- The expected byte size.
Update Behaviour by Package
| Package | Update behaviour |
|---|---|
| Windows portable | External updater with atomic replacement, startup health check and rollback |
| Debian | Verified download for normal package installation |
| AppImage | Verified download for normal platform installation |
| Windows direct installer | Internal updates disabled under the unsigned-installer policy |
| Microsoft Store | Store-managed updates |
| Snap | Snap-managed updates |
| Source checkout | Managed through the development workflow |
Source installations cannot overwrite their working tree through the packaged updater.
Snap and Microsoft Store packages always defer updates to their respective providers.
Licensing
The complete SchedPlus desktop distribution is licensed under GPL-3.0-only.
The reusable scheduler, validation, task model and storage modules in src/logic are also available under Apache-2.0.
Binary distributions include the required licence and NOTICE files, with corresponding source available from the SchedPlus repository.
See the repository's NOTICE file for historical licensing and transition details.