Skip to main content

Easily call Slang functions and integrate with PyTorch auto diff directly from Python.

Project description

docs ci pypi

SlangPy

Introduction

SlangPy is a cross-platform library designed to make calling GPU code written in Slang extremely simple and easy. It's core objectives are to:

  • Make it quick and simple to call Slang functions on the GPU from Python
  • Eradicate the boilerplate and bugs associated with writing compute kernels
  • Grant easy access to Slang's auto-diff features
  • Provide optional PyTorch support out of the box

Documentation

See the documentation for more detailed information and examples.

More information about Slang in general can be found here.

Installation

SlangPy is available as pre-compiled wheels via PyPi. Installing SlangPy is as simple as running:

pip install slangpy

To enable PyTorch integration, simply pip install pytorch as usual and it will be detected automatically by SlangPy.

You can also compile SlangPy from source:

git clone https://github.com/shader-slang/slangpy.git --recursive
cd slangpy
pip install .

License

SlangPy source code is licensed under the Apache-2.0 License - see the LICENSE.txt file for details.

SlangPy depends on the following third-party libraries, which have their own license:

SlangPy releases additionally include pre-built binaries of the following third-party components, which have their own license:

Citation

If you use SlangPy in a research project leading to a publication, please cite the project. The BibTex entry is:

