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

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.3
File Size Uploaded
minknow_api-6.10.3.tar.gz 390.9 kB Details

Built distribution (wheel)

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

Total release size: 812.0 kB

Release files / minknow_api-6.10.3.tar.gz

Download URL minknow_api-6.10.3.tar.gz
Size 390.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dc1293193d8471c42f6cda558b8833429d20b570a3fb4927c11d062487c55ad4
BLAKE2b-256 checksum
How to use checksums
9f95c9654394f68a7603a64003b29966a7fb9cc4a2466d5c1cd70a1e9de3c9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / minknow_api-6.10.3-py2.py3-none-any.whl

Download URL minknow_api-6.10.3-py2.py3-none-any.whl
Size 421.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b29ba93728308738070f3778d4597bbf0dbef86afbd1e24bfadd3c4288135c95
BLAKE2b-256 checksum
How to use checksums
66a71cd92de5ff37384c00cc047cd4caa62dee3d8476b5e702a7fa3bfe290537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

6.10.3 This release

2 release files

6.10.1

2 release files

6.8.3

2 release files

6.5.2

2 release files

6.4.3

2 release files

6.2.1

2 release files

6.0.4

2 release files

5.9.5

2 release files

5.9.1

2 release files

5.8.1

2 release files

5.7.2

2 release files

5.5.2

2 release files

5.4.0

2 release files

5.3.0

2 release files

5.2.0

2 release files

5.0.0

2 release files

4.5.0

2 release files

4.4.0

2 release files

4.3.1

2 release files

4.2.4

1 release file

4.2.3

1 release file

4.2.2

1 release file

4.1.5

1 release file

4.1.2

1 release file

4.0.4

1 release file

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