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.3.tar.gz (108.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.3-cp312-cp312-win_amd64.whl (371.9 kB view details)

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl (631.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (490.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kapsl_sdk-0.1.3-cp311-cp311-win_amd64.whl (374.0 kB view details)

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl (632.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (490.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kapsl_sdk-0.1.3-cp310-cp310-win_amd64.whl (376.1 kB view details)

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl (632.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (491.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kapsl_sdk-0.1.3-cp39-cp39-win_amd64.whl (374.3 kB view details)

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl (633.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.3-cp39-cp39-macosx_11_0_arm64.whl (491.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kapsl_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 108.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.3.tar.gz
Algorithm Hash digest
SHA256 5c9297151c2eaf7d6a52b657a371e53cbb331ba950a674120a17eb07e85febdb
MD5 12579df256678f21e419091ae56afd04
BLAKE2b-256 d83fb771bec68ec6c3d75051a575c8b1b91dc3fac705951c0f2a261fd8e379d2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 371.9 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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cfaa88154844ec773bffee527d72eb9871c007e4ede3940c4f53cc9654767309
MD5 820b1b98a706547a2e76943d237f88e3
BLAKE2b-256 09f79618bc711a34a9972dcff26184442c056522512f6e6f56b64988156e771b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 88343ca431843249383231394bb5d3b79b5dc526ebb437adc03216da7e04bb2a
MD5 8914d8fd8cab94b5217b8fc789731575
BLAKE2b-256 256d2522f30c00d6d2dd1d80f00d049ad3cc79d6f744c9884b085f9c1e74c5b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb7cb990e4ce9744842279eea8fc37a52bfca1dd495eb3f0695398c718d9c335
MD5 4eeecd9ace5a946c0440a42d4c4a96ec
BLAKE2b-256 9a9daa8b3708266f07df0510692a42176c23945b3fc75656c9ed692e8b28ce59

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 374.0 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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e54f9ecff5db2eecf50b576cedbe3c8448e6407a9c8a3bd37f83028d23238235
MD5 571fb5156d5df2c1e71e0fcaeacae7c3
BLAKE2b-256 498576a36da9d3c01f4a8fa92c92dc0da42685c26d1c4bcc6d6848baaa6e1969

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0da7e91cb96d79b7509a2e17ea055a953758e751c79f4d2c5211cf7ef9c7d041
MD5 b7f886ede80db4c8944cc456f745b93b
BLAKE2b-256 13337dedab5b608915d6e00d81f4a72b34fd7c252ee9d07f0383d544fec5934b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8995ddac114f2af8836bf29e382dc0d077fc1f70e564851559a4c87fb40f2392
MD5 edd6990404b5c0d201b41201cbcaed62
BLAKE2b-256 bf616447f434ff0a8115cee6ffb86d9c92775bc1557482d9dc16e165ad409752

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 376.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.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ce1c027e90c305fcbc227d0e2448b9ff1ad1a57c39b5a70df0b983e812a84669
MD5 6d94faaa1fa29fe987eb8d50e5d18969
BLAKE2b-256 6d7a0355f6dcc19472fc829e5751a00c1cd72225fa8d6cdf4162a8dd3e4734ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b5b040b7ad4ce8e698ca8ea2539b2f03477df38ee8aa2dce600ad968eff11bb9
MD5 85a6a43d3234bcd1755a63731be18d9b
BLAKE2b-256 6c734ac862caeec419c48a6ff123ea989c86b3a55882b73d67aef5e4893ffcda

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9bad8b321c1bcaca00b9ae2ffd0f8f18e378a4087ba701b2d2f4af485ac5e48
MD5 06c95668faa0e166f07ba0eb9945a344
BLAKE2b-256 096ff728a551d495a20baeb69b47a4da65be8d6104f669624d8d7f1d8d05ee07

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 374.3 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.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 814513df666dc8700100591aaa0a25c66186e77a78aaf33252a76fd34e782dfe
MD5 56747e3c30238e7e29bd9512b4eedf0d
BLAKE2b-256 7c47dcc5f7f83ec706866173baf976ea2fcbd9ea66a69dd256fa7d0bb21ae53c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cd1a740a5dc7bf3b56f4d5fde4bfa10fcd0b5e33ed473400513e41b12ad3d983
MD5 8a116bc110bb4bb20891f40ea4072ebb
BLAKE2b-256 746ef35054b101f730c87a1fe417bb1a1bea793322cf110698eaef54ad5d2bb9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32347a17585a327b89600881bdf0a42507157a340a4911ee5dca0f615415af34
MD5 8541ad2f27770f42bf6eaad3bf55d91d
BLAKE2b-256 bc53c8085e1cae6061ffcce62a0f7cd2c27f1578bf3eaee96aa8bf0687cecb71

See more details on using hashes here.

Provenance

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