From 4dec70f29a0f18770707fb0fecb021a99ca7fd57 Mon Sep 17 00:00:00 2001 From: Morten Punnerud-Engelstad Date: Tue, 11 Aug 2026 08:18:56 +0200 Subject: [PATCH] Relicense to the mpedb License 1.0 The same text as mpedb and MPEqs, byte for byte, so the three projects share one licence rather than three that can drift apart. Free of charge for every person and every organization, except that a group over five billion dollars in revenue or valuation owes seven US cents per device, once. The OSI classifier is removed rather than swapped: this licence is not OSI approved, and "License :: OSI Approved :: MIT License" would have been a false claim in the package metadata. It now reads Other/Proprietary, and the LICENSE file ships inside the wheel. ONE THING WORTH KNOWING BEFORE THIS GOES OUT. This repository has had outside contributions, and PR #3's author is credited with Co-authored-by on the download-image commit. Their work was offered when the project said MIT. In practice nothing of theirs remains in the tree -- that feature was reimplemented on the client side, and the server-side version it replaced is not in any current file -- so this is a relicensing of code that is ours. It is still worth recording that the question was asked rather than skipped. Version 0.4.0, because the licence a package is distributed under is not a patch-level detail. --- LICENSE | 49 +++++++++++++++++++++++++++++++++++++++++ README.md | 8 ++++++- pyproject.toml | 6 ++--- src/mpe_lkg/__init__.py | 2 +- 4 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ba23e45 --- /dev/null +++ b/LICENSE @@ -0,0 +1,49 @@ +The mpedb License 1.0 + +Copyright (c) 2026 Morten Punnerud-Engelstad + +## Acceptance + +By using, copying, modifying, or distributing the software, you agree to all of the terms of this license. If you do not or cannot agree, you may not use the software. + +## Grant + +The licensor grants you a non-exclusive, worldwide, non-transferable, non-sublicensable license to use, copy, modify, and distribute the software and derivative works of it, for any purpose, subject to the conditions below. + +Use is FREE OF CHARGE for every person and every organization, except as the Large Enterprise Device Fee below provides. + +## Large Enterprise Device Fee + +1. **Who pays.** A "Large Enterprise" is any organization whose Group's consolidated annual revenue OR total valuation (public market capitalization, or the most recent fair valuation for private entities) exceeds USD 5,000,000,000, measured in 2026 United States dollars (adjusted for inflation by the US CPI-U from calendar year 2026), taking whichever of the two metrics is HIGHER. + +2. **Group.** "Group" means the organization together with every entity that directly or indirectly controls it, is controlled by it, or is under common control or ownership with it, through any chain and in any direction — expressly including a non-profit entity that owns or controls a for-profit entity and a for-profit entity that owns or controls a non-profit entity. The revenue and valuation tests apply to the Group's combined totals. + +3. **The fee.** A Large Enterprise owes the licensor a ONE-TIME fee of USD 0.07 (seven US cents), measured in 2026 United States dollars (adjusted for inflation by the US CPI-U from calendar year 2026), per physical device on which the software runs. Where the software runs on one or more servers, the fee is instead counted per physical device that connects, directly or indirectly, to those servers or to services backed by them. For any deployment, the applicable device count is the HIGHER of (a) the number of physical devices running the software and (b) the number of physical devices so connected. Each physical device is counted once; the fee for a device already paid for is not owed again. + +4. **Five-year tail.** A Group that meets the Large Enterprise threshold at any point in a calendar year is a Large Enterprise for that year and for the five following calendar years, regardless of its revenue or valuation in those years. + +5. **Payment.** Fees are payable to the licensor upon first deployment or, for devices added later, within 90 days of the device first running or connecting. Contact: morten@punnerud.net. A Large Enterprise must keep records sufficient to support its device count and provide a summary on reasonable request. + +## Distribution and Notices + +You must include a copy of this license, and keep this copyright notice, in all copies or substantial portions of the software, including modified copies and derivative works. You may not remove or obscure the license or the fee terms when distributing the software. + +## Scope + +This license applies to every version, commit, and artifact of the software published by the licensor, including versions published before this license text was added, to the fullest extent the licensor can so provide. + +## No Other Rights + +This license does not grant any trademark rights or any patent rights beyond those necessarily exercised by using the software as licensed. + +## Termination + +Your license ends immediately if you materially breach this license and do not cure the breach within 30 days of becoming aware of it. Unpaid fees survive termination. + +## Interpretation + +Any doubt or ambiguity in the interpretation of this license shall be resolved in favor of the licensor and this project. + +## Disclaimer + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 0de0792..cdc9df8 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,13 @@ create_app().run(port=5100) ## Licence -MIT. +[The mpedb License 1.0](LICENSE) — the same licence as +[mpedb](https://github.com/punnerud/mpedb) and [MPEqs](https://github.com/punnerud/MPEqs), +byte for byte. + +Free of charge for every person and every organization, with one exception: a group whose +revenue or valuation exceeds five billion dollars owes a one-time fee of seven US cents per +device. Not an OSI-approved licence. --- diff --git a/pyproject.toml b/pyproject.toml index ee7a702..4308c7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,18 +4,18 @@ build-backend = "hatchling.build" [project] name = "mpe-lkg" -version = "0.3.0" +version = "0.4.0" description = "Local Knowledge Graph: a local LLM reasons step by step, and the steps become a graph." readme = "README.md" requires-python = ">=3.10" -license = { text = "MIT" } +license = { file = "LICENSE" } authors = [{ name = "Morten Punnerud-Engelstad" }] keywords = ["llm", "ollama", "knowledge-graph", "embeddings", "reasoning", "visualization"] classifiers = [ "Development Status :: 4 - Beta", "Framework :: Flask", "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", + "License :: Other/Proprietary License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", diff --git a/src/mpe_lkg/__init__.py b/src/mpe_lkg/__init__.py index 08ed803..646272b 100644 --- a/src/mpe_lkg/__init__.py +++ b/src/mpe_lkg/__init__.py @@ -11,7 +11,7 @@ from __future__ import annotations -__version__ = "0.3.0" +__version__ = "0.4.0" __all__ = ["__version__", "create_app", "main", "health"]