An ORM and toolkit that builds on top of Benchling's platform to keep your schemas and downstream code dependencies in sync.
Project description
Liminal ORM
Liminal ORM1 is an open-source Python package that builds on Benchling's LIMS2 platform and provides a simple, code-first approach for synchronizing and managing your Benchling schemas. Check out the full documentation here!
Liminal provides an ORM framework using SQLAlchemy along with a schema migration service inspired by Alembic. This allows you to define your Benchling schemas in code and create a single source of truth that synchronizes between your upstream Benchling tenant(s) and downstream dependencies. By creating a standard interface and through using one-line CLI3 commands, Liminal enables a code-first approach for managing Benchling tenants and accessing Benchling data. With the schemas defined in code, you can also take advantage of the additional capabilities that the Liminal toolkit provides. This includes:
- The ability to run migrations to your Benchling tenant(s) through an easy to use CLI.
- One source of truth defined in code for your Benchling schema model that your many Benchling tenants can stay in sync with.
- Easy to implement validation rules to reflect business logic for all of your Benchling entities.
- Strongly typed queries for all your Benchling entities.
- CI/CD integration with GitHub Actions to ensure that your Benchling schemas and code are always in sync.
- And more based on community contributions/feedback :)
Benchling is an industry standard cloud platform for life sciences R&D. Liminal builds on top of Benchling's platform and assumes that you already have a Benchling tenant set up and have (or have access to) an admin user account. If not, learn more about getting started with Benchling here!
If you are a Benchling user, try out Liminal by following the Quick Start Guide! Reach out in the Discussions forum with any questions or to simply introduce yourself! If there is something blocking you from using Liminal or you're having trouble setting Liminal up, please share in Issues or reach out directly (contact information below). You can expect responses within 48 hours :)
Nirmit Damania is the creator and current maintainer of Liminal (I post Liminal updates to Discussions and my LinkedIn). Most importantly, you have the ability to influence the future of Liminal! Any feedback, positive or negative, is highly encouraged and will be used to steer the direction of Liminal. Refer to the Contributing guide to learn more about how you can contribute to Liminal.
⭐️ Leave a star on the repo to spread the word! If you or your organization use Liminal, please consider adding yourself or your organization to the Users list.
Table of Contents
Getting Started
Note: Liminal requires you to have (or have access to) an admin user account for your Benchling tenant. If you run into any issues, please reach out to us on the Discussions forum and we'll be happy to help!
Check out this Quick Start Guide to get you setup with Liminal!
Toolkit
With your schemas defined in code, you can now take advantage of the additional capabilities that the Liminal toolkit provides.
-
Entity validation: Easily create custom validation rules for your Benchling entities.
from liminal.validation import BenchlingValidator, BenchlingValidatorReport, BenchlingReportLevel from liminal.orm.base_model import BaseModel class CookTempValidator(BenchlingValidator): """Validates that a field value is a valid enum value for a Benchling entity""" def validate(self, entity: type[BaseModel]) -> BenchlingValidatorReport: valid = True message = None if entity.cook_time is not None and entity.cook_temp is None: valid = False message = "Cook temp is required if cook time is set" if entity.cook_time is None and entity.cook_temp is not None: valid = False message = "Cook time is required if cook temp is set" return self.create_report(valid, BenchlingReportLevel.MED, entity, message)
-
Strongly typed queries: Write type-safe queries using SQLAlchemy to access your Benchling entities.
with BenchlingSession(benchling_connection, with_db=True) as session: pizza = session.query(Pizza).filter(Pizza.name == "Margherita").first() print(pizza)
-
CI/CD integration: Use Liminal to automatically generate and apply your revision files to your Benchling tenant(s) as part of your CI/CD pipeline.
-
And more to come!
Mission
The democratization of software in Biotech is crucial. By building a community around complex, yet common, problems and creating open-source solutions, we can work together to tackle these challenges together and enable faster innovation in the industry. By breaking down the silos between private platforms, we can enable a more dynamic and open ecosystem. This was the motivation for Liminal's creation. Liminal's goal is to create an open-source software product that enables a standard, code-first approach to configuration and change management for LIMS systems. We started with Benchling, but the goal is to make Liminal the go-to solution for any LIMS system.
Community
We're excited to hear from you! Feel free to introduce yourself on the Liminal GitHub Discussions page
Please refer to CODE_OF_CONDUCT.md to learn more about how to interact with the community.
Please refer to GOVERNANCE.md to learn more about the project's governance structure.
Contributing
Contributions of any kind are welcome and encouraged! This ranges from feedback and feature requests all the way to code contributions. Please refer to CONTRIBUTING.md to learn how to contribute to Liminal!
License
Liminal ORM is distributed under the Apache License, Version 2.0.
Direct Contact
- Email: opensource@dynotx.com
- LinkedIn: Nirmit Damania
Acknowledgements
This project could not have been started without the support of Dyno Therapeutics and the help of the following people.
- Steve Northup: For being an incredibly supportive manager and mentor, making key technical contributions, and providing guidance on the project's direction.
- Joyce Samson: For being Liminal's first power user at Dyno Therapeutics, providing valuable feedback that informed the project's direction, and coming up with Liminal's name.
- David Levy-Booth: For providing leadership and guidance on releasing this as an open source software.
- The rest of the Dyno team...
Footnotes
ORM1: Object-Relational Mapper. An ORM is a piece of software designed to translate between the data representations used by databases and those used in object-oriented programming. In this case, Liminal provides an ORM layer built specifically for Benchling that allows for users to quickly and easily define Benchling entities in code. SQLAlchemy is the underlying ORM that Liminal uses to interact with your Benchling tenant(s) and is an open-source software that is an industry standard software.
LIMS2: Laboratory Information Management System. A LIMS is a piece of software that allows you to effectively manage samples and associated data. Benchling is an industry-leading LIMS software.
CLI3: Command Line Interface. A CLI is a piece of software that allows you to interact with a software program via the command line. Liminal provides a CLI that allows you to interact with your Liminal environment. This project uses Typer to construct the CLI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file liminal_orm-1.0.5.tar.gz
.
File metadata
- Download URL: liminal_orm-1.0.5.tar.gz
- Upload date:
- Size: 62.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.9.20 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae5c24427fe28f3a2057fe7797a1e53af10f457ebe6f3cc9afc27657b45eb537 |
|
MD5 | 752008ee4d65ddd51eb429ddbe85f1ae |
|
BLAKE2b-256 | 1f6744e993908a256606d03a8655aaff337f588ec043f9df9a4bd22cee6829b4 |
File details
Details for the file liminal_orm-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: liminal_orm-1.0.5-py3-none-any.whl
- Upload date:
- Size: 77.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.9.20 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 588447aa0c1e7d557bc0d9dd6309339d808e8a42528d87e5c29a9d58eeca8ab9 |
|
MD5 | f555f2277a02cd72253ea75e4eea86d7 |
|
BLAKE2b-256 | a4da1ae598daac51ee381595a1ddbaa99c110af5ebb6fe37fd743bdf1182917c |