Skip to main content

Python client SDK for kapsl-runtime with IPC, shared-memory, and hybrid inference transports

Project description

kapsl-sdk

kapsl-sdk is the Python client package for kapsl-runtime, the Kapsl inference runtime for local and embedded model execution.

It provides Python bindings for the runtime's transport layer so Python applications can talk to a running kapsl-runtime process over:

  • TCP / IPC client connections with KapslClient
  • shared-memory transport with KapslShmClient
  • hybrid IPC + shared-memory transport with KapslHybridClient

The package is intended for low-latency inference integrations where Python is orchestrating requests while the runtime performs the heavy model execution work.

Installation

pip install kapsl-sdk

What It Includes

  • Python bindings backed by the Rust runtime client implementation
  • support for CPython 3.9+
  • transport options for local development and high-throughput deployments
  • a small API surface aimed at direct integration into backend services and tools

Requirements

  • A running kapsl-runtime instance
  • The runtime endpoint details for your deployment
  • Shared-memory transport setup if you want to use KapslShmClient or KapslHybridClient

Usage

from kapsl_sdk import KapslClient

client = KapslClient()
result = client.infer(
    model_id=0,
    shape=[1, 4],
    dtype="float32",
    data=b"...",
)

Client Types

KapslClient

General-purpose client for runtime connections over TCP, Unix sockets, or Windows named pipes depending on platform and endpoint configuration.

KapslShmClient

Shared-memory client for lower-overhead local inference workflows where request and response payloads are exchanged through shared memory.

KapslHybridClient

Hybrid client that combines shared memory for tensor payloads with IPC signaling for coordination.

Notes

  • kapsl-sdk is the package name on PyPI.
  • The Python import name is kapsl_sdk.
  • This package is an API client, not the runtime server itself.

License

Proprietary — see kapsl.ai for licensing information.

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

kapsl_sdk-0.1.5.tar.gz (109.2 kB view details)

Uploaded Source

Built Distributions

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

kapsl_sdk-0.1.5-cp312-cp312-win_amd64.whl (379.2 kB view details)

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl (640.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (497.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kapsl_sdk-0.1.5-cp311-cp311-win_amd64.whl (381.4 kB view details)

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.5-cp311-cp311-manylinux_2_34_x86_64.whl (641.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (499.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kapsl_sdk-0.1.5-cp310-cp310-win_amd64.whl (383.4 kB view details)

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.5-cp310-cp310-manylinux_2_34_x86_64.whl (642.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.5-cp310-cp310-macosx_11_0_arm64.whl (500.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kapsl_sdk-0.1.5-cp39-cp39-win_amd64.whl (381.0 kB view details)

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.5-cp39-cp39-manylinux_2_34_x86_64.whl (643.4 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.5-cp39-cp39-macosx_11_0_arm64.whl (500.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for kapsl_sdk-0.1.5.tar.gz
Algorithm Hash digest
SHA256 03966fa7cd9c529b81060a8029066bf824d1faa13a83d20b3ebfa63b6de3b31a
MD5 d2f5a87c2bf7631b4801769f2edf91de
BLAKE2b-256 637ac28fee4d36c0dc0ccdae8b332136be0dc3a1e513f9f918fd64efe5bb753a

See more details on using hashes here.

Provenance

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

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 379.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kapsl_sdk-0.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4efdfa29c01927a2d24e9a017140e935ab7c90a2b0df8bd4f93c7b0d89439dcd
MD5 c47788ea62d0e230ba93d18eeb4c0157
BLAKE2b-256 b18666c40456b7fa6a9ffd09ca0680c97e2bbf11c9e70a4f5863affc343fc2b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp312-cp312-win_amd64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 adba4904573844eb0979e61ff4ddfa16ddff6de1f85dc5359cc5dabad36c2f5e
MD5 9edbf0d2e57d21fb1196beed3f1196ee
BLAKE2b-256 ef28506551355c0249a8f2d2bbfd4306dced835fa2e0b6a6cfc07fefbaba23c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afc08248f08c38da800bf6f658a12d58832143ee701c3f33fc320564eddeae1f
MD5 068899545a760d75f1337066f106e719
BLAKE2b-256 9466c4db401c1194a9a27afb709a0798c1f5f9b546b48dc537fb876d618386c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 381.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kapsl_sdk-0.1.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 558b905e8bc4ef2264ed431f54551b2d8b7395376941844a3b85bf273a4dcfcf
MD5 5ac7a570ee246158a34a507531d0343c
BLAKE2b-256 65ce2a9f9299bdd06b3aaf418356e62c5271b3f345a6d222e27183e208a6a66d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp311-cp311-win_amd64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0063c6b5fe902683dbff1def265cd9a4e4acc3dc6a3d67e6b290dc09a0b649a5
MD5 1805c4c0f96320df4597ac7fb788c542
BLAKE2b-256 768393a913b2e5e74b44388e04c18a9292dd5218bc47fb3cab946d2b23907851

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d35847da20c8b88b799769756d62d2b0335b546493b4da6ca1070a461a37061f
MD5 615ffc1bb240e21a549e7d1ca0f3fcf2
BLAKE2b-256 ec8bcd00b537f6e235db074a3d0f6ab8f05d4cd1749159a2ff6d78c570037553

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 383.4 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kapsl_sdk-0.1.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4d814468a581c8f6a989eeaedb7dd9f96fb407ada9949b81f597c06d42222e3b
MD5 87ee19868b27652f0ddfe4e9ca8f4ad1
BLAKE2b-256 b81d982c8e6aab9ec2719f32e068feb524f60871ee02f16d5dbfa6764ca6d27a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp310-cp310-win_amd64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 52ed4f4c5c16c4037aa352066363a24e9781bd16f40c85acbe8f00ac83657e55
MD5 8c0e872f557c4f466ee21bce4c0e6ef9
BLAKE2b-256 6c017c76304e9794b2df88b792103c875f63f8e2ba9a218c0b50af042ffc4724

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp310-cp310-manylinux_2_34_x86_64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc952d7c2f8f27b14bdb331c38e91b68707451b3b4fb2ffb210c22f73c6b674f
MD5 6bd9623894626c6988c20e53609b677d
BLAKE2b-256 ab6aa8cf47de82924595bed190e6946e8d5387cd8f5acb093d67d57ebae1c258

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 381.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kapsl_sdk-0.1.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f0eaccf0e59ec492f089ce56975701181b6a9114acf9c86776da5d409f5e8107
MD5 0048991992b68e48c360fefa3ca306c7
BLAKE2b-256 60d828de92ec18424b0cf01b850521f5e36a03d046e20aa36be4c40d52976c63

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp39-cp39-win_amd64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 777be590cc4632a2e93d38695e571feb6406b06ce333064ba283c3c87475ca57
MD5 6a89fac9a810896bc18e55d6b2f34d11
BLAKE2b-256 9dbd8652dc11494e52cb9d2a967e62132e07645bf687049c2fbc0c2fe3883a99

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp39-cp39-manylinux_2_34_x86_64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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

File details

Details for the file kapsl_sdk-0.1.5-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44a4d8560a912d1d8e5ef9e275bf24cfc36316f158ed4441901a77db91abed59
MD5 3f8120497629d1dbe3472ade4459429a
BLAKE2b-256 087d5cde63584c5245a00a0c0c22adb1c7d81ef655ab92e667cc2700f25fac0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.5-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: publish-python-package.yml on kapsl-runtime/kapsl-sdk

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