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.10.tar.gz (111.5 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.10-cp312-cp312-win_amd64.whl (387.6 kB view details)

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.10-cp312-cp312-manylinux_2_34_x86_64.whl (650.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.10-cp312-cp312-macosx_11_0_arm64.whl (505.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kapsl_sdk-0.1.10-cp311-cp311-win_amd64.whl (388.6 kB view details)

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.10-cp311-cp311-manylinux_2_34_x86_64.whl (651.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.10-cp311-cp311-macosx_11_0_arm64.whl (505.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kapsl_sdk-0.1.10-cp310-cp310-win_amd64.whl (390.5 kB view details)

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.10-cp310-cp310-manylinux_2_34_x86_64.whl (651.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.10-cp310-cp310-macosx_11_0_arm64.whl (505.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kapsl_sdk-0.1.10-cp39-cp39-win_amd64.whl (390.0 kB view details)

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.10-cp39-cp39-manylinux_2_34_x86_64.whl (652.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.10-cp39-cp39-macosx_11_0_arm64.whl (506.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kapsl_sdk-0.1.10.tar.gz
  • Upload date:
  • Size: 111.5 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.10.tar.gz
Algorithm Hash digest
SHA256 a92393d023240f62c07f5f13505817bc33e792e30290bcb7f3d918ce9e7275b1
MD5 60b5f04cee11b22ea62ecbd58db385ca
BLAKE2b-256 c6d254afece82bda211e5e2ebf1e458ac8033c6217aa6c7999f1f8764b1707e3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.10-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 387.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.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3c286e1aa190d2128d471d0f6a24e2a42a6681188b64835152565cbebd4d97b5
MD5 108947943f0014f9d76b5dbf4ddfaa6d
BLAKE2b-256 e0b98d6fda072f573e41880b896d8316a51ecc1b87e21cd6f0e7094f4f4a1c3c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c2ff7d244fe9a71f62cd51b0b6a0ed0b97c2f45490beb5e58089d338a495547c
MD5 3d2dfe9f5f1381b8718bba86716033d2
BLAKE2b-256 45ef0a28af7ddf2ab443ae0e68b43c472f86095b73b4bd042bf165a0c7ec12e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 891bc94ba13f3cc988d08784e88ae07c9b5ca860776216d2e466fa4ea5190b0f
MD5 963c17629dce167cef9b93f059448f2f
BLAKE2b-256 2f0bbf2edd30beb989c5eea516a6e577609d780a2a0634a8244ff0b890ef17c7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 388.6 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.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 32f7c7ff12369453ce3bdfd595c043c29c0dea4ad66caedcb1f9a40cef005bd4
MD5 8eb48956c1fc4815ca23d5c7b9a2e224
BLAKE2b-256 92e08974e503dc4f0d08891d9ad510d56172529558b6f7a3add5ddbb03ce6e21

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 deac00f4129876d848c60ca43a75f3990201e13c67891088489f18f74fb56e92
MD5 9a56950dde664ee50a6292716eca8345
BLAKE2b-256 27f56998ffc4bf196e5d0586ddab1e0e470ae1ff6977ec234bd190ec04286213

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 911fe43af2a178cf2460aa374b775185411dd209837ecafc0e16fdb7a7dd05e0
MD5 0166ef5b50cdef9061ab50e3748aa431
BLAKE2b-256 3ce805ad4c92c374c84a402a17d08be9a3590002efb74772570e77d26c95755d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.10-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 390.5 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.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f6ff1ccaaad59685074eefdcb494d49cd9c4284193f583a5b307345aef1822c8
MD5 e408bd7915638e5167ed274eba60d0ad
BLAKE2b-256 0b0f80db9d5427a1a688338db767dd5828d742ddedbb29556f9e350da2fe07f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 aed0fe1c034d69e2328dfe4f613bf4822ee17b8967d9fd5ecac3ea6ca67b4210
MD5 61f5381942fdbd4025d6f9f33c99493b
BLAKE2b-256 c39d4facca7c6706bd24e847a0a2f8c4b3f70cc4d5e7f3252140d9f7717cf666

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a549539ddf2efd4afcf12d62084677ba02a2f4553418820d0f455ba6a0185a0
MD5 a5afa13efd8b491e0060394667b7c2a3
BLAKE2b-256 02858bfe6dabc0f556e2e4ea2fd98d3fc93a1898ca7732c9c642363ff812b916

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.10-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 390.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.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0cb479d604ee8b08d431e16b9f5c870709cc86cabcddc8f32779d76eb57cbbef
MD5 571b03b6c4af7a5911b2276a6b0df018
BLAKE2b-256 03da3600140a527d84b0c6214919db6b71ae5d3a7d84fa9e860ffd28bf92e412

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cd0681bfba48763c95432e6e6a792da91e70150df86b311d25d23dd51249f2dd
MD5 4ab784429b2837c97c1e5f869f17a964
BLAKE2b-256 06aed059040e608233ea2f5cdddc4405c6daf83db768a4b5b0527bcb4149fc04

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ed11cfa0aa27ffe4a2ac67c7a0fa8c4beabfe8b7c8682790c8f08bbe68ce0a4
MD5 7d07d46721960b27228bb1108dd50870
BLAKE2b-256 9a13b528b0e072b8d826db2693e59021cb4e9bc3735e53a613f6ea51de06ea5a

See more details on using hashes here.

Provenance

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