protee
English | Français
Proteus: graph and operations research algorithms whose methods are chosen explicitly, compared, and backed by certificates and diagnostics.
Pure Python package, depending only on NumPy and SciPy (wheels for every supported platform); it works on an offline workstation (no online solver, service or engine).
Pre-alpha: a first set of graph and flow algorithms is available (
protee.graph,protee.paths,protee.routes,protee.flow,protee.structure,protee.transforms,protee.io), with requirements turned into traceable constraints on graphs (protee.constraints); their API is provisional until version 1.0, and the model of life-cycle profiles is being designed.
Every method returns the same result model
(protee.results): a status, the certificate it calls for (a violated
cut, an improving cycle, the nodes a search reached), the guarantee of
the method, deterministic work counters, the version and a fingerprint
of the inputs. Each module lists its methods with methods().
The description of a subject gives values, never constraints: a phase derive turns the technical sheets of members, and groups of members with their counts, into the values that requirements compare with the arcs (an envelope, a class by thresholds, a value selected by that class, the length of a column), each with its rule, the member that fixes it and the source of every input; an unknown value is counted, and stays unknown unless the caller assumes one, declared.
Typed graphs are exchanged with other projects in the node-link format
protee-node-link/0 (protee.io), and
drawn by protee.viz: selection, groups, loops, contraction, colour by
vocabulary and a matrix view (N² chart) without dependency; SVG figures,
light or dark, with their legend and a footer, and a page to explore
offline (tooltips, formulas, the matrix under the graph), with the
optional extra viz (see the gallery).
Why protee
Many graph problems start from requirements written by people: a client's specification, a regulation, a doctrine, a standard. "The mass of the vehicle stays within the load limit of each bridge", or "this situation occurs at most twice in the life of the equipment", becomes a constraint on a graph, and a method returns a route or a flow. To trust that result, each requirement must be traceable from its source to its proof.
protee implements this chain of six links:
- source: the document, its edition and paragraph, or the client's statement;
- normalized requirement: an identified statement, in English and in other languages if needed;
- constraint pattern: a generic, named form (arc admissibility, speed cap, occurrence bounds…), without values;
- values: from value sets, each value with its source, edition and precedence; missing data stay unknown, never presumed compatible;
- named method: chosen explicitly by the caller;
- proof: each requirement verified on the result, independently of
the method (
applied,partial,not_applied,no_data,not_applicable), with its impact (the result with and without it) and the provenance of the result.
Each link has precedents; we did not find the complete chain in the sources we reviewed. Two reference applications guide and validate it: life-cycle profiles (the graph of the situations an equipment goes through, from manufacture to use) and route planning on large road networks. protee provides a value set taken from a public text, for testing and illustration.
Installation
From PyPI, with Python 3.12 or later:
pip install protee
The drawing in SVG and in a page to explore (protee.viz.render_svg,
protee.viz.render_html) needs the optional extra viz:
pip install "protee[viz]"
Converting the inputs of a derivation into the unit of their parameter,
and showing values readably (protee.constraints.readable), need the
optional extra units:
pip install "protee[units]"
To work on protee itself, see the contributing guide.
Contributing
Contributions are welcome: see the contributing guide and the rules shared by contributors and coding agents in AGENTS.md.
License
BSD-3-Clause. The page written by protee.viz.render_html
embeds cytoscape.js and cytoscape-expand-collapse, under the MIT licence
(notice); the embedded value set reuses a
public text under the Licence Ouverte 2.0,
credited in its notice.
How protee runs, is developed and published, and what it ships: security, supply chain and compliance.
Metadata
Release files for protee 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protee-0.4.0.tar.gz | 355.1 kB | With provenance | Details for protee-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protee-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for protee-0.4.0-py3-none-any.whl |
Total release size: 741.8 kB
Release files / protee-0.4.0.tar.gz
| Download URL | protee-0.4.0.tar.gz |
|---|---|
| Size | 355.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfe4e4a815754b5ed1624a82ca16d80e90dda58bf64b332e7916ef85a126e612
|
|
BLAKE2b-256 checksum How to use checksums |
5f7cdfb684aa3b7ef4ca512b3c805b1115f253629643fb83fd0b4221b94a9908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / protee-0.4.0-py3-none-any.whl
| Download URL | protee-0.4.0-py3-none-any.whl |
|---|---|
| Size | 386.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6733b7485561505ce22ae26c62c40c9e6adfdcc1428007189031a66aa6389b39
|
|
BLAKE2b-256 checksum How to use checksums |
0661a9bcb829a7aa210f2f424fef00830433a8dfebfc2e7cad44760ad25d04a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for protee 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for protee-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.