Skip to main content

Python API client for MinKNOW

This package provides a Python client to access the MinKNOW APIs. You will need a compatible version of MinKNOW already installed to make use of this project.

To check for compatibility, look at the version of MinKNOW Core. The first two components of the MinKNOW Core version should match the first two components of the minknow_api version. For example, minknow_api 5.4.0 is compatible with any 5.4.x version of MinKNOW Core (which is part of the 22.12 release of MinKNOW).

See the main README in the git repository for more information about the MinKNOW API.

Using

The recommended way to get it is from PyPI using pip, but it can also be built from source (see BUILD.md in the top level of the git repository).

# Install minknow_api
> pip install minknow_api

# Verify API is installed correctly:
> python -m minknow_api.examples.list_sequencing_positions --host localhost

# Possible output if running MinKNOW locally:
#   Available sequencing positions on localhost:9502:
#   MN12345: running
#     secure: 8000

The package contains plenty of documentation in its docstrings, although for an overview of the MinKNOW APIs themselves you may prefer to read the API description files - see below for further discussion of these files. There are also examples in the minknow_api.examples submodule that show how to perform some common tasks.

© 2023 Oxford Nanopore Technologies PLC.

API Specifications for MinKNOW is distributed under the Terms and Conditions of the Nanopore Community.

Troubleshooting

Bad metadata key

If you see the following error when connecting to the local machine:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAUTHENTICATED
        details = "Bad metadata key"

you can try setting the MINKNOW_API_USE_LOCAL_TOKEN environment variable to 1. Note that you will need to have MinKNOW's local guest mode enabled for this to work (it is enabled by default, but the setting can be changed via Mooneye).

Invalid local auth token

If you see the following error when connecting to a remote machine:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAUTHENTICATED
        details = "Invalid local auth token"

you can try setting the MINKNOW_API_USE_LOCAL_TOKEN environment variable to 0.

MissingMinknowSSlCertError

If you get a MissingMinknowSSlCertError exception, try setting the MINKNOW_TRUSTED_CA environment variable. This should be the path to the <data_dir>/rpc-certs/minknow/ca.crt file, where <data_dir> maps to C:\\data on Windows and /data on Ubuntu and MacOS platforms. You should use a copy of the file from the same version of MinKNOW as the one you are attempting to connect to.

Metadata

Release files for minknow-api 6.10.5

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

Source distribution (sdist)

Source distribution for minknow-api 6.10.5
File Size Uploaded Provenance Actions
minknow_api-6.10.5.tar.gz 391.4 kB With provenance Details for minknow_api-6.10.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for minknow-api 6.10.5
File Interpreter ABI Platform Actions
minknow_api-6.10.5-py2.py3-none-any.whl Python 2, Python 3 none any Details for minknow_api-6.10.5-py2.py3-none-any.whl

Total release size: 812.9 kB

Release files / minknow_api-6.10.5.tar.gz

Download URL minknow_api-6.10.5.tar.gz
Size 391.4 kB
Tags Source
SHA-256 checksum
How to use checksums
027d7d485c1925f847aa9716fd4d9b560db953f9678ca0fc5307f2dfc47da5e3
BLAKE2b-256 checksum
How to use checksums
424a6102ea37b3b2802aee7dd4863e111f4439dd67f16dd4b4cb8c59a99e9dfa
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 / minknow_api-6.10.5-py2.py3-none-any.whl

Download URL minknow_api-6.10.5-py2.py3-none-any.whl
Size 421.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0955f8da2ad315e6bd5eba0ba777d6a83b96b62e0dfc14f8c80d000ea2f33e27
BLAKE2b-256 checksum
How to use checksums
90c9f0fd4fa238df65c6f3bc136aa070409a9fce97d4a7116f8e0c796db7bbcd
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 minknow-api 6.10.5

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 minknow_api-6.10.5.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