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.7.tar.gz (110.1 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.7-cp312-cp312-win_amd64.whl (388.7 kB view details)

Uploaded CPython 3.12Windows x86-64

kapsl_sdk-0.1.7-cp312-cp312-manylinux_2_34_x86_64.whl (651.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.7-cp312-cp312-macosx_11_0_arm64.whl (504.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kapsl_sdk-0.1.7-cp311-cp311-win_amd64.whl (390.5 kB view details)

Uploaded CPython 3.11Windows x86-64

kapsl_sdk-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl (651.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.7-cp311-cp311-macosx_11_0_arm64.whl (506.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kapsl_sdk-0.1.7-cp310-cp310-win_amd64.whl (392.7 kB view details)

Uploaded CPython 3.10Windows x86-64

kapsl_sdk-0.1.7-cp310-cp310-manylinux_2_34_x86_64.whl (651.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

kapsl_sdk-0.1.7-cp310-cp310-macosx_11_0_arm64.whl (508.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kapsl_sdk-0.1.7-cp39-cp39-win_amd64.whl (390.4 kB view details)

Uploaded CPython 3.9Windows x86-64

kapsl_sdk-0.1.7-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.7-cp39-cp39-macosx_11_0_arm64.whl (509.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kapsl_sdk-0.1.7.tar.gz
  • Upload date:
  • Size: 110.1 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.7.tar.gz
Algorithm Hash digest
SHA256 594c09a8dfeae912e0ab65c53e3c8fe290bfa75872639dacb3ca6b985110db82
MD5 38f2456376a777165a4fc0f4388602d5
BLAKE2b-256 d9f9b3b017c60045d0e1f1c199a6ff1251e9c799196d4608171ef9e3442b5878

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 388.7 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.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 af56ad01270395cc7c5d6caff4a9c1b92a92b046ea2c61be7e2f033795ccd46f
MD5 8219d3d8b3a72b1566c1128e261d9643
BLAKE2b-256 ce64394a2b5e3cf78a402f2cf968ed0f72a8e1cf60e8d507e4042c473c1eb20e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 07130e5a5c6ceb11436a18e1e4f767ffe152f13e1580b811deaa2177dc2b733c
MD5 938e04ad67ed4d912354ff1de6c6eb60
BLAKE2b-256 ae0c4e5a99347009023841e0c9e5bce096915d8ed63a37ee2b4a607ccec91219

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfed17025b81e4ba1d77e7b15dcd6a16cadb417563af1e8e93aeb8842fe9c706
MD5 183205d26e8296ca38a454253b90ab2a
BLAKE2b-256 542acffc8029c19513cd9ec2ee6327cf49466052d882df80ebfcc46351a7b5dd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 390.5 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.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0798e355042bd0dd4314a46c2cdee0e0fde1e49d56a5f15b5b0b6cb01e77437e
MD5 5950427a08b76aa659856300a8da82ba
BLAKE2b-256 1e7c4daa2cb4d783700792882689fb87347ef34da1c73087f6c479bccc8433af

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 26665f525c2bdf113a54a53c27d33927107f8b15799c2cf04a1d9655364e6269
MD5 a44d1a72562d969b7e6ba55aeaf69c01
BLAKE2b-256 8b37680b733df77feba7096b188aba5cc0248881e2ad8e22f89d9624c6cc2bc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 004958c6a4a908f5e893558fc95a2a3fea00d7755074f9d68cff3a84ec96b211
MD5 67d5f4adb0b3757f99280bafb0df813e
BLAKE2b-256 0d4e7c020bb4a976d334f97e1ece2fa2767c0d72080bcfd507ad1d43c9e5aa52

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 392.7 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.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 edc1ea4a42061457e32ad7c4085540102ccc8d652f452ea6844671ecb1d9ef7a
MD5 364214050b7d9245fcd2709ff6b6b202
BLAKE2b-256 614811bf42c626fe75a414d7f74f611c478e46ce6c535c63ea4d5db80a8f55ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 70942c1ec806fcecb9060c52f777ea9fb41e0d56dd2e1f0a2886df94d41dc18f
MD5 cb81e8fd55c817cfafbdae397e1f64d4
BLAKE2b-256 f84ae6b8b51835c790bb5c275a72e9bff842f0a48319933cc4ce6b20cd1dfbd4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0770345f1c83e47001d95bb27e06b59ba37d047d5a78fdae07e54bde296cb36b
MD5 93c41d96d6d7c5849045fab8a71f12bb
BLAKE2b-256 04f9e20b565c7053f79ccee478918d2d8bb17c34aedf717727df0721774c672d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kapsl_sdk-0.1.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 390.4 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.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 218b892bc9a0cc576845c75a139bfc56f39388e574fa4b790a5f8e32aa4a4a93
MD5 4203ac77b9e792638e174d99de3a3ffa
BLAKE2b-256 6436a3408e0a9f09a43df60bd2e025afbbd1f46cdb9aff856cbe61d17823ced6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 dd98152c9ccde4a6851dc0bcebc28bd3138b6df683fbe607f494fe168adf53ef
MD5 9034078d2d246c366ee25fee77e9e453
BLAKE2b-256 8d4e1433d1a317ba40fea8fb4bf1057e397a3b6a7450192bb969a31585bcc823

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kapsl_sdk-0.1.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d85b63c034641a51133987cd4cbb92d9ca284a0926679cd908cf6e44e4750cec
MD5 6cdcad5504242242e12c27904174c3cc
BLAKE2b-256 b5d1f24000dba3bf3e8b8e81168c7b67da176123890f576792fb208a498b492a

See more details on using hashes here.

Provenance

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