Skip to main content

protee

English | Français

CI CodeQL Python License 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.

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.2.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.2.0
File Size Uploaded Provenance Actions
protee-0.2.0.tar.gz 272.3 kB With provenance Details for protee-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 567.5 kB

Release files / protee-0.2.0.tar.gz

Download URL protee-0.2.0.tar.gz
Size 272.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cd0c776fc2ea382b25fbf5be13003706ef34a4853aed0bd5840b5efb3840b678
BLAKE2b-256 checksum
How to use checksums
7cca0a268ff1520f2360a42e181b7f87a80916b179200fe2fe493f54206334ce
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.2.0-py3-none-any.whl

Download URL protee-0.2.0-py3-none-any.whl
Size 295.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48013649732dc3a2482b2df326e47e251aa18b98cbd43267f96e221df124fbe8
BLAKE2b-256 checksum
How to use checksums
5a900798a7da7edcd93b3795a3ef1053f110d169c10549ea8161dd7465dfa727
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.2.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.2.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