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

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.8-cp312-cp312-manylinux_2_34_x86_64.whl (650.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.8-cp312-cp312-macosx_11_0_arm64.whl (503.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kapsl_sdk-0.1.8-cp311-cp311-win_amd64.whl (389.2 kB view details)

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.8-cp311-cp311-manylinux_2_34_x86_64.whl (650.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.8-cp311-cp311-macosx_11_0_arm64.whl (506.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kapsl_sdk-0.1.8-cp310-cp310-win_amd64.whl (391.5 kB view details)

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.8-cp310-cp310-manylinux_2_34_x86_64.whl (651.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.8-cp310-cp310-macosx_11_0_arm64.whl (507.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kapsl_sdk-0.1.8-cp39-cp39-win_amd64.whl (389.2 kB view details)

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.8-cp39-cp39-manylinux_2_34_x86_64.whl (651.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.8-cp39-cp39-macosx_11_0_arm64.whl (508.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kapsl_sdk-0.1.8.tar.gz
  • Upload date:
  • Size: 110.0 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.8.tar.gz
Algorithm Hash digest
SHA256 db9632a91336122c7cfccdaef5c81bc64682b1671817bc1c82a2260dc89989a7
MD5 6619180a4b7bebde34cabdd931450647
BLAKE2b-256 530d2e7ad238d84daf55021aca50e6cbe98dbb1db4812414dad074c7bb78eb54

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.8-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.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 90273eea978360a84b4af2df6852568d232593a9a9c44342bc80c08968dc4b21
MD5 ac41bc5f8a12aad201623e56673543d7
BLAKE2b-256 dd18bcdb0725b8f1acf60c05ded33731c926ce4e3b21d03d7082873dca1c1fe7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 817d493dba88df52b63bc08ff977eee2efdcc54c1bd42fea8ab6c86113e55c18
MD5 43b8b8e8ee8bc8af35d1db496c1dd362
BLAKE2b-256 d4a4d2d9b45fc253be8157d8bc393521f62dadd032ff29337a33b413baf4f83f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7608ad6b1ccf3eca7e0d8e13501695b889135f09f13be057c4cf2e15c8a52978
MD5 63da95dfa678d6d3b2a1e258ce0ae7a8
BLAKE2b-256 9b0ce1f9831fbfb6cc48d6c2779132419a36067d1fcab113309a31b216eab225

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 389.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.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1d56d35536486aec5c7df665e0bfe8dec4e65c49144671b15ca9342cca15c458
MD5 1c8cd948c31ea4931ca43adc466b93c5
BLAKE2b-256 aa9f46385343bbdf896ac31b6d1752698b3a15e4e50c30657ba4b999b4beca6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fbdf1d97579d715a1e082898ce3d5849971b7d66a61c41a614c1bbf6d8c3fd1c
MD5 b784f2a9f6f8e408a8ed609f34089015
BLAKE2b-256 e108b31df37a3c356dba496163160ecbc2a38141de2c1c3c94c7d1d3ac4a8c2d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c347d8c91cef7ebb760d4abf648156cdc39ed718c5d9c995f4f62c31d774df35
MD5 67f3f93ebc1ab499b9a7ed1c05a05206
BLAKE2b-256 7af65dfc3d7d4d5e77ca6668e7c636c1094823f093aaf94ea9cfd6b1582fe775

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 391.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.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cfee9ca583be6d05c235940346e48aa23b374f2819f8076a56aa507fa4f4ec66
MD5 3c303309e57066a853549d667206e27a
BLAKE2b-256 81cf3509653d6c816ff9d013c80cf7d90cd238a41aac47886482d4daa566696f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0a56432dba2afe844ca0152f5cfda9ad8a238673e7d651e2e85aad4ac9819351
MD5 634b4857f926d99f68c55300f6e4bb19
BLAKE2b-256 0eb5acfc026d86af209567a593a7ed7b528544b31b622e6135a535c220ac35bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e4a55b812f7e14d65e50558486d5c153cb952937d0fec92b5d4231329055a1d
MD5 bc2b206efd1c9dd80d1365f4513802ef
BLAKE2b-256 d3285228524c9f0d7477eb24fb3742748ee5ac236da9c7529325eb63abdcd66e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 389.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.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8586ef284e92d54ca3e256a1d7504e644e60b268901ee831cc10347d74b0dc86
MD5 891c3a291271a99d2f3467415817d20d
BLAKE2b-256 459346e78ea601b8b095f17862ce22c02cd3c3203776142d0a22dae177fd7f89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 dfbeb9823a4d97c5c3919c523a215f858cf800f0b5eb9192ba8f3d360ceca2ad
MD5 220ea2f8929b24bbac7c6e342f889431
BLAKE2b-256 a4e32604d3fbd39a9db1cd886a2034de37c719642d594265ef87d86375bd70e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ab277a40208a2fccfbfd779ef1c2b9beed5f0a59eef2013411ad676f1bc3390
MD5 0f34a768ae95343bb5d7178c3080a6dc
BLAKE2b-256 9f18de86a39d9c6c50679613cfa4f5ea23e33d189b3f757d40a82991960d1343

See more details on using hashes here.

Provenance

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