Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Ascend SDK

This folder contains the customer-buildable ascend-io-sdk Python package. The SDK package now builds with uv and no longer requires Bazel, Ascend-owned GCP credentials, or the Ascend remote Bazel cache for packaging.

Package

  • Distribution name: ascend-io-sdk
  • Import package: ascend.sdk
  • Build tool: uv
  • Package source: source/ascend/sdk/src

The src/ tree contains the SDK Python sources plus the generated protobuf, OpenAPI, and protoc_gen_swagger Python artifacts that were historically produced by Bazel during packaging. These generated artifacts are checked in so customers can build the SDK package cleanly in their own environment.

Build

From this folder:

cd source/ascend/sdk
uv build

This creates source and wheel distributions in source/ascend/sdk/dist/:

source/ascend/sdk/dist/ascend_io_sdk-<version>-py3-none-any.whl
source/ascend/sdk/dist/ascend_io_sdk-<version>.tar.gz

Local Install From Wheels

cd source/ascend/sdk
uv build

uv venv /tmp/ascend-sdk-venv
source /tmp/ascend-sdk-venv/bin/activate
uv pip install dist/ascend_io_sdk-*.whl

python - <<'PY'
from ascend.sdk.client import Client
print(Client)
PY

If your shell has PYTHONPATH pointing at another Ascend source checkout, unset it before testing an installed wheel:

unset PYTHONPATH

Run Directly With UV

You can run the SDK directly from this folder without manually creating or activating a virtual environment:

cd source/ascend/sdk
uv run python

If your shell exports PYTHONPATH for another Ascend checkout, remove it for the command so Python imports this package instead of the other checkout:

cd source/ascend/sdk
env -u PYTHONPATH uv run python

Quick import check:

cd source/ascend/sdk
env -u PYTHONPATH uv run python - <<'PY'
from ascend.sdk.client import Client
print(Client)
PY

Test Locally With UV

Use uv run for quick source-tree checks without manually creating a virtual environment:

cd source/ascend/sdk
env -u PYTHONPATH uv run python - <<'PY'
from ascend.sdk.client import Client
from ascend.sdk import definitions
from ascend.protos.api import api_pb2

print(Client.__name__)
print(definitions.DataService.__name__)
print(api_pb2.__name__)
PY

To test the built wheel instead of the editable source tree:

cd source/ascend/sdk
env -u PYTHONPATH uv build

SDK_WHEEL="$(ls dist/ascend_io_sdk-*-py3-none-any.whl)"

env -u PYTHONPATH uv run \
  --no-project \
  --with "$SDK_WHEEL" \
  python - <<'PY'
from ascend.sdk.client import Client
print(Client)
PY

If you want to test against an Ascend environment, make sure your Ascend API credentials are configured and pass the hostname to the client:

cd source/ascend/sdk
env -u PYTHONPATH uv run python - <<'PY'
from ascend.sdk.client import Client

client = Client(hostname="your-instance.ascend.io")
for data_service in client.list_data_services().data:
  print(data_service.id)
PY

Publish to a Private PyPI Repository

Customers can publish this package to their own private package repository and install it from there.

cd source/ascend/sdk
uv build

export UV_PUBLISH_URL="https://pypi.customer.example/legacy/"
export UV_PUBLISH_USERNAME="__token__"
export UV_PUBLISH_PASSWORD="<private-pypi-token>"

uv publish dist/*

Install from the private index with:

uv venv /tmp/ascend-sdk-venv
source /tmp/ascend-sdk-venv/bin/activate
uv pip install --index-url https://pypi.customer.example/simple/ ascend-io-sdk

If the private index does not mirror public PyPI, add a second index or publish the SDK's third-party dependencies into the private repository.

Updating Generated Artifacts

The package intentionally avoids Bazel for customer builds. If protobuf or OpenAPI definitions change, regenerate the Python artifacts using the historical internal Bazel pipeline, then refresh source/ascend/sdk/src with the generated package contents before publishing a new SDK wheel.

For the current handoff, source/ascend/sdk/src is the buildable source of truth for the SDK package.

Integration Tests

The existing integration tests under source/ascend/sdk/test are retained for reference and require a live Ascend environment. They are not part of the packaging build.

Metadata

Release files for ascend-io-sdk 0.2.66

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

Source distribution (sdist)

Source distribution for ascend-io-sdk 0.2.66
File Size Uploaded Provenance
ascend_io_sdk-0.2.66.tar.gz 320.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ascend-io-sdk 0.2.66
File Interpreter ABI Platform
ascend_io_sdk-0.2.66-py3-none-any.whl Python 3 none any Details

Total release size: 661.7 kB

Release files / ascend_io_sdk-0.2.66.tar.gz

Download URL ascend_io_sdk-0.2.66.tar.gz
Size 320.1 kB
Tags Source
SHA-256 checksum
How to use checksums
51da6c52683a62bcbc9a0a56951555e29b0cf51acac9953c3b164cfd482ff4b5
BLAKE2b-256 checksum
How to use checksums
39cdba11760be9d6821fec790786bb183bf1f063b57e07227b55ed8027096c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / ascend_io_sdk-0.2.66-py3-none-any.whl

Download URL ascend_io_sdk-0.2.66-py3-none-any.whl
Size 341.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30cc658ab1bf67676fef6657bf15210a25ff00e792465fa6f0f8e6e8fe626d62
BLAKE2b-256 checksum
How to use checksums
8d0cd9f62c86c4659678c46a937fa13977634b5034c167826678104919f0aac2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for ascend-io-sdk 0.2.66

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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