Skip to main content

protee

English | Français

CI CodeQL Python License DOI uv Ruff Checked with mypy Conventional Commits

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().

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:

  1. source: the document, its edition and paragraph, or the client's statement;
  2. normalized requirement: an identified statement, in English and in other languages if needed;
  3. constraint pattern: a generic, named form (arc admissibility, speed cap, occurrence bounds…), without values;
  4. values: from value sets, each value with its source, edition and precedence; missing data stay unknown, never presumed compatible;
  5. named method: chosen explicitly by the caller;
  6. 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); 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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for protee 0.3.0
File Size Uploaded Provenance Actions
protee-0.3.0.tar.gz 298.4 kB With provenance Details for protee-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for protee 0.3.0
File Interpreter ABI Platform Actions
protee-0.3.0-py3-none-any.whl Python 3 none any Details for protee-0.3.0-py3-none-any.whl

Total release size: 622.6 kB

Release files / protee-0.3.0.tar.gz

Download URL protee-0.3.0.tar.gz
Size 298.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6932855b1076cc7256f1aeb5776dc442640e1c8e420709906db6f5c9bcab0179
BLAKE2b-256 checksum
How to use checksums
f1fc6b287dd273fc16f342259660b22480418a826225b4ced5ce2a9ecb721924
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 log

Release files / protee-0.3.0-py3-none-any.whl

Download URL protee-0.3.0-py3-none-any.whl
Size 324.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
629524af2381ac5b8b89990d3074599fd07017555bbed2bababc9e5932dab4eb
BLAKE2b-256 checksum
How to use checksums
7aed89b4d390a6b9176bd4a2d0b0032792f1f14c48ac9a9e5849463d948209cd
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 log

Security for protee 0.3.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.

Select from 2 files

Attestation for protee-0.3.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page