Skip to main content

Python client for the Superbio API

Project description

Superbio Python Client

Official Python client for the Superbio platform API. Access bioinformatics tools and AI models programmatically.

Installation

pip install superbio

Quick Start

from superbio import Client

# Initialize client
client = Client("your@email.com", "your_password")

# List available apps
apps = client.get_app_list()

# Get app parameters
app_params = client.get_app_parameters("app_id")

# Submit a job with local files
job = client.post_job(
    app_id="app_id",
    running_mode="cpu",
    config={"param": "value"},
    local_files={"file_key": "path/to/file"}
)

Submit a job with S3 files

job = client.post_job(
    app_id="app_id",
    running_mode="cpu",
    config={"param": "value"},
    remote_file_source_data={
        "file_key": [{
            "protocol": "s3",
            "credentials": {
                "aws_access_key_id": "YOUR_ACCESS_KEY",
                "aws_secret_access_key": "YOUR_SECRET_KEY"
            },
            "path": "bucket/path/to/file.csv"
        }]
    }
)

Check job status

status = client.get_job_status("job_id")

Download results

client.download_job_results("job_id", "output_directory")

Features

  • Browse and search available bioinformatics applications
  • Get detailed app configurations and parameters
  • Submit computational jobs with:
    • Local files
    • Remote files (S3)
    • Files from Superbio DataHub
  • Monitor job status and progress
  • Download and manage results
  • Track credit balances and usage

Authentication

You must first create an account at app.superbio.ai. Your email and password from the platform will be used to authenticate API requests.

Examples

Working with Apps

# Get list of all apps
apps = client.get_app_list()

# List apps with pagination and search
apps = client.get_app_list(
    hits_per_page=10,  # (optional) Number of results per page
    page=1,            # (optional) Page number
    search_string="genomics"  # (optional)Search by keyword
)

# Get app details and parameters
app_config = client.get_app_parameters("app_id")

Job Management

# List jobs with filters
jobs = client.get_jobs(
    hits_per_page=100,           # (optional) Number of jobs per page
    page=1,                      # (optional) Page number
    status="running",            # (optional) Filter by status: "running", "completed", "failed", etc.
    date_from="01/01/2024",      # (optional) Filter by start date (dd/mm/yyyy)
    date_to="31/01/2024",        # Filter by end date (dd/mm/yyyy)
    search_string="analysis"     # Search job titles
)

# Download specific result files
client.download_job_result_file(
    job_id="job_id",
    file_path="path/to/result.csv",  # Path of file in job results
    path_to_download_to="output_dir",         # Local directory to save file
)

# Download all results
client.download_all_job_results(
    job_id="job_id",
    path_to_download_to="output_dir",     # Local directory to save files
)

# Delete a job
client.delete_job("job_id")

Credit Management

# Get credit balances and usage info
balances = client.get_balances()
# Returns:
# {
#     "balances": {
#         "available_credits": 6000,
#         "credits": 6000,
#         "runs_left": 400,
#         "total_runs": 400,
#         "runtime_left": 72000.0,
#         "total_runtime": 72000,
#         "runs_reset_time": "Feb 28 2025, 23:08:05",
#         "runtime_reset_time": "Feb 28 2025, 23:08:05",
#         "tier": "free_organisation"
#     }
# }

Support

For support, contact dmason@superbio.ai.

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

superbio-0.1.5.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

superbio-0.1.5-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file superbio-0.1.5.tar.gz.

File metadata

  • Download URL: superbio-0.1.5.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for superbio-0.1.5.tar.gz
Algorithm Hash digest
SHA256 09df8814328bd3f38076633412581e0456d6aa08e1a95f66fc4afb363eeff66a
MD5 461fdc2593fc4dc34441ecf0d3d06f8c
BLAKE2b-256 7dbea950d75d52bfd712e1a2e5116bfc507e5ce940c234f9316536b5fe5f822b

See more details on using hashes here.

Provenance

The following attestation bundles were made for superbio-0.1.5.tar.gz:

Publisher: deploy_to_pypi.yml on Superbio-ai/superbioAPI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file superbio-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: superbio-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for superbio-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bdcc56abdaca00006f11d95f8f11a2b9ec2e02220f72c30c44010bde555133d5
MD5 1d424fb5eebf5d6dd0805765e192334d
BLAKE2b-256 faffb7a51ebd4b57d443c49d59cc3b74a1a51496d988388a5c98a4cd4653651a

See more details on using hashes here.

Provenance

The following attestation bundles were made for superbio-0.1.5-py3-none-any.whl:

Publisher: deploy_to_pypi.yml on Superbio-ai/superbioAPI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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