Isabl CLI
Terms of Use: Academic Research
isabl_cli is a command line client and SDK for the Isabl Platform infrastructure.
🧬 Isabl Platform
-
Isabl is a platform for the integration, management, and processing of individual-centric multimodal data. Welcome to the Isabl Documentation!
-
Isabl is a plug-and-play data science framework designed to support the processing of multimodal patient-centric data. Have questions? Ask here.
-
Isabl has been developed by the Elli Papaemmanuil's Lab at Memorial Sloan Kettering Cancer Center, and it's currently used by multiple scientific groups and contributors.
-
Learn more: Isabl documentation.
📓 Publication
Medina-Martínez, J.S., Arango-Ossa, J.E., Levine, M.F. et al. Isabl Platform, a digital biobank for processing multimodal patient data. BMC Bioinformatics 21, 549 (2020).
https://doi.org/10.1186/s12859-020-03879-7
Installation
pip install isabl_cli
Development Setup
Prerequisites
- Python 3.6 or higher
- Docker and Docker Compose (for running integration tests)
- Git (for cloning the API repository during tests)
Setup Steps
-
Clone the repository:
git clone https://github.com/papaemmelab/isabl_cli.git cd isabl_cli
-
Install the package in editable mode with test dependencies:
pip install -e .[test]
This installs the package in development mode along with all testing dependencies (pytest, coverage, black, etc.).
-
Verify the installation:
isabl --help
Testing
The test suite can be run in two ways:
Running Tests via Script (Recommended)
The test script (./tests/test-with-compose.sh) automatically clones the isabl_api repository, starts the API and database through Docker containers, then executes the test suite using pytest with coverage reporting.
Run the full test suite:
./tests/test-with-compose.sh
To skip the build step (faster for subsequent runs):
./tests/test-with-compose.sh --skip-build
Note: The test script requires the API to be running. It will clone the isabl_api repository into a sibling api directory if it doesn't exist.
Running Tests Directly
The tests create, change and delete records and replace client settings, so only run them against a throwaway local API that you started for them. Three things stop them reaching any other API, whatever ISABL_API_URL your shell exports:
- pytest.ini sets ISABL_API_URL to http://localhost:8000/api/v1/.
- tests/conftest.py refuses to start, and refuses each test, if the URL isn't localhost.
- isabl_cli itself refuses to write to any API other than localhost while pytest is loaded. This applies to every test suite that uses isabl_cli, not only this one.
To run the tests against a disposable remote test server, change ISABL_API_URL in pytest.ini and set ISABL_ALLOW_TEST_WRITES_TO to the server's URL.
If you have a local Isabl API instance running (e.g., via docker compose up -d in the isabl_api repository), you can run pytest commands directly:
# Set required environment variables
export ISABL_CLIENT_ID=test-cli-client
export ISABL_API_URL=http://localhost:8000/api/v1/
# Run tests with coverage
pytest --cov=isabl_cli tests/
This allows for faster iteration during development without rebuilding containers.
Running Specific Tests
You can run specific test files or test functions:
# Run a specific test file
pytest tests/test_api.py
# Run a specific test function
pytest tests/test_api.py::test_function_name
# Run with verbose output
pytest -v tests/
Usage
# Set up your environment variables
export ISABL_API_URL="http://<your-isabl-instance>/api/v1/"
export CLIENT_ID="<your-client-id>"
# Authenticate and cache credentials
isabl login
# See all available commands
isabl --help
Applications from installed packages
Instead of listing every application in INSTALLED_APPLICATIONS, a package can provide its applications through the isabl_cli.applications entry point group:
# setup.py of your applications package
entry_points={"isabl_cli.applications": ["my_apps = my_apps.isabl:get_isabl_info"]}
# my_apps/isabl.py
from isabl_cli.discovery import find_applications
def get_isabl_info():
return {"applications": find_applications("my_apps.apps", required=("NAME", "VERSION", "ASSEMBLY"))}
find_applications imports the package and returns the AbstractApplication subclasses defined in it, skipping classes with _PRIVATE = True. To keep isabl --help fast, a provider can instead return metadata dictionaries from isabl_cli.discovery.find_application_specs (e.g. saved to a JSON file when apps change); those applications are listed from the metadata and only imported when their command runs.
Then enable discovery in the client settings:
| Setting | Default | Description |
|---|---|---|
DISCOVER_APPLICATIONS |
False |
Add applications from installed providers to the CLI. |
EXCLUDED_APPLICATIONS |
[] |
Glob patterns on import strings or command names to hide, e.g. ["my_apps.apps.legacy.*", "bwa-mem-0.0.*"]. |
INSTALLED_APPLICATIONS keeps working and takes precedence; an application found in both places is added once.
CI/CD Setup
The GitHub Actions workflow requires the following secrets to be configured in the repository settings:
Required Secrets
GH_PAT: GitHub Personal Access Token for authenticating with GitHub (used to clone theisabl_apirepository during tests)DOCKER_USERNAME: Docker Hub username for the papaemmelab organizationDOCKER_PASSWORD: Docker Hub password or access token for the papaemmelab organizationCODECOV_TOKEN: Codecov token for the papaemmelab/isabl_cli repository
Configure these secrets in your GitHub repository under Settings → Secrets and variables → Actions.
Contributing
Contributions are welcome and greatly appreciated, check our contributing guidelines!
License
isabl is free for academic and research use. For commercial use, please contact us.
Credits
Isabl was created at Elli Papaemmanuil's lab.
Metadata
Release files for isabl-cli 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| isabl_cli-2.1.1.tar.gz | 103.7 kB | With provenance | Details for isabl_cli-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| isabl_cli-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for isabl_cli-2.1.1-py3-none-any.whl |
Total release size: 220.7 kB
Release files / isabl_cli-2.1.1.tar.gz
| Download URL | isabl_cli-2.1.1.tar.gz |
|---|---|
| Size | 103.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fd5e33ce833eaa1ad92f7ac424c489131850beea3295b35c8a955ad68727356
|
|
BLAKE2b-256 checksum How to use checksums |
844b35641103b7a7b19872168d4a6ecd8c6c87d5e3207f01b82e6f77a0abbd00
|
| 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 26, 2026.
Transparency logRelease files / isabl_cli-2.1.1-py3-none-any.whl
| Download URL | isabl_cli-2.1.1-py3-none-any.whl |
|---|---|
| Size | 116.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1be20dc549e19360d14e1bb2e34580f2566e853584a1421b8c63ed42f902f5cc
|
|
BLAKE2b-256 checksum How to use checksums |
bc89a8a69d2bb09ae00b51c5c125992847c433d7562e1bf510d0073f15c956d8
|
| 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 26, 2026.
Transparency logSecurity for isabl-cli 2.1.1
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.
Attestation for isabl_cli-2.1.1.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 26, 2026.
Transparency logA 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.