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.4.tar.gz (108.6 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.4-cp312-cp312-win_amd64.whl (372.6 kB view details)

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl (633.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.4-cp312-cp312-macosx_11_0_arm64.whl (491.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kapsl_sdk-0.1.4-cp311-cp311-win_amd64.whl (374.9 kB view details)

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl (633.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.4-cp311-cp311-macosx_11_0_arm64.whl (491.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kapsl_sdk-0.1.4-cp310-cp310-win_amd64.whl (377.1 kB view details)

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.4-cp310-cp310-manylinux_2_34_x86_64.whl (634.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.4-cp310-cp310-macosx_11_0_arm64.whl (492.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kapsl_sdk-0.1.4-cp39-cp39-win_amd64.whl (375.2 kB view details)

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.4-cp39-cp39-manylinux_2_34_x86_64.whl (635.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.4-cp39-cp39-macosx_11_0_arm64.whl (493.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kapsl_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 108.6 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.4.tar.gz
Algorithm Hash digest
SHA256 58715ae15d8f9d966fa7f7111d01a3e9816794ce65021301d34ca9d05c767c4c
MD5 511f192827e692e3f175f46275ef81fe
BLAKE2b-256 7e712284ddce5149c80598862b6dd581d1587cc671bd80cea1960abe294f8ba6

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4.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.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 372.6 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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d000155ed7d6b1de583a0acc976fa35d1e69af7929783014fa6c3e6eefd841dc
MD5 68737de3aec2fe29a1d543bebaee4895
BLAKE2b-256 f69e8309b6a4d91fdf4af2a8c96892054556cdb2d90be33844931553b383ab8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3d12f9d3547e1c71cbef52a55a2889b23d8475707d91eb270f7c67f16f5a4b77
MD5 63fc23b9af5e392b56ab1eebbb7435b7
BLAKE2b-256 022866b129d47d9655e6917adea5535c7c77485214aa201e29e475c103b338f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5093fe281c999242f2f2bc48fb242da28eb7bd96e3dc3d2dbc295761922e6af3
MD5 6b46ffde99ded548cf4a3fe2d052f9e8
BLAKE2b-256 ad313d4c80b96cd6bbd6b33c6031a556c0ee868592513b8236e316476f735471

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 374.9 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.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a6a82f6a7a7d1773a4bae8011e9bc7bd01a1d0cb760c20e695543dc76ffef70
MD5 d2ac08471c85f32beec5372948aa2668
BLAKE2b-256 07ea83af3e23fe21f52d309079c05523aedafc710eb1d4e589957ca287baac69

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b5ef2f73339e93dc1ab501f91d1ba52dc200f42beadae5c08b6d88843ff3a62d
MD5 38ca8cb138c6c1b590673c0729f74962
BLAKE2b-256 78d1718a37978b7305dec40f4386f8af5919bf8c8202f3f75fc67863c9034d16

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b2db4de20760617f828ea6ec2498ec8db0d0a9a27907c76b2d61efd064549bd
MD5 0f81f6209063ec8eb333e99b05da3561
BLAKE2b-256 d4aa476c9eaefd03b0b3742f69421f973edb90bacc5c448e6bea18e00af8fdd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 377.1 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.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 05ba3d98898b2034d45e258647524fb746ef930fbe9112aaeea3bb5352e4677f
MD5 1913108a3d400ba5b0cdcf8f196b021d
BLAKE2b-256 5b8738f03d0773c89bbf58745c87be7b8b1adf8fb547372757befdfc6ec82595

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 84e5222270a50e1b0f8bc4fabb28a9ab74e23e7c3be7f2eca66565c4b75c7d7e
MD5 eb5a320abfd834e88bddb2c675faed02
BLAKE2b-256 598acd40aec4ecdce577c06496fff4598da226508dc5c8b958532b1f688348ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 858b7b3958b8947db69d4446d090944616cc35cb4d3cdb4bb96729427f2e5f30
MD5 cf0d4c1829f0fce6dcad2f0471315731
BLAKE2b-256 86a3911aee422790ebc9a3b1dc90216782caa851e427c01a47e9df15627f0aa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: kapsl_sdk-0.1.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 375.2 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.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3a0ef2f8b920a6ef1cc70c7f5f35b1dd2be9e23a784040077a63145dd16b8673
MD5 0feb829a1c56d08d1a4371d287253f19
BLAKE2b-256 0197749b90b4400f946db6847f8a85ca03dbf9a46f8e7d29b348235ec389ae24

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 09ec9f762d3746052d546756b6033d0c98fe8afdc69d1e5d10f2c0c5d8048de0
MD5 62a4e11c395104d9a0ad847e92ec25b1
BLAKE2b-256 ebea6248b1b460525b0988847ff1bf8b20787c62ab6f791ca0f7f432f62a89b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kapsl_sdk-0.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90fa61fe41f289ed53a294914697ca2a07b0e048e6f1da1109eede949c67753e
MD5 1756f9650461c6bdfef27e830fd29147
BLAKE2b-256 d331e15e71f824c4477af8b7f113b63b9e4c5e48d46fd820d210e29db74b404e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapsl_sdk-0.1.4-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