Townlight 311 is the Townlight module for resident service-request intake, privacy-aware tracking, staff workflow, records, notifications, and Open311-compatible interchange.
Townlight 311 0.2.0 is included in the signed Townlight for Windows 1.11.0.1 public beta. In the Windows 1.10.0.1 acceptance record, on two Windows PCs, a resident submitted a 311 request with a photo, followed its status and saw the public comment. The staff workflow completed eight observed milestones across 311, Communications and Parks. This is a public beta, not a general-availability release.
The principal package is the distribution townlight-311, imported as townlight_311.
townlight_311.workflow is included in the Windows 1.11.0.1 public beta. The implemented Windows routes are /desktop/v1/service-requests, with Open311 at /desktop/v1/service-requests/open311/....
- Residents submit service requests through resident intake.
- Tracking is privacy-aware: resident-facing tracking does not expose internal detail.
- A recovery flow lets a resident recover access to their tracking information without staff disclosing another resident's data.
The workflow library covers the staff lifecycle and enforces the existing native roles:
local-admincity-staffclerk
Records/Data receiving is gated by additional required permissions; Clerk gets 311 only and does not automatically receive Records/Data access. Records output is produced as ZIP archives that report the actual bytes written together with the operation history.
Attachments are accepted up to 10 MiB each.
Notification delivery uses SMTP with STARTTLS; connection settings are managed by an administrator. Notification states are:
sentpendingfaileduncertain
Delivery is not guaranteed. In particular, an SMTP acceptance is not proof that a message reached a recipient, and the uncertain state exists precisely because delivery status may be unknown after a send.
The Open311 integration supports authenticated catalogue, read, and create operations with JSON/XML for the supported subset only. This is not full Open311 conformance and must not be represented as such.
- Import accepts CSV or JSON up to 2 MiB and 1000 rows.
- Import keys rows by stable external IDs together with a source key, and produces an exact preview hash.
- Export is limited to 10,000 requests. A request that would exceed the limit fails instead of silently truncating the export.
The old townlight_311.main FastAPI module is a developer-only prototype helper API. It is not the Windows runtime and is not a complete standalone product. Its existing helper routes are unchanged; do not confuse it with, or substitute it for, the implemented Windows routes (/desktop/v1/service-requests, with Open311 at /desktop/v1/service-requests/open311/...).
python -m pip install -e ".[dev]"
python -m pytest -qThese commands run the source tree. The installed Windows build is the signed 1.11.0.1 public beta.
Code: AGPL-3.0-only, with the TownLight Public Institution Exception for qualifying deployments. See LICENSE and LICENSE-EXCEPTION.md. Documentation is CC BY 4.0.