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.0},
    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.0-cp313-cp313-win_amd64.whl (84.1 MB view details)

Uploaded CPython 3.13Windows x86-64

slangpy-0.43.0-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.0-cp313-cp313-manylinux_2_34_aarch64.whl (90.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.13macOS 26.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

slangpy-0.43.0-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.0-cp312-cp312-manylinux_2_34_aarch64.whl (90.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.12macOS 26.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

slangpy-0.43.0-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.0-cp311-cp311-manylinux_2_34_aarch64.whl (90.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.11macOS 26.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

slangpy-0.43.0-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.0-cp310-cp310-manylinux_2_34_aarch64.whl (90.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.10macOS 26.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

slangpy-0.43.0-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.0-cp39-cp39-manylinux_2_34_aarch64.whl (90.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ ARM64

slangpy-0.43.0-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.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: slangpy-0.43.0-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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2ca6f3aa43ad58783b473a2ec2d8eff8e9f260d88f1fe974e396529b7f099464
MD5 e836fbb67e7efe1824b12ad96d2dff0a
BLAKE2b-256 89b4ba274f59105ef2218edc74b5dbba07ab9514336555cde9926a6405fa16ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5e3999f5cd60e4612412ce168e3cd1ed0c9667b64c57c65d27ceb90263f2dc08
MD5 2ad8b140d6c9d5fcaa20c2e2d5c93b67
BLAKE2b-256 60fa8b5c4cfd32a7d3cc85e6f83980de5620c4388af718a809c0a9865068514f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 6cd50c9e58c3f05a75fae01f369355332da6e482fb2a31333502435289e935be
MD5 3249e31e49ca47de638282cea2d05a59
BLAKE2b-256 2771eba73f51c388dbcf0f839691629a5975dd8682952fad2ef4ff4625dbbe92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp313-cp313-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 79d541d8daf4a7a287d598c741b8a624c93c742d5578401eb7678d5acae8240d
MD5 80e56a94e96ae88817f8806e679214e9
BLAKE2b-256 a07eff600c60ca87effca6a1e691f5174a9eb6ee118b23a9e5ebb167d91573d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slangpy-0.43.0-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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd8139acfd26e754966dc723c84f148616ad53ea08c53ac6bef1e13ac6d8ccdc
MD5 02967a3a31268abed6e942863e111741
BLAKE2b-256 1670b0ed80ad161640bbbbd8e38c6cc6e0c7119b42b3085e588d3be51120ee83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 eaf84f3e8f31d1dd2405e527ab4fdaf67ee6aa8e9103a7ad2f5720ff7dd8936a
MD5 d20c8660f062865fbbac01e71350a714
BLAKE2b-256 9909f63d839c84dfbf09eda980e166aac192819347704bc16d4de8b5810e932f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 0977a2837411585dc3610dfdc94b2db1bc85bf31e1e22073ba20d6d9ef03c324
MD5 9f35ee2146497d6e00a3704e0a3cb1e7
BLAKE2b-256 a3bb103c17d3d2f45734e51c4823ee5a7f284e22ceabeb3e8f532b0d97bb04b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp312-cp312-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 661b5c16cbf839699a6c81d71a57ca6ffc20bdbc35488d14631b49312648d289
MD5 027bfd5b4f177c56d6fde2f787d407e4
BLAKE2b-256 1ecb9a986a616abaedb8e38edc74127bce80d593de24a463e74436f84dcace07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slangpy-0.43.0-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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 25d6d7860ca775d8818cba7e2c4fb3b740a84f3dd21d145bb81ea9bb3789a065
MD5 b22d20aec664e8fcd969f7d50acc0802
BLAKE2b-256 040eafbcccd1e546afef29665dcb45847637975e7181974bbbb3083c2b7330ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2779613630179a3b8ab5e29c189d31821d3f32fd0b969b801e59cd3a46d17bd6
MD5 ad02cee00df8c54133d4f95d34c92093
BLAKE2b-256 c6d1e7ddf37c40bd77fcb277909b68d19144ac0011d76789f3d9fd8c9642951d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 01cbd42509e65e353d8eaed462254bc6ca517937f71671722e607715ef0cba09
MD5 f68354b85feac556d5e1534ebd6e3b72
BLAKE2b-256 0340cbfa46f3b2a7de7d5fa28d864adf6f57ec211b8b203e5177b14789299f8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp311-cp311-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 9e9aa4842b4ffcbaa0e57ab1b93941f29c48b37021a1b51a34dc13e785a40cae
MD5 3408c295e2d0bfe602619cd15a91f01b
BLAKE2b-256 f33aace91af7fe517f779cac27b6d038a4b332ede995ed2173d283743ed3af7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slangpy-0.43.0-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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8e595b33848b1c90f4c4183f33dea78f0df76ca5e1c65d9ee923bf41ff06d012
MD5 36346edaffca8051c91d29de99913016
BLAKE2b-256 bac7b401f486092c87484bcb572e08178da7891c5354e15c14cceda423f5906e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b0d35bf204ea32bb33d8fe1118fbe5f8e2f90a44568348770215f4bc3091cb36
MD5 2b39fb5b3284be30a2414add35928e6c
BLAKE2b-256 2bdef180c090fbf775739e5c929f956738c81ba414576a2a5c56e350c246d46f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 08bfa7890d4036733051c19bb2baf48a7ade1da2572903b05361a331ada4a445
MD5 9ee8ab5df011e6cbeff93ce588864a4f
BLAKE2b-256 a1252de8a44ef4ba874f5b1c9b203d340d05d383b3840e1a061888ad7fe860df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp310-cp310-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 a98c7db1f56614951aa11752c4d978a3487c9bc884914767161fb11542f8979a
MD5 e107259cf4f3c2055e649fce8bf6ef14
BLAKE2b-256 7cabd98a7719aae8e410d6bfdad3fa399f3796d5d10408da00087b2445394eb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slangpy-0.43.0-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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eb0581e35bbc4af31d88357863865aa1dd1bc8e42c8a75a0b75126cd144b7baa
MD5 71f2652372e238a057ab360b53757fad
BLAKE2b-256 4710556ac3a6d2fb34963b6cf0a931e0575550964219af685bde42ed4d6d288a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5323c773c2163b42e66fc5beb3e898bd512d9eef1429f97901088d6d387ba50b
MD5 43c963fe9a0a357c27b4604ecc46f8f7
BLAKE2b-256 8a2f23050f2caa4190f0a9a7eeed51276813fa0460f6b6caa6beeb461af2e91a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp39-cp39-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 5c62cf8f03b21969b595720058922b0e67c091c1215f61dbfdd913907191c90b
MD5 79a2d55f801a30a25a8bafa65eed7d4d
BLAKE2b-256 3ecbb81bbaa371e58f5f3c91d363bd7f57a789c12c2372dcad99206a6570a0c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slangpy-0.43.0-cp39-cp39-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 ae2e30a4eb03effb742490f7ae218a9de45410ee594efe86245ecb2b6e3e32ce
MD5 139da0312e694cbec20465a3ae0bd2f1
BLAKE2b-256 d59c6f91b61fc41aa79f1f364aa9ca838c22dfd2078e0d754531ae9eca469820

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