ProkoptonML
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:
- Data ingestion, with checksums and validation
- Splitting and leakage checks
- Feature engineering
- Training and experiment tracking (MLflow), with a model registry
- Calibration and evaluation, with thresholds chosen by the evaluation
- Model cards
- 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.0"
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. Schema 3
configs are converted when read, and prokopton-ml migrate-config --write
rewrites them as schema 4, keeping their comments. Schemas 1 and 2 are no
longer read: rewrite them with prokopton-ml 0.2.0a7 first.
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.
The platform is not tied to sequences: examples/penguins/
is a small tabular app (Palmer Penguins) built only on the core's tabular
kinds (core.tabular-classifier, its stages and serving steps). CI runs it
end to end with prokopton.ml.bio removed; locally, pixi run penguins.
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.0, 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. A new product can start from the template repository, leehart3000/prokoptonml-product-template: the Penguins example as a product, with its CI, deploy and release workflows.
Repository layout
| Path | Contents |
|---|---|
src/prokopton/ml/ |
The generic platform: config, pipeline stages, training, evaluation, model cards, bundles, serving, command-line tool, and the tabular kinds (tabular/) |
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.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 |
|---|---|---|---|---|
| prokopton_ml-0.2.0.tar.gz | 141.9 kB | With provenance | Details for prokopton_ml-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prokopton_ml-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for prokopton_ml-0.2.0-py3-none-any.whl |
Total release size: 319.5 kB
Release files / prokopton_ml-0.2.0.tar.gz
| Download URL | prokopton_ml-0.2.0.tar.gz |
|---|---|
| Size | 141.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c9b3e538628625e194fa1c41219883f1fc7e43b640af0d920bf900d8dab8db0
|
|
BLAKE2b-256 checksum How to use checksums |
e59568a874a0c814b6bd5c1407b2190be49941e0c0571e3fb5c771573b608dc6
|
| 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 logRelease files / prokopton_ml-0.2.0-py3-none-any.whl
| Download URL | prokopton_ml-0.2.0-py3-none-any.whl |
|---|---|
| Size | 177.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1d1d8b8e4be4e36796bbaa6ff163c1e9b9ab6301b81f2391ea901fb223e5a50
|
|
BLAKE2b-256 checksum How to use checksums |
ed7f6dbeebb7dd3f11afe498e07c6c8617a72e76400410a71255c47a5d80b64f
|
| 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 logSecurity for prokopton-ml 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.
Attestation for prokopton_ml-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 16, 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.