Om Python SDK (omtx)
Official Python SDK for the Om API.
The SDK talks to the public Om API /v2/* surface for Om-owned workflows and
to RCSB public file URLs for exact PDB structure downloads. It covers:
- Diligence workflows and job polling
- ZenCloud scientific image contracts, reservations, invocations and outputs through
client.zencloud - Hosted LULA-1 and LULA-2 protein-sequence plus SMILES scoring
- Artifact upload for ZenCloud inputs and other supported jobs
- Entitlement-scoped dataset catalog, shard exports, and Polars-backed
OmDataloaders - Om Accessible Space molecule availability, quote, Wallet Credits order, and order status helpers
- Public RCSB PDB/mmCIF structure download helpers
- Health and Wallet Credits helpers
Public docs: https://omtx.ai/docs
Installation
pip install omtx
Compatibility
For best compatibility:
- Linux: modern Ubuntu on x86_64 or arm64
- macOS: Apple Silicon with a native
arm64Python interpreter - macOS Python distribution: Miniforge or Mambaforge recommended
The dataframe helpers in omtx use polars:
load_binders(...)load_nonbinders(...)load_data(...)
If you are on Apple Silicon, use a native arm64 shell and Python. Avoid
Rosetta / x86_64 Python for dataframe-backed workflows.
If you are on older x86_64 hardware, or if the default polars runtime fails
with CPU-feature errors, install the compatibility runtime:
pip install "polars[rtcompat]"
Or install both in one step:
pip install omtx "polars[rtcompat]"
JSON-based SDK methods may still work without rtcompat, but dataframe helpers
are not guaranteed on older x86_64 CPUs unless the compatibility runtime is
installed.
Setup
export OMTX_API_KEY="your-api-key"
The SDK targets https://api.omtx.ai.
Quick Start
from omtx import OmClient
with OmClient() as client:
print(client.status())
job = client.diligence.deep_diligence(
query="CRISPR applications in cancer therapy",
preset="quick",
)
result = client.jobs.wait(
job["job_id"],
result_endpoint="/v2/jobs/deep-diligence/{job_id}",
)
print(result.get("result", {}).get("total_claims"))
ZenCloud Quick Start
from omtx import OmClient
with OmClient() as client:
catalog = client.zencloud.describe()
print(catalog) # Review the selected image contract and reservation price.
Stage inputs with client.artifacts before reserving time. After review,
client.zencloud.start(image=..., reservation_minutes=..., idempotency_key=...)
returns a session. Once ready, client.zencloud.run(session_id=..., parameters=..., files=..., idempotency_key=...) runs the pinned image. Each files entry contains
artifact_id, a files/... path and optional media_type; use the image's exact
parameter schema. client.zencloud.get(session_id=..., invocation_id=...) reads
status and the output manifest. client.zencloud.read_output(session_id=..., invocation_id=..., output_path=...) returns one complete text or JSON file from
that manifest: it reads large files in pages where the status shows
inline_output_read.paged_reads, and checks the assembled file against its SHA-256.
When a session keeps results on its VM, you can name a file by its manifest
artifact_id instead, and client.zencloud.read_binary_output(...) returns one
small binary file when the status lists inline_output_read.binary_max_bytes. For
files these reads do not support, use output_artifact.download_url when the status
provides it.
Create and persist one operation key in your calling application for each intended
reservation or invocation. Reuse that key and identical inputs after an uncertain
response; do not automatically create replacement reservations. Describe and get
are read-only. The CLI exposes the same actions under omtx zencloud.
New Hub launches are retired. client.hub.catalog() supplies migration guidance;
client.hub.recover(job_type=..., payload=..., idempotency_key=...) recovers an
already accepted operation using its original key and payload. Existing jobs and
downloads remain available through client.jobs. BindCraft's ZenCloud image name
is bindcraft2; Hub payloads are not ZenCloud invocation parameters.
Hosted LULA Scoring
from omtx import OmClient
with OmClient() as client:
job = client.lula2.score(
protein_sequence="MEEPQSDPSV",
smiles=["CCO", "c1ccccc1"],
)
print(job["status"], job["job_ids"])
Hosted client.lula1.score(...) and client.lula2.score(...) submit async
LULA scoring jobs for explicit SMILES or fixed-price Om Accessible Space tiers.
For Om space scoring, pass source="om", a wallet-credit tier, and n. The
SDK does not expose mode; LULA-1 and LULA-2 are separate product namespaces.
Hub LULA launches are inactive. Use client.lula1.score(...) and
client.lula2.score(...) for hosted scoring.
with OmClient() as client:
job = client.lula2.score(
protein_sequence=sequence,
source="om",
tier=50,
n=100000,
)
print(job["batch_id"], job["job_count"], job["status"])
Hosted score calls return a launch envelope with batch_id, job_ids,
job_count, total_molecules, and status. Completed LULA score records
include score, rank, and top_percentile_in_batch. score is a bounded
0-1 model score intended for ranking and enrichment, not a calibrated binding
probability. Rank and percentile are numeric values computed
within the submitted batch.
Open Pipeline Discovery Challenges
from omtx import OmClient
challenge_id = "11111111-1111-4111-8111-111111111111"
with OmClient() as client:
challenge = client.discovery_challenges.get(challenge_id=challenge_id)
job = client.lula2.score(
protein_sequence=challenge["protein_sequence"],
source="om",
tier=50,
n=100000,
idempotency_key="stat6-score-batch-001",
)
selected_smiles = ["CCO", "c1ccccc1"]
client.discovery_challenges.validate(
challenge_id=challenge_id,
smiles=selected_smiles,
idempotency_key="stat6-validate-batch-001",
)
submission = client.discovery_challenges.submit(
challenge_id=challenge_id,
smiles=selected_smiles,
accept_qualified_binder_data_license=True,
idempotency_key="stat6-submit-batch-001",
)
print(job["job_ids"])
print(submission)
Candidates may be selected with LULA, local open weights, or another model. The
challenge API accepts SMILES and resolves them against its pinned om_50
release before charging the published Wallet Credit price.
For reviewed LULA-2 residue-map access, supply the structure produced by your completed ZenCloud invocation. The SDK launches hosted LULA-2 attention and renders the overlay; it does not launch an additional structure job or reserve capacity:
with OmClient() as client:
proof = client.lula2.residue_map(
protein_sequence=sequence,
smiles="CCO",
structure_path="openfold3-output.cif",
output_dir="hotspots",
)
print(proof["html_path"], proof["lula2_residue_map_job_id"])
The caller must match the sequence, chain and residue mapping to the supplied
structure. The SDK does not certify their equivalence or dock the ligand.
Residue maps are ligand-conditioned attention rankings, not calibrated contacts.
Missing structure input fails before submitting the hosted LULA job.
local_model=True retains the existing local OpenFold3 and LULA workflow.
Local LULA Open-Weight Scoring
Install the optional local scorer only when you want to run public LULA weights on your own machine:
pip install "omtx[lula]>=2.0.20"
hf auth login
omtx lula download --model lula1.1
omtx lula verify
Model cards, weights, licenses, and notebooks:
huggingface.co/omtx/lula-1,
huggingface.co/omtx/lula-1.1, and
huggingface.co/omtx/lula-2.
Cookbooks and Colab notebooks:
LULA Score To Order,
Om Accessible Space To Order, and
Explicit SMILES.
LULA open-weight releases are public gated on Hugging Face. By downloading,
accessing, or using LULA weights, you agree to the applicable
Om LULA Community License 1.3.
Commercial use requires a separate Om commercial license; email dmc@omtx.ai
for commercial licensing.
This includes commercial hosted inference, paid API/SaaS access, resale, paid
support/deployment, bundling model access into a paid product, and competing
model services.
Use --model lula1, --model lula1.1, or --model lula2. In Python, pass the
same public selector to load_model(...). LULA-2 uses the epoch3656
cross-attention checkpoint package with model/best.pt, model_config.json,
and inference_config.json.
Hugging Face login is required for gated LULA weights. In Colab, omtx>=2.0.20
does not pin NumPy below 2.
Score a real target:
from omtx.lula import load_model
CA2 = (
"MSHHWGYGKHNGPEHWHKDFPIAKGERQSPVDIDTHTAKYDPSLKPLSVSYDQATSLRIL"
"NNGHAFNVEFDDSQDKAVLKGGPLDGTYRLIQFHFHWGSLDGQGSEHTVDKKKYAAELHL"
"VHWNTKYGDFGKAVQQPDGLAVLGIFLKVGSAKPGLQKVVDVLDSIKTKGKSADFTNFDP"
"RGLLPESLDYWTYPGSLTTPPLLECVTWIVLKEPISVSSEQVLKFRKLNFNGEGEPEELM"
"VDNWRPAQPLKNRQIKASFK"
)
mols = [
"CC(=O)Nc1nnc(s1)S(N)(=O)=O",
"Cc1ccc(cc1)S(=O)(=O)N",
"CC(C)Cc1ccc(cc1)C(C)C(=O)O",
"CCN(CC)CCNC(=O)c1ccc(N)cc1",
"c1ccc(cc1)C(=O)O",
"CCO",
]
model = load_model("lula1.1")
for row in sorted(model.score(protein_sequence=CA2, smiles=mols), key=lambda r: r["rank"]):
print(row["rank"], round(row["score"], 4), row["smiles"])
Run local LULA-2 residue attention and open a colored protein-structure viewer without an Om API key only when you already have a matching PDB/mmCIF structure file:
from omtx.lula import load_model
model = load_model("lula2")
residue_map = model.residue_map(
protein_sequence=CA2,
smiles="CC(=O)Nc1nnc(s1)S(N)(=O)=O",
)
print(residue_map["top_residues"])
html_path = model.visualize_residue_map(
protein_sequence=CA2,
smiles="CC(=O)Nc1nnc(s1)S(N)(=O)=O",
structure_path="ca2.pdb",
chain_id="A",
top_k=10,
open_browser=True,
)
print(html_path)
structure_path is local and can point to a PDB/CIF/mmCIF file or a directory
containing one. This local viewer does not run OpenFold, verify the structure's
origin, or prove that the structure was generated from the submitted sequence.
Use client.lula2.residue_map(..., local_model=True) when you want the SDK to
generate the structure locally with OpenFold3 and then run local LULA-2 residue
attention:
from omtx import OmClient
with OmClient() as client:
proof = client.lula2.residue_map(
protein_sequence=CA2,
smiles="CC(=O)Nc1nnc(s1)S(N)(=O)=O",
local_model=True,
output_dir="ca2_hotspots",
open_browser=True,
)
print(proof["html_path"])
print(proof["structure_path"])
print(proof["residue_map_path"])
print(proof["top_residues"][:10])
On first run, local mode installs the OpenFold3 Python package into the Om local
cache and downloads OpenFold3 parameters if they are not already present. It
also uses the gated LULA-2 weights and encoder assets from
omtx lula download --model lula2; set HF_TOKEN or HUGGING_FACE_HUB_TOKEN
when a first-run LULA download needs Hugging Face auth. CUDA GPU hardware is
expected for practical local OpenFold3 runtime. Set OMTX_OPENFOLD3_RUNTIME_DIR,
OMTX_OPENFOLD3_CHECKPOINT_PATH, OMTX_OPENFOLD3_CACHE,
OMTX_OPENFOLD3_PARAM_DIR, OMTX_LOCAL_CACHE_DIR, or
OMTX_OPENFOLD3_AUTO_INSTALL=0 when you need explicit cache/runtime control.
The ligand is not placed or docked into the structure; the SMILES only
conditions the residue-attention ranking. Local LULA-2 residue visualization
defaults to the top 10 residues; pass top_k=8 or another positive value to
override it. If the structure residue numbering differs from the input
sequence, pass residue_number_offset or
residue_number_map={sequence_position: structure_number}. Om-hosted structure
prediction, Om Accessible Space retrieval, and molecule ordering require an
authenticated OmClient. The client.lula2.residue_map(local_model=True)
convenience path still requires normal client construction with OMTX_API_KEY
or api_key=..., but it executes local OpenFold3 and local LULA-2 without
launching Om-hosted jobs.
Local scoring uses downloaded weights and cached encoder assets. It does not
contact Om or Hugging Face during explicit-SMILES scoring unless you explicitly
run a download. Local scoring over Om Accessible Space requires an authenticated
OmClient so the SDK can fetch orderable Om rows with source metadata before
running the local model.
The local scorer returns the same customer-facing score fields as hosted LULA:
score, rank, and top_percentile_in_batch. The canonical score remains the
0-1 model score; rank and percentile are batch-ranking aids. Do not interpret
any LULA score field as an experimental binding probability unless you have
calibrated it against your own assay data.
If you pass --encoder-cache-dir to omtx lula download, pass the same value to
omtx lula score.
from omtx import OmClient
from omtx.lula import load_model
with OmClient(api_key="omtx_...") as client:
model = load_model("lula1.1")
scores = model.score(
protein_sequence=CA2,
source="om",
tier=50,
n=50000,
client=client,
)
Local LULA Fine-Tuning
Fine-tuning uses only the CSV you provide. The SDK freezes ESM2 and ChemBERTa,
precomputes embeddings locally, and evaluates the test split after each
epoch. For LULA-1/LULA-1.1 it trains the protein and ligand projectors. For
LULA-2 it trains residual cross-attention adapters plus
attention-pooling/scoring layers while keeping the encoders and base
cross-attention backbone frozen. There is no hidden replay of Om training data
and no upload of proteins, SMILES, labels, scores, or checkpoints.
target_id,protein_sequence,smiles,label,split
STAT6,MEEPQSDPSV,CCOc1ccc(CCN)cc1,1,train
STAT6,MEEPQSDPSV,CN1CCN(CC1)c1ccccc1,0,train
STAT6,MEEPQSDPSV,CC(=O)Nc1ccccc1,1,test
STAT6,MEEPQSDPSV,CCN(CC)CC,0,test
omtx lula finetune customer.csv --out stat6_lula
For LULA-2:
omtx lula finetune customer.csv --model lula2 --out stat6_lula2
The default base is lula1.1, epochs default to 10, and intermediate
checkpoints are saved every epoch. The low-data learning-rate default is
model-specific: 1e-6 for LULA-1/LULA-1.1 projectors and 1e-5 for the
LULA-2 adapter/pooling/head surface. Use --save-every 0 to write only the
final checkpoint. Continue from a prior derived checkpoint with:
omtx lula finetune customer_round2.csv --base stat6_lula/final --out stat6_lula_round2
Outputs:
stat6_lula/
checkpoints/
final/
training_curve.csv
metrics.json
split_manifest.json
training_config.json
provenance.json
Synthetic analog augmentation is not automatic. If you add analog rows to the
CSV, mark and split them in your own data pipeline so test remains a real
holdout for the question you intend to measure.
Molecule Fulfillment
from uuid import uuid4
from omtx import OmClient
from omtx.lula import load_model
protein_sequence = "MEEPQSDPSV"
with OmClient() as client:
model = load_model("lula1.1")
scores = model.score(
protein_sequence=protein_sequence,
source="om",
tier=50,
n=50000,
client=client,
)
selected = sorted(scores, key=lambda row: row["score"], reverse=True)[:96]
addresses = client.molecules.shipping_addresses()
shipping_address_id = addresses["default_shipping_address_id"]
order = client.molecules.order(
items=selected,
shipping_address_id=shipping_address_id,
idempotency_key=f"molecule-order-{uuid4()}",
)
The molecule namespace is a thin Om API wrapper for Wallet Credits-funded
fulfillment. Om Accessible Space score rows include source metadata that lets Om
route procurement internally after the customer orders. Customers see fixed
Wallet Credit cost per SMILES and do not select a vendor. Search and quote
helpers remain available for direct explicit-SMILES compatibility, while the Om
tier path is just score(...) then order(...). Shipping address reads
call /v2/molecules/fulfillment/shipping-addresses; order creation calls
/v2/molecules/fulfillment/orders. Orders require an Idempotency-Key.
To use your own scoring model, fetch orderable Om rows, get the SMILES list, attach your scores, sort, and order:
from uuid import uuid4
from omtx import OmClient
with OmClient() as client:
pool = client.molecules.accessible_space(
tier=50,
n=50000,
seed=123,
idempotency_key="target-a-om-space-slice-1",
)
# smiles is a plain list[str], one SMILES per molecule.
smiles = client.molecules.smiles(pool)
# scores must be a same-length list[float], one score per SMILES.
scores = score_with_your_model(smiles)
# with_scores adds your scores back to the orderable Om rows.
scored_rows = client.molecules.with_scores(pool, scores)
selected = sorted(scored_rows, key=lambda row: row["score"], reverse=True)[:96]
addresses = client.molecules.shipping_addresses()
order = client.molecules.order(
items=selected,
shipping_address_id=addresses["default_shipping_address_id"],
idempotency_key=f"molecule-order-{uuid4()}",
)
For larger random screens, repeat the slice call with a different seed and process each 50K batch before fetching the next one:
from omtx import OmClient
with OmClient() as client:
for seed in range(20_000):
pool = client.molecules.accessible_space(
tier=50,
n=50_000,
seed=seed,
idempotency_key=f"om-50-random-{seed}",
)
# smiles is a plain list[str], one SMILES per molecule.
smiles = client.molecules.smiles(pool)
# scores must be a same-length list[float], one score per SMILES.
scores = score_with_your_model(smiles)
# with_scores adds your scores back to the orderable Om rows.
scored_rows = client.molecules.with_scores(pool, scores)
save_batch_scores(seed, scored_rows)
This requests one billion random rows as 20,000 independent 50K batches. The SDK does not store prior batches; write scores or selected hits per batch, for example with Polars Parquet, if you need durable local state.
To select global hits from saved shards without loading everything:
import json
import polars as pl
top_hits = (
pl.scan_parquet("om-random-slices/*.parquet")
.top_k(96, by="score")
.collect()
.to_dicts()
)
selected = [
{
**{key: value for key, value in row.items() if key != "source_metadata_json"},
"source_metadata": json.loads(row["source_metadata_json"]),
}
for row in top_hits
]
Data Access
Browse published protein-specific models with client.models.catalog().
Generated and covered raw-data access is entitlement-scoped; fetch a protein_uuid from
client.datasets.catalog() or client.datasets.generated_protein_uuids() for
the authenticated account before loading generated or otherwise covered data.
Primary training flow (single call):
loaded = client.load_data(
protein_uuid="YOUR_GENERATED_PROTEIN_UUID",
binders=50000, # required
nonbinder_multiplier=5, # optional, default 5x background negatives
# nonbinders=200000, # optional explicit override (wins over multiplier)
sample_seed=42, # optional: deterministic sampling
)
binders = loaded["binders"]
nonbinders = loaded["nonbinders"]
print(binders.shape, nonbinders.shape)
binders.show(top_n=24) # defaults: smiles_col="smiles", sort_by="binding_score"
binders.show(top_n=24, sort_by="selectivity_score")
# show() renders inline in notebooks; no extra display() wrapper needed.
load_data(...) samples non-binders from the Gateway-provided non-binder
source. New binder-only vintages use canonical NEGATIVE-control binder shards;
the SDK adaptively reads a bounded randomized NEGATIVE window distributed across
returned shard URLs, excludes molecules already seen as target binders, and
reads up to the full NEGATIVE pool only when needed. Requested non-binders are
capped at 20x requested binders; if the
anti-joined NEGATIVE pool is smaller than the requested count, the SDK returns
the available non-overlapping rows.
Canonical NEGATIVE responses must include explicit source metadata
(source_protein_uuid and source_vintage_id); missing metadata is treated as
a contract error. Legacy target-specific non-binder shards remain supported.
Explicit per-pool loading (advanced control):
binders = client.load_binders(
protein_uuid="YOUR_GENERATED_PROTEIN_UUID",
n=1000, # optional: random sample size
sample_seed=42, # optional: deterministic sampling
)
nonbinders = client.load_nonbinders(
protein_uuid="YOUR_GENERATED_PROTEIN_UUID",
n=10000, # optional: random sample size
sample_seed=42, # optional: deterministic sampling
)
print(binders.shape, nonbinders.shape)
# Omit n (or set n=None) to load the full pool.
# binders = client.load_binders(protein_uuid="...")
# nonbinders = client.load_nonbinders(protein_uuid="...") # legacy or derived pools
Manual shard export URLs (advanced use):
urls = client.binders.urls(
protein_uuid="YOUR_GENERATED_PROTEIN_UUID",
)
print("Binder shard URLs:", len(urls["binder_urls"]))
print("Non-binder shard URLs:", len(urls["non_binder_urls"]))
print("First binder URL:", urls["binder_urls"][0] if urls["binder_urls"] else None)
Generated proteins available now:
protein_uuids = client.datasets.generated_protein_uuids()
print("Generated protein UUIDs:", protein_uuids[:5])
Module-level convenience:
import omtx as om
loaded = om.load_data(
protein_uuid="YOUR_GENERATED_PROTEIN_UUID",
binders=50000,
nonbinder_multiplier=5,
sample_seed=42,
)
print(loaded["binders"].shape, loaded["nonbinders"].shape)
binders = om.load_binders(
protein_uuid="YOUR_GENERATED_PROTEIN_UUID",
n=1000,
sample_seed=42,
)
nonbinders = om.load_nonbinders(
protein_uuid="YOUR_GENERATED_PROTEIN_UUID",
n=10000,
sample_seed=42,
)
print(binders.shape, nonbinders.shape)
Idempotency
- Every non-GET call gets an idempotency key automatically.
- Auto-generated keys are per-call convenience and are not retry-stable.
- For retry dedupe, pass and reuse your own
idempotency_key(logical operation ID).
Example (retry-safe launch):
request_key = "search-protein-x-20260303-001"
job = client.diligence.search(
query="MKNK2 inhibitor landscape",
idempotency_key=request_key,
)
# If you retry the same logical launch, reuse the same idempotency key.
# retried = client.diligence.search(query="MKNK2 inhibitor landscape", idempotency_key=request_key)
Wallet Funding
New saved-card funding uses client.wallet.prepare_topup(...), then fresh user
approval of the returned exact text, then client.wallet.topup(...) with the
issued funding_operation_id. Preparation does not charge the card. Saved-card
amounts start at $5; the account's server-side funding limit remains authoritative.
Invoice funding uses positive $500 increments and its existing approval text.
Use a stable key for each preparation and charge request and keep those original
keys and inputs for recovery.
prepared = client.wallet.prepare_topup(
amount_cents=5_000,
idempotency_key="wallet-prepare-target-x-001",
)
# Show prepared["user_approval_confirmation"] to the user and obtain fresh,
# explicit approval of this exact operation before calling topup.
# Only after that approval:
topup = client.wallet.topup(
amount_cents=prepared["amount_cents"],
payment_mode="saved_card",
funding_operation_id=prepared["funding_operation_id"],
user_approval_confirmation=prepared["user_approval_confirmation"],
idempotency_key="wallet-charge-target-x-001",
)
Funding returns the existing public checkout receipt and links, without provider diagnostics or an inferred payment-success status. Malformed receipts report an unknown outcome and never trigger a replacement request.
Preparation returns only the issued operation ID, amount, currency, payment mode,
timezone-aware expiry and exact approval text. Preserve the original payload and
key after a timeout or recovery error. The SDK never prepares a replacement or
retries a charge automatically. An unchanged older request can omit the operation
ID to recover its existing cached receipt; this cannot admit a new saved-card charge.
APIError.code, .outcome_unknown and .recovery_action expose reviewed recovery
metadata when available; they do not authorize a replacement payment.
Vibe Video's publish_intent defaults to True for compatibility. Pass the boolean
False to withhold publication consent; strings such as "false" are rejected.
The compatible True default stays absent from the request body, preserving
unchanged retries from older SDK versions; False is sent explicitly.
Helper Surface
diligence.deep_diligence(query, preset=None, idempotency_key=None)diligence.synthesize_report(gene_key, idempotency_key=None)diligence.search(query, idempotency_key=None)diligence.gather(query, preset=None, idempotency_key=None)diligence.crawl(url, preset=None, idempotency_key=None)diligence.list_gene_keys()artifacts.upload(file_path, content_type=None),artifacts.upload_bytes(...),artifacts.get(artifact_id)zencloud.describe(),zencloud.start(...),zencloud.run(...),zencloud.get(...)hub.catalog()for migration guidance andhub.recover(...)for accepted receiptsdata_generation.order(sequences, idempotency_key=None)for Wallet-funded private orderslula1.score(protein_sequence, smiles=None, source=None, tier=50, n=None, threshold=0.3, top_k=None, seed=42, job_name=None, protein_uuid=None, idempotency_key=None)lula2.score(protein_sequence, smiles=None, source=None, tier=50, n=None, threshold=0.3, top_k=None, seed=42, job_name=None, protein_uuid=None, idempotency_key=None)lula2.residue_map(protein_sequence, smiles, job_name=None, idempotency_key=None, local_model=False, structure_path=None, ...)- optional local LULA open-weight helpers through
omtx.lula.load_model(...), including localLula2Model.residue_map(...)andLula2Model.visualize_residue_map(..., structure_path=...)after installingomtx[lula] - optional CLI commands installed by the
omtxpackage:omtx lula download,omtx lula verify,omtx lula score, andomtx lula finetune molecules.pricing()molecules.search(smiles_list, ...)molecules.quote(items, ...)molecules.shipping_addresses()molecules.order(items, shipping_address_id, idempotency_key)molecules.orders(limit=20)molecules.status(order_number)models.catalog(protein_uuid=None, q=None, limit=100, offset=0)structures.pdb_download(pdb_id, format="pdb")structures.pdb_save(pdb_id, output_dir=".", format="pdb", overwrite=False)wallet.prepare_topup(amount_cents, idempotency_key)wallet.expected_topup_confirmation(amount_cents, payment_mode, funding_operation_id=None)wallet.topup(amount_cents, payment_mode, user_approval_confirmation, idempotency_key, funding_operation_id=None)vibe_video.submit(music_prompt, visual_prompt=None, artist_name=None, title_hint=None, duration_seconds=890, credit_artist=True, publish_intent=True, idempotency_key=None)vibe_video.list(limit=20)vibe_video.status(submission_id)jobs.history(...),jobs.status(job_id),jobs.wait(job_id, ...)binders.get_shards(...)binders.urls(...)load_binders(...)load_nonbinders(...)load_data(...)(combined binder/non-binder load)datasets.catalog()datasets.generated_protein_uuids()status()users.profile()
Visualization column contract:
OmData.show(...)is strict (no column fallback aliases).- Default columns are
smilesandbinding_score. - For selectivity views, pass
sort_by="selectivity_score".
Route policy:
/v2/diligence/getTargetDiligenceReportremains an alias route and is not a separate SDK helper./v2/rag/searchis intentionally not exposed in the SDK.- New scientific model execution uses
/v2/zencloud. Hub launch helpers fail locally with migration guidance. Only explicit accepted-receipt recovery uses former Hub routes; it cannot create a new job on the retired Gateway. - Molecule fulfillment helpers call only the canonical
/v2/molecules/*Gateway routes. Public Molecule Fulfillment orders are Wallet Credits-funded. models.catalog(...)calls/v2/models/catalogfor published protein-specific model discovery.structures.pdb_download(...)fetches exact public structure files fromhttps://files.rcsb.org/download/{PDB_ID}.{format}. It accepts only canonicalpdborcifformats.- Active self-serve Data Generation order creation is Wallet Credits-funded
through
/v2/data-generation/orders; legacy invoice/quota helper methods are not the recommended public path for new integrations. - Vibe video helpers call only the canonical
/v2/vibe-video/*Gateway routes.
Historical Hub jobs
client.jobs.history(limit=20) retains chronological user history. Read known
jobs with client.jobs.status(job_id) and their authorized downloads with the
existing job artifact helpers. Retirement does not delete historical records.
Migration
Breaking changes in 2.0.0:
OMTXClientremoved.OmClientis now the only supported client class.- Legacy pricing helpers removed from SDK surface.
- Legacy binder batch-cost helper removed from SDK surface.
- Shard access now resolves latest accessible dataset by
protein_uuid. - Generated data access is granted by qualifying covered data-generation
sequences for the matching
protein_uuid, including legacy-public snapshots where the account has covered access. client.status()is the primary health helper.load_data(...)is the primary training-set helper; it samples target binders and background negatives from binder pools.load_binders(...)remains the primary binder loader;load_nonbinders(...)remains available for legacy target non-binders and canonical NEGATIVE-control derived pools.- Flat shard URL aliases are available as
binder_urls/non_binder_urls. - Core SDK runtime includes
polars+rdkit.
Migration mapping (1.x -> 2.x):
from omtx import OMTXClient->from omtx import OmClientOMTXClient(...)->OmClient(...)
Breaking changes in 1.0.0:
binders.get(...)removed from core SDK.binders.iter(...)removed from core SDK.pandasremoved from required dependencies.
Migration mapping (0.x -> 1.x):
binders.get(...)->client.load_binders(...)/client.load_nonbinders(...)orbinders.get_shards(...)binders.iter(...)->binders.get_shards(...)+ application-level streamingpip install omtx(with pandas) ->pip install omtx(with polars + rdkit)
Full details: see MIGRATION.md.
Requirements
- Python
>=3.9 - OMTX API key
License
MIT. See LICENSE.
Metadata
Release files for omtx 3.1.0
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 |
|---|---|---|---|---|
| omtx-3.1.0.tar.gz | 148.1 kB | Without provenance | Details for omtx-3.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omtx-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for omtx-3.1.0-py3-none-any.whl |
Total release size: 259.3 kB
Release files / omtx-3.1.0.tar.gz
| Download URL | omtx-3.1.0.tar.gz |
|---|---|
| Size | 148.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4470f3648a43841cabe7485227474d0bca492fb2b0dc13209a79db84be91895
|
|
BLAKE2b-256 checksum How to use checksums |
3862e67d860575a452c486ccf7ff7c55f5d487c6f1a2e0970b18093212305ae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / omtx-3.1.0-py3-none-any.whl
| Download URL | omtx-3.1.0-py3-none-any.whl |
|---|---|
| Size | 111.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30b822af7f3cec27bb1f754fbb23b212fe609f7f570bbdbc71a4bda760f68b34
|
|
BLAKE2b-256 checksum How to use checksums |
d16004e29b9d12e69076739e180605ddb392d7e240f6324b8ee0000b65844fc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for omtx 3.1.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.