@software{slangpy,
    title = {SlangPy},
    author = {Simon Kallweit and Chris Cummings and Benedikt Bitterli and Sai Bangaru and Yong He},
    note = {https://github.com/shader-slang/slangpy},
    version = {0.43.1},
    year = 2026
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

slangpy-0.43.1-cp314-cp314-win_amd64.whl (87.1 MB view details)

Uploaded CPython 3.14Windows x86-64

slangpy-0.43.1-cp314-cp314-manylinux_2_34_x86_64.whl (91.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

slangpy-0.43.1-cp314-cp314-manylinux_2_34_aarch64.whl (90.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

slangpy-0.43.1-cp314-cp314-macosx_26_0_arm64.whl (42.3 MB view details)

Uploaded CPython 3.14macOS 26.0+ ARM64

slangpy-0.43.1-cp313-cp313-win_amd64.whl (84.1 MB view details)

Uploaded CPython 3.13Windows x86-64

slangpy-0.43.1-cp313-cp313-manylinux_2_34_x86_64.whl (91.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

slangpy-0.43.1-cp313-cp313-manylinux_2_34_aarch64.whl (90.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

slangpy-0.43.1-cp313-cp313-macosx_26_0_arm64.whl (42.3 MB view details)

Uploaded CPython 3.13macOS 26.0+ ARM64

slangpy-0.43.1-cp312-cp312-win_amd64.whl (84.1 MB view details)

Uploaded CPython 3.12Windows x86-64

slangpy-0.43.1-cp312-cp312-manylinux_2_34_x86_64.whl (91.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

slangpy-0.43.1-cp312-cp312-manylinux_2_34_aarch64.whl (90.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

slangpy-0.43.1-cp312-cp312-macosx_26_0_arm64.whl (42.3 MB view details)

Uploaded CPython 3.12macOS 26.0+ ARM64

slangpy-0.43.1-cp311-cp311-win_amd64.whl (84.1 MB view details)

Uploaded CPython 3.11Windows x86-64

slangpy-0.43.1-cp311-cp311-manylinux_2_34_x86_64.whl (91.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

slangpy-0.43.1-cp311-cp311-manylinux_2_34_aarch64.whl (90.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

slangpy-0.43.1-cp311-cp311-macosx_26_0_arm64.whl (42.3 MB view details)

Uploaded CPython 3.11macOS 26.0+ ARM64

slangpy-0.43.1-cp310-cp310-win_amd64.whl (84.1 MB view details)

Uploaded CPython 3.10Windows x86-64

slangpy-0.43.1-cp310-cp310-manylinux_2_34_x86_64.whl (91.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

slangpy-0.43.1-cp310-cp310-manylinux_2_34_aarch64.whl (90.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

slangpy-0.43.1-cp310-cp310-macosx_26_0_arm64.whl (42.3 MB view details)

Uploaded CPython 3.10macOS 26.0+ ARM64

slangpy-0.43.1-cp39-cp39-win_amd64.whl (84.1 MB view details)

Uploaded CPython 3.9Windows x86-64

slangpy-0.43.1-cp39-cp39-manylinux_2_34_x86_64.whl (91.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

slangpy-0.43.1-cp39-cp39-manylinux_2_34_aarch64.whl (90.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ ARM64

slangpy-0.43.1-cp39-cp39-macosx_26_0_arm64.whl (42.3 MB view details)

Uploaded CPython 3.9macOS 26.0+ ARM64

File details

Details for the file slangpy-0.43.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: slangpy-0.43.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 87.1 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slangpy-0.43.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 841b3eaa19aff4c40b9bab8e17f9ef17e7d69df4fea59ddf81aaf0398f8cb4d5
MD5 157c70b0a29b2c499a3be76e313f035f
BLAKE2b-256 67ee27fc0b30d3e081bcf0bae81886eecd9a2f70c004e6925f49f3d5f4d46a03

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b1fa32b60f867f085e1b626232561d785f69d78950d929c2a9d704da80e2a1dd
MD5 e14c0dcf7c458238d1a5be97767f78f7
BLAKE2b-256 7ac48fb2eddbe74c4604573c7e2e6e6d6992a3e8432bf27b11a197938fa13f39

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b31ea105a1f231973ebac7a44d304923c2fd8e0a9b6fc9b0ad4e642ecf888ae5
MD5 f6b0ecf3328f378479fe623b97ec8143
BLAKE2b-256 8f9e84136ed56591ed2afb51a8826c4df0a8d72b7714401918096da0904e5616

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp314-cp314-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp314-cp314-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 a0e6c3a23a6259a33cb329578ea71241e18e2ebd4fd5374b42c68d7555ea1d96
MD5 84bef12a986a3947d9327e309c39cae5
BLAKE2b-256 7eb921828896b761eda953f4768a1f19df11a24d8bc3ce786d848541bbf2d30f

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: slangpy-0.43.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 84.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slangpy-0.43.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 10c8ce3c33d7aae535d53abf44acfee8e07cd2febd9b62a43dd2bbc311d683b3
MD5 6bcb4f9253f012a3d5ea3b185691356a
BLAKE2b-256 e4db9d8a0e79478b25efc9e3cfb920e8bc66071320665fc6125bc8f4134c8cb9

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fa77917ca086473a9067649644dbea4b2b036882fb3d8c9482a1cc7d213ff264
MD5 f91fc5c7669907f6b55634430af405e4
BLAKE2b-256 120cde6343148331239e776243634967a69eb6e6dee9f585f9d06113a214e3c4

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 e5fdf12f8469622bdd93471edf89c89a8d7f681129f31704ccbacb91bcd4c31d
MD5 fcf16a81c9d3a6da9add333f8944d658
BLAKE2b-256 5b9e6b2ce89951cd973a3bd8a402f4a5a152303f0b72b8c7f8572410617d2ee7

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp313-cp313-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp313-cp313-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 cb36c236f49e32c4e21fa661f84a91f023a6e4480f364b7c563b81d439f451ac
MD5 fdeb440a7ba98a3ab1ba937052159ab8
BLAKE2b-256 c554df84df79c56c1d530030a75425cb1e2ce92f2c4bdb1ce3afbb976485eb3c

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: slangpy-0.43.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 84.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slangpy-0.43.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 878021bd2a8dad27eae9aae4f252b6ebbd7d29f3ae545c02bce6c619968720eb
MD5 36acf27fa472e821bd904d5c012fd529
BLAKE2b-256 a7af81eaf29a574e27c143da02653fc82cdeb97ab1047bba61b76c772d223bbf

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9e8b30da997ec58a9c76b9691be2ebabebe7e0a405831a064e67b4a317ce4138
MD5 ba0e0fcde0060b8f1310a55d54dbac67
BLAKE2b-256 ae69f75c4ec0f59a079da1681786bd2e37ec22a6a5072f3a3072d4477b646154

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 00ff3b9f52ddb8b9a95df7ad1a75a62e590224ace06a6680a4d4b942f907f49d
MD5 d9f7fd6971a9789df65dfb0b6d7e909a
BLAKE2b-256 715820e8853029119f0daf1d27d84379a0857a056c56aab4de8d95ccd19a91bf

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp312-cp312-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp312-cp312-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 935dbe73580a56d197d91baa51f819af6ba0e6531512c2425f822fd7e80ad24d
MD5 8baeb6173d21a0b876a0e5ff8449a7e2
BLAKE2b-256 47e4849c63d82210a1d88d645b592581383b3a29440c570a33f1709724708bc1

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: slangpy-0.43.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 84.1 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slangpy-0.43.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3da28207fa1f173c81b22efc1cd02e4804066b975a18749b1a7b09c0708018d6
MD5 4100119a756de1ccfa52e928eddd623c
BLAKE2b-256 e4dbacc07f69057835b10dc33a7db5c0499b992273e75f1bbec6deda49128cc1

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 965dbbd1d907c90e17027945780146a67c66baf766f3d0b8af3f52ea2c4a8eb9
MD5 b1430aa628c4d6750a86f2323a518c13
BLAKE2b-256 0b89917567a889417c87842cea379091cb46b7f4f4000e9fec1b9d25d251c4cf

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 d5dbffd31d3ee8488d4b6a6648f78e49bffa055ee3036fde839bef9de57973ff
MD5 ab2bf0fc734dddb2b2052c37d22dddce
BLAKE2b-256 eee7aae91888ad7db8780ea9ea66833d13e097838cac35194f778f19de422112

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp311-cp311-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp311-cp311-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 706a11f32f1e1ee38367ea8f3f7eb54a75b0d531450e0a8c3bb5d6a76aaf483c
MD5 bfebabccb4ae49049abf6f019a61acd1
BLAKE2b-256 9988dc1253e95e363f15a24d20abcc5bf97589992d37732fed701860b97b2e60

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: slangpy-0.43.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 84.1 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slangpy-0.43.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0252c6f12ad5df289645afed11d99634a769465502784f3988e3bc9f252eebef
MD5 9087e3724b07b6a2098ffeb555da5558
BLAKE2b-256 2b28a19bedd22db3bd476a46ede74565e7f5fb747cae0fbd7d350bfcdd5e6532

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8aa2c5586e172a56f0d37cff2880b3a381ed5d8ae0c4dfb5f1984305ee2699c2
MD5 ac681bd3ec0b0d016bc0ce0766a040fd
BLAKE2b-256 a4eff73c7189f0964b40c8cc899c3c3e1bcb5904df05deaad9e5ce059544edb5

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b290007a0de939e80c8e2e1c56dbf0c0d826114c9c8e7bd5064d5584d986aebd
MD5 df043b19287faa030117aea7cecba7a1
BLAKE2b-256 0bbe296313f51e0ac12d057144c09e126d624c3a29f12605bdb9212daf7efda2

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp310-cp310-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp310-cp310-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 937b47ea9fee1a9385ea9389f7121793f76cf2e1af3dd6f3e7cb2c3174f7b1e3
MD5 b3786478fc36980be389e94f2533f0a8
BLAKE2b-256 be2922846168f84e9a6a7abaef1144bb13a007c76e13dd8ed7d9d1bc5682aecc

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: slangpy-0.43.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 84.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slangpy-0.43.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 442949bbd8048ce8fe62853f705f90aed71b9637c7ada73647a692a0ba889683
MD5 b7cc18057df667356f3ad1d936a7bd54
BLAKE2b-256 fa0268c32a0c919a0c1f2002e9214370997d95d4191638d06326a73d17aca86f

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 187ec8fe0cdf3af8d7804cef988a0a6c81d4127e5fde18f45a177837ebbc2fdb
MD5 7c40c33c12ece45348f0dcc979cf38df
BLAKE2b-256 83901c565540e004167b330d445617d7c2803657b405ef589d160868e6a33635

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp39-cp39-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp39-cp39-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 f34649acbd5387a859a4308653285b99c81dce1e4411a0dffc45865c380e363a
MD5 e66e90be5c664f27d861cb96894aeb88
BLAKE2b-256 1063a2fa376e42ddff5060802075ca7ef4a7042579e3cc744df88ea9605657dd

See more details on using hashes here.

File details

Details for the file slangpy-0.43.1-cp39-cp39-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for slangpy-0.43.1-cp39-cp39-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 a4e486ce74abe2ecaa73250b6fea2518183a7bc733e7f0838f9f7afd497e1474
MD5 966e89d14141abac5b762ba91125c6e3
BLAKE2b-256 e589fc7d3adefd7c43e714be881da9c2e1a809aa7744ba54e3e62ee39bfad519

See more details on using hashes here.

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