Skip to main content

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]
  • --classification enables classification mode.
  • Default SMILES column is smiles, target column is target.

🔮 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 --host option on any command
    • or by setting DEEPMIRROR_API_ENV=local

💡 Tips

  • If a token is missing or expired, commands will prompt you to log in again.

  • Use --help on any command for more details, e.g.:

    dm train --help
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepmirror-0.0.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepmirror-0.0.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file deepmirror-0.0.3.tar.gz.

File metadata

  • Download URL: deepmirror-0.0.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for deepmirror-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8957469ca35040bdb31bfe8a0cd4c9131ddd52a332b94e04611f32c0843e7943
MD5 aab17c8f5de00d9a08c63f418409a8ec
BLAKE2b-256 6f012541f57a9464b0d5f484fdaee8256b34e50b5c66d30d3de7d615671cc8f2

See more details on using hashes here.

File details

Details for the file deepmirror-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: deepmirror-0.0.3-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

Hashes for deepmirror-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7d69d9f922280c20211c0be2a435a0294ff4914bed2cb3aaaaa107ab3fdb922d
MD5 1dce81cc2c70a74b557e40957c7c50df
BLAKE2b-256 e644d25b65002fbad7ce90f46e8439a6b730829f877261fac625bf5a7ba44696

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page