Command line interface for the deepmirror public API
Project description
deepmirror
deepmirror is a command-line interface for interacting with the deepmirror API. It allows you to train models, run predictions, and submit structure prediction jobs directly from your terminal.
🚀 Installation
pip install deepmirror
🔐 Authentication
Before using most commands, you need to log in to get your API token:
dm login EMAIL
This saves your token and host in ~/.config/deepmirror/ for reuse.
🧠 Model Commands
📋 List Available Models
dm model list
📄 View Model Metadata
dm model metadata MODEL_ID
🔎 Get Full Model Info
dm model info MODEL_ID
🏋️ Train a Custom Model
dm train --model-name mymodel \
--csv-file path/to/data.csv \
--smiles-column smiles \
--value-column target \
[--classification]
--classificationenables classification mode.- Default SMILES column is
smiles, target column istarget.
🔮 Run Inference
You can run inference using either a CSV file or direct SMILES input:
# From a CSV or TXT file
dm predict --model-name mymodel --csv-file inputs.csv
# Direct SMILES
dm predict --model-name mymodel --smiles "CCO"
🧬 Structure Prediction
🧠 Predict Protein-Ligand Structure
dm structure predict protein.pdb ligand.sdf --model chai
- Default model is
chai. - Protein and ligand must be valid file paths.
📦 Download Prediction Result
dm structure download TASK_ID result.zip
📃 List Submitted Jobs
dm structure list
⚙️ Configuration
-
API host and token are saved under
~/.config/deepmirror/. -
You can override the API host:
- via
--hostoption on any command - or by setting
DEEPMIRROR_API_ENV=local
- via
💡 Tips
-
If a token is missing or expired, commands will prompt you to log in again.
-
Use
--helpon any command for more details, e.g.:dm train --help
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepmirror-0.0.2.tar.gz.
File metadata
- Download URL: deepmirror-0.0.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86ff6706b880060baf4f3cefb0826fe92b2bc5fad83ac2e532d9f4558496dde7
|
|
| MD5 |
c79035b6e942a4053c4e1a4fe0d1a3cd
|
|
| BLAKE2b-256 |
8c4c7abe24f6478959a686a7487aa825c65d5d9b9c45fdbfc8a48926980dc0ca
|
File details
Details for the file deepmirror-0.0.2-py3-none-any.whl.
File metadata
- Download URL: deepmirror-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea626b7a3d65ef5ede12fd6ef53c1a049a5b894508c98b2e56ff28a344959f42
|
|
| MD5 |
4c7a60de3ac39dee1c3c5d579c10b576
|
|
| BLAKE2b-256 |
d47dc5928c6bf9b51252efc82b26ceffe6edce6a5a1a0d1d1e41c33417314723
|