# Third-party notices Two different things travel inside the Docker image and both are listed here: the **browser libraries and font** the dashboard serves to the page, and the **Python packages** it runs on. The first list used to be the whole file; the second is what the image actually redistributes, and it is where the only copyleft licence in the delivery lives. ## Browser libraries and font Served from `app/src/web/static/vendor/`, self-hosted rather than pulled from a CDN, so they travel inside the image and the dashboard works without reaching any third party at runtime. All seven are permissive, and all seven require their copyright notice and licence text to be retained when redistributed. The full text of each sits beside the files it covers, in `LICENSE.txt` inside that library's own directory. **This file is also served by the running dashboard**, at `/static/THIRD-PARTY-NOTICES.md`, and is linked from the map footer and from the Sources tab. It used to live only in the repository, which the person looking at a deployed dashboard does not have: the code pointed here and the pointer led nowhere. | Library | Version | Licence | Copyright | Licence text | |---|---|---|---|---| | [Tabler](https://tabler.io) | 1.0.0-beta21 | MIT | 2018–2024 The Tabler Authors; codecalm.net Paweł Kuna | `vendor/tabler/LICENSE.txt` | | [Bootstrap](https://getbootstrap.com) | 5.3.3, inside `tabler.min.js` | MIT | 2011–2024 The Bootstrap Authors | `vendor/tabler/LICENSE-bootstrap.txt` | | [Popper](https://popper.js.org) | 2.11.8, inside `tabler.min.js` | MIT | 2019 Federico Zivolo | `vendor/tabler/LICENSE-popper.txt` | | [Chart.js](https://www.chartjs.org) | 4.5.1 | MIT | 2014–2024 Chart.js Contributors | `vendor/chartjs/LICENSE.txt` | | [Leaflet](https://leafletjs.com) | 1.9.4 | BSD-2-Clause | 2010–2023 Volodymyr Agafonkin; 2010–2011 CloudMade | `vendor/leaflet/LICENSE.txt` | | [SheetJS](https://sheetjs.com) (`xlsx`) | 0.18.5 | Apache-2.0 | SheetJS LLC | `vendor/xlsx/LICENSE.txt` | | [Poppins](https://github.com/itfoundry/Poppins) | via `@fontsource/poppins` 5.3.0 | SIL OFL 1.1 | 2020 The Poppins Project Authors | `vendor/poppins/LICENSE.txt` | Notes on how these were established, so the next person does not have to repeat the work: - Five of the seven versions were **read** from the bundled file rather than taken from what was intended at the time: Tabler, Chart.js and Leaflet state theirs in a header comment, the SheetJS bundle carries `version="0.18.5"` internally, and Bootstrap's banner inside `tabler.min.js` says `v5.3.3`. **Popper's does not appear anywhere in the bundle** — grepping for `2.11.8` gives zero hits in both `tabler.min.js` and `tabler.min.css` — so that number is inferred from what Bootstrap 5.3.3 ships, not observed. It is almost certainly right; it is not verified the way the other six are. - Tabler and Chart.js name their licence inside the file they ship (`Licensed under MIT` and `Released under the MIT License` respectively, in their banners). Leaflet's and SheetJS's banners do not. For every library the licence text was taken verbatim from the published package of that exact version, rather than transcribed or paraphrased. - Apache-2.0 requires a `NOTICE` file to be passed on if the original has one. The SheetJS package does not include one, so there is nothing further to carry. - **Bootstrap and Popper are separate works with separate copyright holders, and they travel inside `tabler.min.js`.** MIT requires each covered work's notice to be carried, and neither was: grepping the bundle, `Permission is hereby granted` appears exactly zero times, and the only licence file in that folder was Tabler's. Their texts were taken from the Bootstrap `v5.3.3` release and from the published npm package `@popperjs/core@2.11.8`, not transcribed. - **Tabler's bundled licence file was from a different version than the artefact.** It said 2018–2023 while the banner inside `tabler.min.js` and `tabler.min.css` says 2018–2024 and also names Paweł Kuna. Corrected, and the discrepancy recorded at the top of that file. - None of the seven above constrains the licence this dashboard itself is released under: MIT, BSD-2-Clause, Apache-2.0 and OFL are all permissive, and none is copyleft. **One of the Python packages below is**, so that sentence is not true of the delivery as a whole — see the next section. The decision is open either way; see the project's own `LICENSE`, which does not exist yet. ## Python packages The image installs 49 distributions. They are not vendored into the repository — `pip` installs them at build time from `app/requirements.txt`, with every version, transitive ones included, fixed by `app/constraints.txt` — but the image is what is handed over, so the image redistributes them and they belong here. The full licence text of each travels inside the image, under `/usr/local/lib/python3.12/site-packages/-.dist-info/`. The base image `python:3.12.14-slim` carries its own, 87 of them, under `/usr/share/doc/*/copyright`. **`psycopg` and `psycopg-binary` are LGPL-3.0**, and they are the only copyleft in the delivery. What that asks of whoever redistributes the image is a visible notice that the library is used and is covered by the LGPL — this paragraph — and that a copy of both the LGPL and the GPL travel with it. Both do, in three places: `site-packages/psycopg-3.2.5.dist-info/LICENSE.txt` (the LGPL, 165 lines) and, from the Debian base image, `/usr/share/common-licenses/LGPL-3` and `/usr/share/common-licenses/GPL-3` (674 lines). An audit reported the GPL as missing and this file first repeated that; it came from grepping only `site-packages`, where it indeed is not. Debian ships it, so nothing needed adding. The part of the LGPL that usually gives pause, the requirement that the library be replaceable, is satisfied by construction: psycopg is an ordinary importable package, not statically linked. `psycopg-binary` also bundles fourteen native libraries under `site-packages/psycopg_binary.libs/` — libpq, OpenSSL 3's libssl and libcrypto, OpenLDAP's libldap and liblber, the krb5 family, libsasl2, libpcre, libselinux, libcom_err and libkeyutils. That directory carries no licence files of its own; each is covered by its upstream terms, the same ones Debian ships under `/usr/share/doc`. **`certifi` is MPL-2.0**, which is copyleft per file: modifying certifi's own files would require publishing those modifications. Nothing here modifies it. The other 46 are MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0 or PSF-2.0 — all permissive. | Package | Version | Licence | |---|---|---| | alembic | 1.14.1 | MIT License | | annotated-types | 0.8.0 | MIT | | anyio | 4.15.1 | MIT | | APScheduler | 3.10.4 | MIT License | | beautifulsoup4 | 4.14.3 | MIT License | | certifi | 2026.7.22 | Mozilla Public License 2.0 (MPL 2.0) | | charset-normalizer | 3.5.2 | MIT | | click | 8.5.0 | BSD-3-Clause | | Deprecated | 3.0.0 | MIT License | | fastapi | 0.115.8 | MIT License | | greenlet | 3.5.6 | MIT AND PSF-2.0 | | gunicorn | 23.0.0 | MIT License | | h11 | 0.16.0 | MIT License | | httpcore | 1.0.9 | BSD-3-Clause | | httptools | 0.8.0 | MIT | | httpx | 0.28.1 | BSD License | | idna | 3.20 | BSD-3-Clause | | iniconfig | 2.3.0 | MIT | | Jinja2 | 3.1.5 | BSD License | | limits | 5.8.0 | MIT | | Mako | 1.4.3 | MIT | | MarkupSafe | 3.0.4 | BSD-3-Clause | | packaging | 26.3 | Apache-2.0 OR BSD-2-Clause | | pip | 26.2.1 | MIT | | pluggy | 1.6.0 | MIT License | | psycopg | 3.2.5 | GNU Lesser General Public License v3 (LGPLv3) | | psycopg-binary | 3.2.5 | GNU Lesser General Public License v3 (LGPLv3) | | pydantic | 2.10.6 | MIT | | pydantic-settings | 2.7.1 | MIT | | pydantic_core | 2.27.2 | MIT License | | pytest | 8.3.4 | MIT License | | pytest-mock | 3.14.0 | MIT License | | python-dotenv | 1.2.4 | BSD-3-Clause | | pytz | 2026.5 | MIT License | | PyYAML | 6.0.3 | MIT License | | requests | 2.32.3 | Apache Software License | | six | 1.17.0 | MIT License | | slowapi | 0.1.9 | MIT License | | soupsieve | 2.10 | MIT | | SQLAlchemy | 2.0.38 | MIT License | | starlette | 0.45.3 | BSD-3-Clause | | typing_extensions | 4.16.0 | PSF-2.0 | | tzlocal | 5.4.4 | MIT | | urllib3 | 2.8.0 | MIT | | uvicorn | 0.34.0 | BSD License | | uvloop | 0.23.0 | Apache Software License; MIT License | | watchfiles | 1.3.0 | MIT License | | websockets | 17.2 | BSD-3-Clause | | wrapt | 2.5.0 | BSD-2-Clause | This list is not maintained by hand. A test reads the distributions out of the running image and compares them against this table, so a package added to `requirements.txt` — or a transitive one that arrives with it — fails the suite until it is declared here. That matters because `build_package.sh` rebuilds the image on every delivery, which means the transitive set is whatever PyPI served that day. `pytest`, `pytest-mock`, `httpx`, `iniconfig` and `pluggy` are in the list and in the production image. They are not used there: the image ships `src/` only, so the test suite is not present and cannot be run on the partner's machine. Two audits flagged them as surface that could be dropped and both classed it as preference rather than a defect; splitting the build to remove five packages was judged not worth the new failure mode this close to delivery. The five data sources carry redistribution terms rather than software licences, and are worth reading alongside this file: - **FAOSTAT, World Bank, USDA PSD** — open data, redistributable with attribution. Every KPI's source is recorded in the dashboard's own Sources tab. - **FAO GIEWS ASIS** — this file used to stop at "© FAO", on the reasoning that ASIS is a GIEWS product and does not appear in Annex 1 of the FAO statistical databases' terms, so their CC BY 4.0 could not be claimed for it. That was cautious but it undersold the position. The FAO data catalogue record for the dataset actually ingested — the ASI *annual summary*, record `2afba815-0402-400a-bcf8-cf0959f19421` — declares **CC BY 4.0** and gives a recommended citation: > © FAO — Agricultural Stress Index System (ASIS), > , [date accessed] The dataset is named deliberately: two licences coexist inside ASIS, and some of its material is under CC BY-NC-SA 3.0 IGO, which is non-commercial and share-alike. What is declared is the licence of the specific product ingested. - **UN Comtrade** — © United Nations. Its terms are the most restrictive of the five: the data may be used and shown, but not redistributed in bulk without the United Nations' permission. The dashboard uses it only in the import-origins chart, as a visualisation, and charts are not exported; no exportable data table contains Comtrade rows. The database dump does contain them (table `import_origins`, rows whose `data_source` is UN Comtrade), so whoever passes the dump on beyond the SEEDS consortium should either remove those rows or check the terms at first. ## Boundary files The drought map ships four admin-1 boundary files in `app/src/web/static/geo/`. Unlike the libraries above these are *data*, they travel inside the image, and each carries its own terms — so they are listed one by one. | File | Source | Upstream licence | Upstream data | |---|---|---|---| | `egypt_adm1.geojson` | geoBoundaries gbOpen | ODbL 1.0 | OpenStreetMap | | `tunisia_adm1.geojson` | geoBoundaries gbOpen | ODbL 1.0 | OpenStreetMap | | `jordan_adm1.geojson` | geoBoundaries gbOpen | CC BY 2.5 | Wikimedia Commons | | `morocco_adm1.geojson` | Natural Earth 10m admin-1, `v5.1.2` | Public domain | — | Notes: - **The licence is per country, not per product.** geoBoundaries passes through whatever its upstream carries, so the three files it produced are not under one licence. They were read from the geoBoundaries API metadata (`boundaryLicense`), not assumed. The map footer used to claim CC BY 4.0 for all of them, which was wrong; it now names the projects and links them, and points here for the terms. - **geoBoundaries asks to be credited with a visible link on the page that draws the boundaries.** That link is in the map card footer on the Production tab. For written work the project asks to be cited as Runfola, D. et al. (2020), *geoBoundaries: A global database of political administrative boundaries*, PLoS ONE 15(4): e0231866. - **Jordan is CC BY 2.5, and its original author could not be identified.** CC BY 2.5 §4(b) asks for the Original Author to be credited by whatever name they supplied, which is more literal than 4.0's "any reasonable manner". The attempt was made: geoBoundaries' API gives `licenseSource` as `commons.wikimedia.org/wiki/File` — truncated, with no file name — and `licenseDetail` as `nan`, so there is nothing to resolve the author from. Recorded here as a failed attempt rather than left as a silent omission, because those are different positions if anyone asks. - **ODbL is share-alike, and that is not the same obligation as the licences above.** Redistributing a database derived from ODbL data carries conditions on the derived database itself, not just attribution. Egypt and Tunisia are affected. This needs checking against whatever licence the project settles on — see the open question at the end of the previous section — and it is the one item in this file that is not merely a notice to carry forward. - **Morocco comes from Natural Earth and not geoBoundaries** because geoBoundaries publishes only the 12 regions created by the 2015 reform, while FAO ASIS measures over the earlier 15 and always has. Natural Earth never updated Morocco to the new division, so its file matches the data. Its names match the ASIS names character for character, accents included, so the map joins on the name with nothing to translate. Generated by filtering `adm0_a3 == "MAR"` out of `https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_1_states_provinces.geojson`, dropping Oued el Dahab (no cropland, so ASIS does not report it) and keeping the property names the other three files use. Pin the tag: the 50m file has no Moroccan features at all. - Natural Earth is public domain and asks for nothing — no permission, no attribution. It is credited in the footer anyway, beside geoBoundaries, so a reader can tell which boundary came from where. - **Western Sahara.** Natural Earth assigns Laâyoune-Boujdour-Sakia El Hamra and Guelmim-Es-Semara to Morocco, which is also how FAO ASIS reports them and therefore what the dashboard already showed before any map existed. The UN common operational dataset does not: its Moroccan ADM1 has 10 units. Drawing these two as Moroccan follows the data source; it is recorded here so that it reads as a decision and not as a side effect of the file that was available.