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.
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 and loops without dependency,
SVG and a page to explore offline 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]"
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).
Metadata
Release files for protee 0.1.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.1.0.tar.gz | 256.2 kB | With provenance | Details for protee-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protee-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for protee-0.1.0-py3-none-any.whl |
Total release size: 535.4 kB
Release files / protee-0.1.0.tar.gz
| Download URL | protee-0.1.0.tar.gz |
|---|---|
| Size | 256.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36d28069749444f12ea8f7b3f289d55c6440be3c29570dc87d1e4f17097fafd6
|
|
BLAKE2b-256 checksum How to use checksums |
4efa896a4b4ffbaf09766b781c7fd3d4398c762112fd6244a4adde6ec960cccb
|
| 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 22, 2026.
Transparency logRelease files / protee-0.1.0-py3-none-any.whl
| Download URL | protee-0.1.0-py3-none-any.whl |
|---|---|
| Size | 279.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39b1784c87b38e02818598f9d5f455bc9a78c45ae2ce7355299d366dd6ccb31b
|
|
BLAKE2b-256 checksum How to use checksums |
569556c5132d2b4d5093836af36816587a745b6f8d4737dc1b3dc282431a47d9
|
| 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 22, 2026.
Transparency logSecurity for protee 0.1.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.1.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 22, 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.