Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
660 changes: 656 additions & 4 deletions LICENSE

Large diffs are not rendered by default.

19 changes: 6 additions & 13 deletions LICENSE-CODE
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
Apache License
Version 2.0, January 2004
https://www.apache.org/licenses/

Copyright 2026 CivicSuite contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


The source code in this repository is licensed under the GNU Affero General Public License, version 3 only
(AGPL-3.0-only), with the TownLight Public Institution Exception 1.0 for qualifying deployments.

Full license text: LICENSE
Exception: LICENSE-EXCEPTION.md
Documentation: CC BY 4.0, see LICENSE-DOCS

Releases published before this change remain available under the license they were published with.
393 changes: 389 additions & 4 deletions LICENSE-DOCS

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions LICENSE-EXCEPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# TownLight Public Institution Exception 1.0

This is an additional permission under section 7 of the GNU Affero General Public License, version 3 (AGPL-3.0-only), for TownLight code whose copyright holders have expressly granted this exception (the **Covered Code**).

## 1. Eligible public institution

An **Eligible Institution** is (a) a government, governmental department, public authority, or special district; (b) a public school, public college or university, or public library; or (c) a nonprofit organization recognized under U.S. Internal Revenue Code section 501(c)(3), or an equivalent public-benefit charitable organization under the law of its home country, acting for its own charitable or public-benefit purposes.

## 2. Additional permission for its own deployment

An Eligible Institution may modify and operate Covered Code for its own governmental, educational, or charitable services, including websites accessible to the public, **without complying with section 13's requirement to offer the Corresponding Source of that modified version to remote users**.

An institution may use a contractor to run its deployment under this permission **only if** the contractor acts on the institution's behalf and under its direction and control, and a written agreement entitles the institution to obtain, use, modify, and have a replacement provider operate the Corresponding Source of modifications made by that contractor for the deployment. This permission does not cover the contractor's independently operated, general-purpose or multi-customer commercial software service. Such a service may still be offered under the ordinary AGPL.

## 3. No change to other AGPL obligations

This exception relaxes **only section 13** and only for Covered Code within a qualifying deployment. It does not change AGPL requirements for distributing copies, grant trademark rights, or override any third-party component's license. It does not limit anyone's rights under the AGPL, including commercial rights.

Under section 7 of the AGPL, a person conveying a copy may remove this additional permission from that copy. The AGPL's warranty and liability provisions remain applicable.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ bash scripts/verify-release.sh

## Licensing

Code is Apache 2.0. Documentation is CC BY 4.0 unless otherwise noted. CivicData Bridge is designed for local municipal operation and does not require outbound runtime calls in the default profile.
Code: AGPL-3.0-only, with the TownLight Public Institution Exception for qualifying deployments. See [LICENSE](LICENSE) and [LICENSE-EXCEPTION.md](LICENSE-EXCEPTION.md). Documentation is CC BY 4.0 unless otherwise noted. CivicData Bridge is designed for local municipal operation and does not require outbound runtime calls in the default profile.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Important routes:
/api/v1/civicdata/publication-plan
/api/v1/civicdata/publication-plan/{plan_id}

License: Apache 2.0 code, CC BY 4.0 docs.
License: Code: AGPL-3.0-only, with the TownLight Public Institution Exception for qualifying deployments. See LICENSE and LICENSE-EXCEPTION.md. Documentation: CC BY 4.0 (LICENSE-DOCS).
2 changes: 1 addition & 1 deletion civicdata/public_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ def render_public_lookup_page() -> str:
<article class="card"><h2>Dependency</h2><p>Pinned to <code>civiccore==0.4.0</code>. Retrieval auth uses <code>CIVICDATA_AUTH_TOKEN_ROLES</code>. CivicCore remains dependency-only; it never imports from CivicData.</p></article>
</section>
</main>
<footer><p>Apache 2.0 code. CC BY 4.0 docs. Run locally by the city.</p></footer>
<footer><p>AGPL-3.0 code. CC BY 4.0 docs. Run locally by the city.</p></footer>
</body>
</html>"""
2 changes: 1 addition & 1 deletion docs/RECONCILIATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
| CivicSuite unified spec | CivicData Bridge prepares open-data packages, archive bundles, and CKAN-ready metadata. |
| Module catalog | Not a BI platform, dashboard host, or data warehouse. |
| v0.1.0 implementation | Ships deterministic preparation helpers only; live publishing remains future work. |
| Licensing | Apache 2.0 for code and CC BY 4.0 for documentation. |
| Licensing | AGPL-3.0-only for code and CC BY 4.0 for documentation. |
| Dependency | `civiccore==0.2.0`; no reverse dependency. |
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
<body>
<header><p class="eyebrow">CivicSuite module</p><h1>CivicData Bridge</h1><p class="lede">Open-data preparation for municipalities: normalize fields, draft dictionaries, prepare CKAN metadata, persist optional publication workpapers, protect persisted retrieval with bearer roles, flag redaction review, and assemble retention-aware archive checklists.</p><p><span class="badge">v0.1.2 shipping</span></p></header>
<main><section class="grid" aria-label="CivicData documentation"><article class="card"><h2>For staff</h2><p>Use CivicData Bridge to prepare datasets before publication. Every dataset still needs human review, license confirmation, redaction or exemption clearance, and retention checks.</p></article><article class="card"><h2>For IT</h2><p>Install locally with <code>python -m pip install -e ".[dev]"</code>, run <code>python -m uvicorn civicdata.main:app</code>, set <code>CIVICDATA_PUBLICATION_DB_URL</code> for optional persistence, and set <code>CIVICDATA_AUTH_TOKEN_ROLES</code> before exposing persisted retrieval.</p></article><article class="card"><h2>Boundaries</h2><p>No live CKAN publication, BI dashboard, data warehouse, autonomous redaction, or connector runtime ships in v0.1.2.</p></article><article class="card"><h2>Repository</h2><p><a href="https://github.com/CivicSuite/civicdata">CivicSuite/civicdata</a></p></article><article class="card"><h2>Dependency</h2><p>Pinned to <code>civiccore==0.4.0</code>. CivicCore remains dependency-only; it never imports CivicData Bridge.</p></article></section></main>
<footer><p>Apache 2.0 code. CC BY 4.0 docs.</p></footer>
<footer><p>AGPL-3.0 code. CC BY 4.0 docs.</p></footer>
</body>
</html>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = "0.1.2"
description = "CivicData Bridge foundation for open-data normalization, CKAN package drafts, archive bundles, and redaction review."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "Apache-2.0" }
license = { text = "AGPL-3.0-only" }
authors = [
{ name = "CivicSuite contributors" }
]
Expand Down
Loading