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.6.tar.gz (109.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.6-cp312-cp312-win_amd64.whl (383.8 kB view details)

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.6-cp312-cp312-manylinux_2_34_x86_64.whl (645.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.6-cp312-cp312-macosx_11_0_arm64.whl (501.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kapsl_sdk-0.1.6-cp311-cp311-win_amd64.whl (385.2 kB view details)

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.6-cp311-cp311-manylinux_2_34_x86_64.whl (645.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.6-cp311-cp311-macosx_11_0_arm64.whl (501.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kapsl_sdk-0.1.6-cp310-cp310-win_amd64.whl (386.9 kB view details)

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.6-cp310-cp310-manylinux_2_34_x86_64.whl (645.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.6-cp310-cp310-macosx_11_0_arm64.whl (502.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kapsl_sdk-0.1.6-cp39-cp39-win_amd64.whl (387.6 kB view details)

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.6-cp39-cp39-manylinux_2_34_x86_64.whl (646.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.6-cp39-cp39-macosx_11_0_arm64.whl (502.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kapsl_sdk-0.1.6.tar.gz
  • Upload date:
  • Size: 109.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.6.tar.gz
Algorithm Hash digest
SHA256 841b151481840bd17866ade19655c3fe68d600f2c843267b2140126915ca0acd
MD5 60e7d30148fbf3e68f34f19ddadc004c
BLAKE2b-256 4f1e6c225b889f3c012babc760a21562ce8e2a1c06dc13f0e1141dd8d4e81bdc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 383.8 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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b187681bd9ab8bb7606a6f31ff346f9c1d894b253a5ac92e66f0aff93be4b709
MD5 f43c8ca15a960dcf9517606d082449f4
BLAKE2b-256 30d6c62bf97f34f4d7e4783c8959c5f00e8bf968977ec890a9edd78a4ff0c287

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bdef017a28143934f416fbdbb12f3baf83399fd1118d8959b1543ebe391ef898
MD5 dc8774844fb7ceb532611d84cef77c1f
BLAKE2b-256 f942652daa1352b77d460e806d6b0d40a30348260c5d97a43859dc5a573bcab1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2711b85df9004396c5cdf76e19be74f83ed14c8a0e1c829ffc8eadd5c30967b0
MD5 2a50199c768f6c5925c5142ff0a50c2c
BLAKE2b-256 5ae0ab074b4b63764324e0a66ec8bca874aabd1406f50d75a67516fa86eecae8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 385.2 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.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9af159b9da89c95d231e1626d0f5326009034d5a4554189117b1c6fe46dad0cb
MD5 e47f476ec9f11388ec11b16928478551
BLAKE2b-256 658b94287b2c76bdabb5edfd181b52943777fd0981ba7a4ce5db8e34b9e534b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4f002e3591e922b5d139b41544f7b82f9180c921a8e90ac7d5149f06078fc42c
MD5 d9a7d7b18078f68aacca721473dc324f
BLAKE2b-256 b4217aa22414044ea61bb5fbb91853b43c5d9f44cc2908c7ab3c3378da80ed27

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cebbc19badf6936793481eda674a70a6375eff9e9b946e2c19c9de0b876b87fd
MD5 c79d04cfc611bad85bdfd1e4523a1d05
BLAKE2b-256 928cc1a0fa7cd0f5314bad1f9acdff652b97060dffe76686bf661f660d3c72dc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 386.9 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.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8e2d32a4bd951f703806e3f3769b29637a303e0065669ac2c7688e13c300d4c0
MD5 5d9acb50b52f8aa0bb72a9ea10da4add
BLAKE2b-256 39826220ae7909c93b0814d3aafea4129b21f1f9e95ee063d93e9770d3d552ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d3a7ee09d14b53d0eb6e0789140c95a28ec9f8fa27d1cc01f09ff3174e06e2d7
MD5 7e7e3e76abd51d62268976d61950a62f
BLAKE2b-256 c1d2aa8b10c253d94c416681fbea9e7c97994012043bafca7d97cca716c05344

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 804dd491ebdf0dc1e77bafdf7a71e404529098c802df5c2dc013696e13930253
MD5 327c8cebd8668ed88a96c43f776bfa23
BLAKE2b-256 8d7b0f83819f279d984bc7326beb37d07924966f9238d3b0a78f875f3c982faa

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 387.6 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.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6262f8619ad5615cc2eacce451ca7c01aff891e90cc7c7fba2fb268fdce745e7
MD5 9bca1809c6d26f576e2a5d571f2af463
BLAKE2b-256 11f089593d9d3d04020889b46538a5b3ae9c5c43b72864e5621562b26f694167

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 212885bf536db9d13844c2f7730ee2cfcf63a99f6993e8d8c92b2c35023b66c5
MD5 6890ccc1617c898377dfa80c397f4441
BLAKE2b-256 cac8fd22c12c75846b3ba8f4f1f16d4e45cd7c291513f5c4e0aa764110101f42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca01ef329de9d2bc09a1bf85f93592eb998e3b29584b5d1a388773b0bdaa54a4
MD5 d0e8c6cb3f7bb4542c39d0bc73c94390
BLAKE2b-256 389185716c44fb9760ac85b259a66ebfe80e69633552314b9e75b72e3e3c6a17

See more details on using hashes here.

Provenance

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