Skip to main content

XClient

XClient Python SDK for XCloud Service API. Manage and execute jobs with confidence.

Run your first XClient Job

1. Install xclient-python-sdk

pip install xclient-python-sdk

2. Setup your XClient API key

  1. Sign up to XClient
  2. Manage your API key
  3. Create API key, and set environment variable with your API key
export XCLIENT_API_KEY=xck_******
export XCLIENT_DOMAIN=localhost:8090  # optional, default is localhost:8090

3. Execute code with XClient Job

from xclient import Job

job = Job(api_key="xck_******")

# Submit a job
result = job.submit(
    name="my-training-job",
    script="#!/bin/bash\necho 'Hello World'",
    cluster_id=1,
    resources={"cpu": 4, "gpu": 1, "memory": "8GB"}
)

# Get job details
job_info = job.get(job_id=result.job_id, cluster_id=1)

# List jobs
from xclient.api.client.models.job_status import JobStatus
running_jobs = job.list(status=JobStatus.RUNNING, page=1, page_size=20)

# Cancel a job
job.cancel(job_id=result.job_id)

4. Documents

Visit XClient Documents

Metadata

Release files for xclient-python-sdk 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xclient-python-sdk 0.0.2
File Size Uploaded Provenance
xclient_python_sdk-0.0.2.tar.gz 24.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xclient-python-sdk 0.0.2
File Interpreter ABI Platform
xclient_python_sdk-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 64.2 kB

Release files / xclient_python_sdk-0.0.2.tar.gz

Download URL xclient_python_sdk-0.0.2.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2de3b75194a006c694460511cc41201e2892f72085401707497f70e220c5a9dd
BLAKE2b-256 checksum
How to use checksums
e6d1f811fae878d460a59cd519cb53dbd92bf35c3d2b4b1f4879c2f72aeef537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.8 Darwin/23.2.0

Release files / xclient_python_sdk-0.0.2-py3-none-any.whl

Download URL xclient_python_sdk-0.0.2-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24943df8e8aa91c2db24d5d0f03aa626865964d0168af221e7a78969f7fa2a8a
BLAKE2b-256 checksum
How to use checksums
4a9799ede2cf83ff0122601fcaa59f1478d22acadd1f6c4306d5ad5eb5ad2fd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.8 Darwin/23.2.0

Security for xclient-python-sdk 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page