DiPhyxSDK

Go to Docs

Create a Session

The first step to use dxflow SDK is to create a session, which requires DiPhyx dashboard username (email) and password.

import dxflow
# The credentials are stored in ~/.diphyx/config.yaml
dxs = dxflow.Session(email="YOUR@EMAIL", password="YOUR_DIPHYX_PASSWORD")

Manage Compute Units

Compute units are the most fundamental entities across DiPhyx products. With dxflow SDK in Python, you have the opportunity to easily manage them. For instance, you can use the following code to list all of your compute units.

# Get the compute manager
compute_manager = dxs.get_compute_manager()
# List all compute units
compute_manager.list()
# Output
Name | Status | IP ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ | Cluster Type | CPU | Memory(GB) | Disk
-----+--------+----------------+--------------+-----+------------+-----
Demo | ‎READY‎ ‎ | 52.207.227.207 | AWS:T2 Micro | 1 ‎ ‎ ‎| 1 ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ | 8

Manage Unit Storage

You can manage your unit storage across different providers using dxflow SDK. To start exploring this capability, use the following code to get a list of your available units.

# Get the unit
unit = compute_manager.get_unit(name="DEMO")
# List all storage
unit.storage.ls()
# Output
Contents of /:

fastqc
run_script.sh
Contact us
info@diphyx.com
+1 (619) 693-6161
Follow us on
@2023-2024 DiPhyx, Inc.