This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
dx-engine
Python bindings for the DEEPX Runtime (dx_rt). dx-engine exposes the
libdxrt inference stack to Python via a pybind11 extension so you can
load DEEPX-compiled models (.dxnn), run inference on DEEPX NPUs, inspect
device status, and collect profiling data from Python.
- Package name (PyPI / pip):
dx-engine - Import name:
dx_engine - Supported Python: 3.8 – 3.14
- Requires:
libdxrtruntime installed on the system (typically via thelibdxrt-binDebian package).
Installation
From PyPI
python -m pip install dx-engine
From a prebuilt wheel (recommended)
Wheels are shipped inside the libdxrt-bin Debian package under
/usr/share/libdxrt-bin/python/. Install the wheel whose cpXY tag
matches your Python version:
# 1. Install the system runtime
sudo dpkg -i libdxrt-bin_<version>_<arch>.deb
# 2. Install the matching wheel into your venv/interpreter
PYTAG=cp$(python -c 'import sys;print(f"{sys.version_info[0]}{sys.version_info[1]}")')
pip install /usr/share/libdxrt-bin/python/dx_engine-*-${PYTAG}-${PYTAG}-*.whl
sudo dpkg -i automatically installs the wheel that matches the system
python3 interpreter. Any user-owned venv must repeat the pip install
step because dpkg runs as root and cannot safely write into a venv.
From source
Build wheels for one or more Python versions using isolated uv-managed
venvs. See BUILD_WHEELS.md for the full procedure.
cd dx_rt/python_package
./build_all_wheels.sh # 3.8 – 3.14
./build_all_wheels.sh 3.12 # single version
Produced wheels are written to ./wheelhouse/.
Quick Start
import numpy as np
from dx_engine import InferenceEngine, InferenceOption
# 1. Load a compiled model
option = InferenceOption()
engine = InferenceEngine("model.dxnn", option)
# 2. Prepare inputs matching the model's expected shape/dtype
input_tensor = np.zeros(engine.get_input_shape(), dtype=np.float32)
# 3. Run inference
outputs = engine.run([input_tensor])
# 4. Inspect results
for i, out in enumerate(outputs):
print(f"output[{i}]: shape={out.shape}, dtype={out.dtype}")
Public API
Re-exported from dx_engine (src/dx_engine/__init__.py):
| Symbol | Purpose |
|---|---|
InferenceEngine |
Load a .dxnn model and run synchronous/asynchronous inference |
InferenceOption |
Runtime knobs applied when constructing an InferenceEngine |
Configuration |
Global runtime configuration (device selection, logging, ...) |
DeviceStatus |
Query NPU health, temperature, and utilization |
RuntimeEventDispatcher |
Subscribe to runtime events emitted by dx_rt |
Profiler, JobMetrics, TaskMetrics, NpuDeviceMetrics |
Collect and inspect per-job / per-task profiling data |
__version__ |
Package version (kept in sync with dx_rt/release.ver) |
Runtime Requirements
dx_engine links against libdxrt.so at import time. If you see
ImportError: libdxrt.so.<major>: cannot open shared object file, verify:
dpkg -l libdxrt-bin | grep ^ii
ldconfig -p | grep libdxrt.so
If the library is installed but not in the loader cache, run
sudo ldconfig once.
The libdxrt build linked at wheel build time and the one present at
runtime must share the same major version. Reinstall the matching wheel
whenever you upgrade libdxrt-bin.
Verify the Installation
python -c "import dx_engine; print(dx_engine.__version__)"
License
Proprietary — Copyright (C) 2018- DEEPX Ltd. All rights reserved.
This software is provided exclusively to customers supplied with a DEEPX
NPU. Unauthorized sharing or use is prohibited. See LICENSE
for the full terms; each wheel embeds the same file under
dx_engine-<ver>.dist-info/licenses/LICENSE.
Metadata
Release files for dx-engine 3.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 108.7 MB
Release files / dx_engine-3.4.0-cp314-cp314-manylinux_2_27_x86_64.whl
| Download URL | dx_engine-3.4.0-cp314-cp314-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
1a3ba5bf334a895c7e3cddbb15faf06981ddb92f399b1dfd9c5d1edf9e946aa1
|
|
BLAKE2b-256 checksum How to use checksums |
00237b55ed878dd0413884acc5ea1d300c7e7f0dcdcb8295ce0faf584b79eaae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp314-cp314-manylinux_2_27_aarch64.whl
| Download URL | dx_engine-3.4.0-cp314-cp314-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ ARM64 |
|
SHA-256 checksum How to use checksums |
8a1338e117fbbd083b730d55ed9b252a9d283d4b31852e6445f2aefff04e1afc
|
|
BLAKE2b-256 checksum How to use checksums |
c71fa9bb5e038d23907872747bbd6734334c2f7f3897d400158782e9e156ce2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp313-cp313-manylinux_2_27_x86_64.whl
| Download URL | dx_engine-3.4.0-cp313-cp313-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
d36534a7c13f4d5f998812fff93507947a1223d519dbd2ccc1a502e60560a44b
|
|
BLAKE2b-256 checksum How to use checksums |
435e437466e21a89157b79f893c026a5f58ee6398b00ec03b6da9c7d9939db8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp313-cp313-manylinux_2_27_aarch64.whl
| Download URL | dx_engine-3.4.0-cp313-cp313-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ ARM64 |
|
SHA-256 checksum How to use checksums |
fba746ed76fae0a2569af70c8e814d6c411c26b2adea9f13740bcaed420bc982
|
|
BLAKE2b-256 checksum How to use checksums |
67ca58fa6a3b886f49b05a504f01aeed3dd81ddfda7766e0e94ea8c9fe9453e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp312-cp312-manylinux_2_27_x86_64.whl
| Download URL | dx_engine-3.4.0-cp312-cp312-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
6682dd22c7cd6ce41557b84404b515a6b115656458cd9ba13b91698077c032fa
|
|
BLAKE2b-256 checksum How to use checksums |
53395997355aa3f0d75cb31642bfe65254b0469582e8f1044ac2689076e9214e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp312-cp312-manylinux_2_27_aarch64.whl
| Download URL | dx_engine-3.4.0-cp312-cp312-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ ARM64 |
|
SHA-256 checksum How to use checksums |
1a97e5e2df0f0ec9bd52dd6599e5460f76aafba9c2ea36872a3cd5a9624b09e5
|
|
BLAKE2b-256 checksum How to use checksums |
6909ae93c0fa1a4b30a64767160c0d7689e0eebe1fc6beca9ee841388becc10b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp311-cp311-manylinux_2_27_x86_64.whl
| Download URL | dx_engine-3.4.0-cp311-cp311-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
161fde8428fc8aea95c560d878bc68e8d1c657c18a0eb04840de4bd212f3477f
|
|
BLAKE2b-256 checksum How to use checksums |
b032d52b33d5b85f7d8565e3e2d153f19db6d506cd5504339f31c6553eae06c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp311-cp311-manylinux_2_27_aarch64.whl
| Download URL | dx_engine-3.4.0-cp311-cp311-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ ARM64 |
|
SHA-256 checksum How to use checksums |
ec4188e0a598a164bc04312482f70159be1a3d888284dcf52746054138101ec7
|
|
BLAKE2b-256 checksum How to use checksums |
de451ca593e1c4ed868618658e07adeffc1fb44b92655d1ba48a6c76942616ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp310-cp310-manylinux_2_27_x86_64.whl
| Download URL | dx_engine-3.4.0-cp310-cp310-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
420324d60379c760fce47e205e46cfad0ef8d6b3bc8f53414099832beda7b906
|
|
BLAKE2b-256 checksum How to use checksums |
991126117bf6e1b7429f2e05c5ccacffbb33eb3eac44eefb9a5cb31032d78877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp310-cp310-manylinux_2_27_aarch64.whl
| Download URL | dx_engine-3.4.0-cp310-cp310-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ ARM64 |
|
SHA-256 checksum How to use checksums |
a2863399dc9108b67d5b849fe8a3b417c34e19f61eccb01777f75106bd7a2dc1
|
|
BLAKE2b-256 checksum How to use checksums |
43c9f94553e9875cf974b74f046dd83fca17e0938e09f9024f8ac05b2957af3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp39-cp39-manylinux_2_27_x86_64.whl
| Download URL | dx_engine-3.4.0-cp39-cp39-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | CPython 3.9 Linux glibc 2.27+ x86-64 |
|
SHA-256 checksum How to use checksums |
318bba5f9e159dfbcf4c6a71c21cba5c6b9f34a1db2417cdf775b4eaee2d31c0
|
|
BLAKE2b-256 checksum How to use checksums |
a91abe300b73faaea1cd9bbd7b1836b8e16098e1745f093cbda409e69a116ff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp39-cp39-manylinux_2_27_aarch64.whl
| Download URL | dx_engine-3.4.0-cp39-cp39-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.9 Linux glibc 2.27+ ARM64 |
|
SHA-256 checksum How to use checksums |
0d6297d10fe46fac62ed5bef0e7425c1959e456069f93b30919635da15a2a482
|
|
BLAKE2b-256 checksum How to use checksums |
47dd73edf436a2d248d77f0174b17d3e10b111a9b10830cec5903195ddd36ed3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp38-cp38-manylinux_2_28_x86_64.whl
| Download URL | dx_engine-3.4.0-cp38-cp38-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.0 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6b4529121c9b5e8c54e06f9f2831e549e15df8caf22259bb231afdc534faa2bb
|
|
BLAKE2b-256 checksum How to use checksums |
fa2e4f0bbde9c5b8a0978a0644ee0690b241ed694d8c70adb7f1616e4f8c6055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / dx_engine-3.4.0-cp38-cp38-manylinux_2_28_aarch64.whl
| Download URL | dx_engine-3.4.0-cp38-cp38-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
034d9c4a35eca5dc4bd8a3ff1941caa585304faae56a1c31dce6955c5b7aa8e3
|
|
BLAKE2b-256 checksum How to use checksums |
94fc70cf0fcd230859fd038969c01e3fa37b8329466b4fc611aa22b8537d34a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for dx-engine 3.4.0
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.