Skip to main content

MinKNOW RPC API bindings

Project description

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.

Licence and Copyright

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minknow_api-6.10.1.tar.gz (397.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minknow_api-6.10.1-py2.py3-none-any.whl (429.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file minknow_api-6.10.1.tar.gz.

File metadata

  • Download URL: minknow_api-6.10.1.tar.gz
  • Upload date:
  • Size: 397.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for minknow_api-6.10.1.tar.gz
Algorithm Hash digest
SHA256 2575fa10153ada023dcf47e78256cd8ed58629646efd0f2c210d2ad5ee208816
MD5 651fc268be06549373816616d158eb63
BLAKE2b-256 25364018947b4f3e569f7d88802b6a692b8135d1f17ae39b804aad65868deeb9

See more details on using hashes here.

File details

Details for the file minknow_api-6.10.1-py2.py3-none-any.whl.

File metadata

  • Download URL: minknow_api-6.10.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 429.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for minknow_api-6.10.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ec3b2ccfe19d57d598d542d4b58be6522842f698e296bddaa8de7ba88ecaed99
MD5 105d4d6a9fb6e4a13b30435cae82e579
BLAKE2b-256 8bf5bf4bdcf96e75ef41329c744bb44370bb3b05bee06dc2a7dfebb4c55df7b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page