Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ProkoptonML

CI PyPI

ProkoptonML is an end-to-end MLOps platform: a Python package and command-line tool for turning data into evaluated, documented and deployable models, used by separate products that pin it from PyPI.

It covers the lifecycle:

  1. Data ingestion, with checksums and validation
  2. Splitting and leakage checks
  3. Feature engineering
  4. Training and experiment tracking (MLflow), with a model registry
  5. Calibration and evaluation, with thresholds chosen by the evaluation
  6. Model cards
  7. Serving bundles (models, reference data, config, pinned versions, checksums) and a FastAPI service that serves them

Each product is defined by a configuration file and runs the platform's stages on it; the product owns its data, decisions, website and deployment.

Package

Published as prokopton-ml and imported as prokopton.ml, part of the prokopton namespace; it builds on the prokopton core package (prokopton.core).

pip install "prokopton-ml[serve,bio]==0.2.0a6"
prokopton-ml stages                  # an app's pipeline, and when each stage ran
prokopton-ml run router-train        # run stages (or --all, or --from STAGE)
prokopton-ml identify --input x.fa   # identify one sequence
prokopton-ml check bundle tests/known-answers   # known-answer checks

A known-answer check is a request (<name>.json) and the start of the answer it must give (<name>.expected: the answer's text, or declined: <reason>). prokopton-ml check runs every check against a serving bundle, or with --url against a running service (its API key from PROKOPTON_API_KEY), and fails if any answer differs.

An app is described by prokopton.toml (found in the current folder or a parent folder): its models, and its pipeline as named stages, each with a kind such as bio.ingest or core.bundle. A package can add stage kinds with an entry point in the prokopton.ml.stages group: a function that returns a list of prokopton.ml.stages.StageKind.

Answers are built by the app's serving steps ([serving]), each also with a kind (such as bio.sequence-input or bio.specialist), and served at POST /<endpoint> with the app's own request, result and description. Packages can add serving step kinds (prokopton.ml.serving_steps) and model kinds (prokopton.ml.model_kinds) in the same way.

The config itself (schema 4) holds only what every app has: its name, data release ([data]), models folder ([paths]), models, pipeline, serving steps and MLflow settings. Each kind's own settings, and app-wide sections such as [bio] for sequence apps, are declared by the package that reads them (prokopton.ml.settings) and checked when the config is read. Older configs are converted when read; prokopton-ml migrate-config --write rewrites them, keeping their comments.

import prokopton.ml

Releases are made with pixi run release vVERSION (prokopton-ml release), which checks that the version matches pyproject.toml and that the commit is new work on main, then tags it and follows the Release workflow. The workflow checks the same and publishes to TestPyPI; when it waits for approval to publish to PyPI (with Trusted Publishing), the command offers to approve it, then checks that PyPI lists the new version. Products release with the same command, with --check-url to check that their live page shows the new version.

A product deploys its API to Google Cloud Run with the reusable workflow deploy-cloud-run.yml, pinned to a platform release's commit (@<commit> # v0.2.0a5, as for actions). It builds the product's image (from templates/Dockerfile) with its serving bundle, runs the product's known-answer checks against the image with prokopton-ml check, then pushes and deploys it.

Products built with ProkoptonML

Product Domain Repository Status
DNAbarcode.org Identifying animals from COI DNA barcodes; species-level for mosquitoes leehart3000/dnabarcode Live
pepbarcode.org Peptide barcoding Planned

Each product has its own repository and its own cloud project, and pins an exact platform version.

Repository layout

Path Contents
src/prokopton/ml/ The generic platform: pipeline stages, training, evaluation, model cards, bundles, serving, command-line tool
src/prokopton/ml/bio/ Sequence-specific code: MIDORI2 and RefSeq sources, FASTA, k-mer features, specialists, sequence input checks (the bio extra)
tests/ Tests (100% coverage), with frozen fixtures in tests/fixtures/
.github/workflows/ CI, secret scanning, lockfile updates and releases to PyPI

Working on it

pixi install
pixi run check    # format, lint, type-check, test

What's next: ROADMAP.md.

Licence

Copyright (C) 2026 Lee Hart

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 only.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for details.

SPDX-License-Identifier: AGPL-3.0-only

Data and trained models built with the platform belong to each product and are licensed there.

Metadata

Release files for prokopton-ml 0.2.0a6

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

Source distribution (sdist)

Source distribution for prokopton-ml 0.2.0a6
File Size Uploaded Provenance Actions
prokopton_ml-0.2.0a6.tar.gz 135.0 kB With provenance Details for prokopton_ml-0.2.0a6.tar.gz

Built distribution (wheel)

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

Total release size: 305.5 kB

Release files / prokopton_ml-0.2.0a6.tar.gz

Download URL prokopton_ml-0.2.0a6.tar.gz
Size 135.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ba6f22dab357a8d27dda96d05c361dcc3f9a3a41c80109c95588d911b41841b6
BLAKE2b-256 checksum
How to use checksums
6ecd4fc9ffed74e3c78646e54c7cf84b6360f4a5deabc282be66a3ff7bf019a7
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 16, 2026.

Transparency log

Release files / prokopton_ml-0.2.0a6-py3-none-any.whl

Download URL prokopton_ml-0.2.0a6-py3-none-any.whl
Size 170.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5942d91061df7e14f860ca04fe6ba073d5cd36404fbdba7337f01447ddfc60ee
BLAKE2b-256 checksum
How to use checksums
c941498fafefc3563d8b6d81e8f59aa10f014b90fecda6c56e092cedb8cd084c
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 16, 2026.

Transparency log

Security for prokopton-ml 0.2.0a6

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 prokopton_ml-0.2.0a6.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 16, 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