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.9.tar.gz (110.3 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.9-cp312-cp312-win_amd64.whl (387.5 kB view details)

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.9-cp312-cp312-manylinux_2_34_x86_64.whl (650.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.9-cp311-cp311-manylinux_2_34_x86_64.whl (651.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.9-cp310-cp310-manylinux_2_34_x86_64.whl (651.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.9-cp39-cp39-manylinux_2_34_x86_64.whl (652.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.9-cp39-cp39-macosx_11_0_arm64.whl (508.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kapsl_sdk-0.1.9.tar.gz
  • Upload date:
  • Size: 110.3 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.9.tar.gz
Algorithm Hash digest
SHA256 5004274ccbed6831db6fb81f1b202728672667487becee70a8c837c905921cf6
MD5 42d3afcc1ec89888981cc9bfe374fe3e
BLAKE2b-256 65094f727aed204101b50e6d45de0320d6143554f248cea69c92b81bb6012f25

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 387.5 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.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0165411a3fdeaed36862fb76d6fedba9930fca05d4495374a5c1abe9b18f11ce
MD5 22c5fadff6f38cd0e3299e8908b4e12a
BLAKE2b-256 8fa685027f9f26182807e6cb097c077b0e0433475b97f9a2db2ef6ef0e7d2e60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 67e34453e4cd2b6da0bc890f1ccb66871fdd869c37206d82dd104f5fa1df75a7
MD5 42251fe08be1acad6a5a5c417fe30ece
BLAKE2b-256 c28a23f34b2e57ab31af06e1910a880cd0187410b2fd4b99d2aa19deefa56ef0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3838956c73003b255be2e2e837f5592806c554be9f4c182af21d365a7e484ae
MD5 a580a9d6b218004d7658467235a03205
BLAKE2b-256 5716fea6224ddba23eec79542b6d0ed52c8eb066ed9d307e1830ff6ea9b07bb7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.9-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.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e0d80c0a48845204805b6ad8ec8e7b7db7fd34ab81a0c57141ef2ca79710b4db
MD5 f4a822bb9ae83df0745bff2a0e8bfc35
BLAKE2b-256 77ab029c0dc4054b25c541edd72eebcbc8c3979afafa5fbe71ccda82cf001776

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b1a5166f85ee2cd89fa40a456b0e9ea725fba6a337ebf7423e96a873afebfd3d
MD5 71b8a00ff527fdbe0d0717764d8a47db
BLAKE2b-256 e79390c2e260e985a2e03809c636e04a92f4a876d8206e2b412d8ac21c3040e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81df1536388dcca4d0642e351f6318fb51855b306e17efcbce5b762671a703c7
MD5 9f6beae96a54c130421d9320e1b87562
BLAKE2b-256 283094830a103cb7d1ab7cf9a016097f0c3de21feaf89d9784794bcda8a73a04

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.9-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.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 346eeaa77e87f33d959abd9bcf66bd7fb6981e9304b5373360ea5b312655c125
MD5 92d192ada269c9c877cd4f6f78cb82ae
BLAKE2b-256 879b1ef814a208bf9586011259123b7fbd67ae6d691265d03b35cdc33c719071

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b134cff74a0e17e6160839a92b7957ca4e24b9558e27d5e51f69ee7301e3019b
MD5 a386296596a7b5df887b03d51ae67904
BLAKE2b-256 7e2bf6414a5278fe39227d38e00701fa5a4d23b989992dbfef146915696c50b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f7d28eb50fe509b0bb14393b60086496b8f90fef629a440ad13e5e23927c840
MD5 f8716b70efe9b0f7eaae1cc579fe9703
BLAKE2b-256 4143a1cb194dc1ca8e7e05b238343d63cce3c3c88e06a0e67138529925331add

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.9-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.9-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 00f11d7fe69765458fdc6dc4d50e9d39171dd0a609d115c64b6aa76e2c096b5a
MD5 a9122e4aa7ddd352aa27acd4002f4b1f
BLAKE2b-256 c9fb9015888842d1ba8d212903f79c436829939e5276f2c56d5417d2767c6f48

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e45eb4168f9d1079cc3ff550a9f841a32568f4523b6440c5159fd126164e6801
MD5 b5ee42a73603aa4ad65bbdd3326bd2ed
BLAKE2b-256 0e6054007f0fbc5e9f7d99242bc0dfa4bd122ce51bbf05d025446f00f612bc08

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.9-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6c266b3a296b548cc20654551f3a4cf90e3442a59093f18db2955a3e3d9a0f4
MD5 2f2b1871a91a9bcc87523e90c1ead3f5
BLAKE2b-256 f272b6af0a90b6085af63271d4395262255869533cc05255c2fe50b8a374e725

See more details on using hashes here.

Provenance

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