Skip to main content

biocompute

Latch SDK

The Latch SDK is a framework to build and deploy bioinformatics workflows, and dynamically generate associated interfaces, with a handful of python functions.

It is built directly on Flyte for all the benefits that the Kubernetes-native workflow orchestration framework provides - task-level type-safety and containerization, independent task scheduling, and heterogeneous & highly scalable computing infrastructure.

Slack Community • Docs • Installation • Quickstart • Latch • Latch Verified

side-by-side

Workflows developed with the SDK feature:

  • Instant no-code interfaces for accessibility and publication
  • First class static typing
  • Containerization + versioning of every registered change
  • Reliable + scalable managed cloud infrastructure
  • Single line definition of arbitrary resource requirements (eg. CPU, GPU) for serverless execution

The Latch SDK is a framework to build workflows. A collection of existing and maintained workflows for common biological assays can be found at Latch Verified.

Quickstart

Getting your hands dirty with SDK is the best way to understand how it works. Run the following three commands in your terminal to register your first workflow to LatchBio.

Prerequisite: ensure that docker is present and running on your machine. (Install docker here if you don't already have it installed.)

First, install latch through pip .

$ python3 -m pip install latch

Then, create some boilerplate code for your new workflow.

$ latch init testworkflow

Finally register the boilerplate code to LatchBio.

$ latch register testworkflow

This might take 3-10 minutes depending on your network connection. (Subsequent registers will complete in seconds by reusing the image layers from this initial register.) The registration process will:

  • Build a docker image containing your workflow code
  • Serialize your code and register it with your LatchBio account
  • Push your docker image to a managed container registry

When registration has completed, you should be able to navigate here and see your new workflow in your account.

If you are having issues with registration or have general questions, please file an issue on github.


Installation

The SDK is distributed on pip. Install in a fresh virtual environment for best behavior.

Virtualenvwrapper is recommended.

python3 -m pip install latch

Note that a local installation of docker is required to register workflows.


Examples

Latch Verified features list of well-curated workflows developed by the Latch team.

We'll maintain a growing list of well documented examples developed by our community members here. Please open a pull request to feature your own:

Gene Editing

Phylogenetics

Single-cell Analysis

Protein Engineering

Metadata

Release files for latch 2.78.0

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

Source distribution (sdist)

Source distribution for latch 2.78.0
File Size Uploaded Provenance Actions
latch-2.78.0.tar.gz 236.3 kB Without provenance Details for latch-2.78.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for latch 2.78.0
File Interpreter ABI Platform Actions
latch-2.78.0-py3-none-any.whl Python 3 none any Details for latch-2.78.0-py3-none-any.whl

Total release size: 550.8 kB

Release files / latch-2.78.0.tar.gz

Download URL latch-2.78.0.tar.gz
Size 236.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bcdb2614c065c2c88910c1ed32d391ef7d6b97fdb2f0ad1a4013d0f41374f439
BLAKE2b-256 checksum
How to use checksums
16116231e8d5fe7d556f65a45b7231e19eba99cd50ce98a4f6aab58a96036fc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / latch-2.78.0-py3-none-any.whl

Download URL latch-2.78.0-py3-none-any.whl
Size 314.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6971a26cb2b1f3173fe1ac7e0b5ab9a28d87524f75a15982dc922a2a63ecdf7b
BLAKE2b-256 checksum
How to use checksums
06062d6f0d333e0e06ccdacbb4c9219d01f62bfba16d1dc6f011dca6cbfa8731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for latch 2.78.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

2.78.0 This release

2 release files No provenance

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