Skip to main content

Python SDK for CorePlexML AutoML & MLOps platform

Project description

CorePlexML Python SDK

Official Python client for the CorePlexML AutoML & MLOps platform.

Installation

pip install coreplexml

Quick Start

from coreplexml import CorePlexMLClient

client = CorePlexMLClient(
    base_url="https://platform.coreplexml.io",
    api_key="your-api-key"
)

# List projects
projects = client.projects.list()

# Create a project
project = client.projects.create(name="My ML Project")

# Upload a dataset
dataset = client.datasets.upload(
    project_id=project["id"],
    file_path="data.csv",
    name="Training Data"
)

# Run an AutoML experiment
caps = client.experiments.capabilities()
print(caps["allowed_engines"], caps["execution_modes"])

experiment = client.experiments.create(
    project_id=project["id"],
    dataset_version_id=dataset["dataset_version_id"],
    target_column="label",
    problem_type="classification",
    engine="h2o",
    execution_mode="single",
    config={"max_models": 10, "max_runtime_secs": 300}
)

# Get the best model
models = client.models.list(project_id=project["id"])
best = models["items"][0]

# Deploy
deployment = client.deployments.create(
    project_id=project["id"],
    model_id=best["id"],
    name="production-v1"
)

# Predict
result = client.deployments.predict(
    deployment_id=deployment["id"],
    inputs={"feature1": 1.0, "feature2": "A"}
)
print(result["predictions"])

Resources

The client provides access to all platform resources:

Resource Description
client.projects Project CRUD
client.datasets Dataset upload, versions, columns
client.experiments AutoML experiment management
client.models Model listing, metrics, explainability
client.deployments Deploy models, predict, A/B tests
client.reports Generate PDF/HTML reports
client.privacy Privacy Suite (PII detection, compliance)
client.synthgen Synthetic data generation (CTGAN, TVAE)
client.studio What-If analysis sessions

Authentication

Create an API key from Profile > API Keys in the platform, then:

client = CorePlexMLClient(
    base_url="https://platform.coreplexml.io",
    api_key="cpx_your_api_key_here"
)

Error Handling

from coreplexml import CorePlexMLClient, NotFoundError, ValidationError

try:
    client.projects.get("nonexistent-id")
except NotFoundError:
    print("Project not found")
except ValidationError as e:
    print(f"Validation error: {e}")

Requirements

  • Python >= 3.9
  • requests >= 2.28

Plan-Aware AutoML

# Pro: choose one engine
client.experiments.create(
    project_id=project["id"],
    dataset_version_id="VERSION_UUID",
    target_column="label",
    problem_type="classification",
    engine="flaml",
    execution_mode="single"
)

# Enterprise: parallel engines
exp = client.experiments.create(
    project_id=project["id"],
    dataset_version_id="VERSION_UUID",
    target_column="label",
    problem_type="classification",
    execution_mode="parallel",
    engines=["h2o", "flaml"]
)
print(client.experiments.engine_runs(exp.get("experiment_id") or exp["id"]))

Links

License

Business Source License 1.1

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

coreplexml-0.1.3.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

coreplexml-0.1.3-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file coreplexml-0.1.3.tar.gz.

File metadata

  • Download URL: coreplexml-0.1.3.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.17

File hashes

Hashes for coreplexml-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9d303eaa7d090e43789155564905a2fe17a22f5746f34e75e85254e254881fa6
MD5 a33a445b87d2c7f096c1e79c004b0a0d
BLAKE2b-256 58a9603488df3f262f5fb953839d6965b3ddc49e454f6c5d2398964c711ff874

See more details on using hashes here.

File details

Details for the file coreplexml-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: coreplexml-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.17

File hashes

Hashes for coreplexml-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5af5d6e5025121b139e56134c2fcb52ef59f33568f545aa9bbaca0e06b2ebcbb
MD5 e60f4ba3aa604f29c3b0d1f6d353bb2c
BLAKE2b-256 7518dd0d5a369f22fb74e90cfa50ae5c5e244a3826a81dfe36a5b9d999c3ec37

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