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:
- argparse (MIT)
- AsmJit (Zlib)
- Dear ImGui (MIT)
- doctest (MIT)
- fmt (MIT)
- glfw3 (Zlib)
- libjpeg-turbo (BSD)
- libpng (libpng)
- lmdb (OpenLDAP Public License)
- nanobind (BSD)
- nanothread (BSD)
- NVAPI (MIT)
- OpenEXR (BSD)
- pugixml (MIT)
- RenderDoc API (MIT)
- Slang (MIT)
- stb (MIT)
- tevclient (BSD)
- tinyexr (BSD)
- vcpkg (MIT)
- Vulkan-Headers (MIT)
SlangPy releases additionally include pre-built binaries of the following third-party components, which have their own license:
- DirectXShaderCompiler (LLVM Release License)
- Agility SDK (MICROSOFT DIRECTX 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
}
Metadata
Release files for slangpy 0.43.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 1.9 GB
Release files / slangpy-0.43.1-cp314-cp314-win_amd64.whl
| Download URL | slangpy-0.43.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 87.1 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
841b3eaa19aff4c40b9bab8e17f9ef17e7d69df4fea59ddf81aaf0398f8cb4d5
|
|
BLAKE2b-256 checksum How to use checksums |
67ee27fc0b30d3e081bcf0bae81886eecd9a2f70c004e6925f49f3d5f4d46a03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | slangpy-0.43.1-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 91.8 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
b1fa32b60f867f085e1b626232561d785f69d78950d929c2a9d704da80e2a1dd
|
|
BLAKE2b-256 checksum How to use checksums |
7ac48fb2eddbe74c4604573c7e2e6e6d6992a3e8432bf27b11a197938fa13f39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp314-cp314-manylinux_2_34_aarch64.whl
| Download URL | slangpy-0.43.1-cp314-cp314-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 90.1 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
b31ea105a1f231973ebac7a44d304923c2fd8e0a9b6fc9b0ad4e642ecf888ae5
|
|
BLAKE2b-256 checksum How to use checksums |
8f9e84136ed56591ed2afb51a8826c4df0a8d72b7714401918096da0904e5616
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp314-cp314-macosx_26_0_arm64.whl
| Download URL | slangpy-0.43.1-cp314-cp314-macosx_26_0_arm64.whl |
|---|---|
| Size | 42.3 MB |
| Tags | CPython 3.14 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a0e6c3a23a6259a33cb329578ea71241e18e2ebd4fd5374b42c68d7555ea1d96
|
|
BLAKE2b-256 checksum How to use checksums |
7eb921828896b761eda953f4768a1f19df11a24d8bc3ce786d848541bbf2d30f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp313-cp313-win_amd64.whl
| Download URL | slangpy-0.43.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 84.1 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
10c8ce3c33d7aae535d53abf44acfee8e07cd2febd9b62a43dd2bbc311d683b3
|
|
BLAKE2b-256 checksum How to use checksums |
e4db9d8a0e79478b25efc9e3cfb920e8bc66071320665fc6125bc8f4134c8cb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | slangpy-0.43.1-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 91.8 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
fa77917ca086473a9067649644dbea4b2b036882fb3d8c9482a1cc7d213ff264
|
|
BLAKE2b-256 checksum How to use checksums |
120cde6343148331239e776243634967a69eb6e6dee9f585f9d06113a214e3c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp313-cp313-manylinux_2_34_aarch64.whl
| Download URL | slangpy-0.43.1-cp313-cp313-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 90.1 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
e5fdf12f8469622bdd93471edf89c89a8d7f681129f31704ccbacb91bcd4c31d
|
|
BLAKE2b-256 checksum How to use checksums |
5b9e6b2ce89951cd973a3bd8a402f4a5a152303f0b72b8c7f8572410617d2ee7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp313-cp313-macosx_26_0_arm64.whl
| Download URL | slangpy-0.43.1-cp313-cp313-macosx_26_0_arm64.whl |
|---|---|
| Size | 42.3 MB |
| Tags | CPython 3.13 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cb36c236f49e32c4e21fa661f84a91f023a6e4480f364b7c563b81d439f451ac
|
|
BLAKE2b-256 checksum How to use checksums |
c554df84df79c56c1d530030a75425cb1e2ce92f2c4bdb1ce3afbb976485eb3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp312-cp312-win_amd64.whl
| Download URL | slangpy-0.43.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 84.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
878021bd2a8dad27eae9aae4f252b6ebbd7d29f3ae545c02bce6c619968720eb
|
|
BLAKE2b-256 checksum How to use checksums |
a7af81eaf29a574e27c143da02653fc82cdeb97ab1047bba61b76c772d223bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | slangpy-0.43.1-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 91.8 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
9e8b30da997ec58a9c76b9691be2ebabebe7e0a405831a064e67b4a317ce4138
|
|
BLAKE2b-256 checksum How to use checksums |
ae69f75c4ec0f59a079da1681786bd2e37ec22a6a5072f3a3072d4477b646154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp312-cp312-manylinux_2_34_aarch64.whl
| Download URL | slangpy-0.43.1-cp312-cp312-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 90.1 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
00ff3b9f52ddb8b9a95df7ad1a75a62e590224ace06a6680a4d4b942f907f49d
|
|
BLAKE2b-256 checksum How to use checksums |
715820e8853029119f0daf1d27d84379a0857a056c56aab4de8d95ccd19a91bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp312-cp312-macosx_26_0_arm64.whl
| Download URL | slangpy-0.43.1-cp312-cp312-macosx_26_0_arm64.whl |
|---|---|
| Size | 42.3 MB |
| Tags | CPython 3.12 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
935dbe73580a56d197d91baa51f819af6ba0e6531512c2425f822fd7e80ad24d
|
|
BLAKE2b-256 checksum How to use checksums |
47e4849c63d82210a1d88d645b592581383b3a29440c570a33f1709724708bc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp311-cp311-win_amd64.whl
| Download URL | slangpy-0.43.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 84.1 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3da28207fa1f173c81b22efc1cd02e4804066b975a18749b1a7b09c0708018d6
|
|
BLAKE2b-256 checksum How to use checksums |
e4dbacc07f69057835b10dc33a7db5c0499b992273e75f1bbec6deda49128cc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | slangpy-0.43.1-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 91.8 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
965dbbd1d907c90e17027945780146a67c66baf766f3d0b8af3f52ea2c4a8eb9
|
|
BLAKE2b-256 checksum How to use checksums |
0b89917567a889417c87842cea379091cb46b7f4f4000e9fec1b9d25d251c4cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp311-cp311-manylinux_2_34_aarch64.whl
| Download URL | slangpy-0.43.1-cp311-cp311-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 90.0 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
d5dbffd31d3ee8488d4b6a6648f78e49bffa055ee3036fde839bef9de57973ff
|
|
BLAKE2b-256 checksum How to use checksums |
eee7aae91888ad7db8780ea9ea66833d13e097838cac35194f778f19de422112
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp311-cp311-macosx_26_0_arm64.whl
| Download URL | slangpy-0.43.1-cp311-cp311-macosx_26_0_arm64.whl |
|---|---|
| Size | 42.3 MB |
| Tags | CPython 3.11 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
706a11f32f1e1ee38367ea8f3f7eb54a75b0d531450e0a8c3bb5d6a76aaf483c
|
|
BLAKE2b-256 checksum How to use checksums |
9988dc1253e95e363f15a24d20abcc5bf97589992d37732fed701860b97b2e60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp310-cp310-win_amd64.whl
| Download URL | slangpy-0.43.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 84.1 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0252c6f12ad5df289645afed11d99634a769465502784f3988e3bc9f252eebef
|
|
BLAKE2b-256 checksum How to use checksums |
2b28a19bedd22db3bd476a46ede74565e7f5fb747cae0fbd7d350bfcdd5e6532
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | slangpy-0.43.1-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 91.8 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
8aa2c5586e172a56f0d37cff2880b3a381ed5d8ae0c4dfb5f1984305ee2699c2
|
|
BLAKE2b-256 checksum How to use checksums |
a4eff73c7189f0964b40c8cc899c3c3e1bcb5904df05deaad9e5ce059544edb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp310-cp310-manylinux_2_34_aarch64.whl
| Download URL | slangpy-0.43.1-cp310-cp310-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 90.0 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
b290007a0de939e80c8e2e1c56dbf0c0d826114c9c8e7bd5064d5584d986aebd
|
|
BLAKE2b-256 checksum How to use checksums |
0bbe296313f51e0ac12d057144c09e126d624c3a29f12605bdb9212daf7efda2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp310-cp310-macosx_26_0_arm64.whl
| Download URL | slangpy-0.43.1-cp310-cp310-macosx_26_0_arm64.whl |
|---|---|
| Size | 42.3 MB |
| Tags | CPython 3.10 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
937b47ea9fee1a9385ea9389f7121793f76cf2e1af3dd6f3e7cb2c3174f7b1e3
|
|
BLAKE2b-256 checksum How to use checksums |
be2922846168f84e9a6a7abaef1144bb13a007c76e13dd8ed7d9d1bc5682aecc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp39-cp39-win_amd64.whl
| Download URL | slangpy-0.43.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 84.1 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
442949bbd8048ce8fe62853f705f90aed71b9637c7ada73647a692a0ba889683
|
|
BLAKE2b-256 checksum How to use checksums |
fa0268c32a0c919a0c1f2002e9214370997d95d4191638d06326a73d17aca86f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp39-cp39-manylinux_2_34_x86_64.whl
| Download URL | slangpy-0.43.1-cp39-cp39-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 91.8 MB |
| Tags | CPython 3.9 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
187ec8fe0cdf3af8d7804cef988a0a6c81d4127e5fde18f45a177837ebbc2fdb
|
|
BLAKE2b-256 checksum How to use checksums |
83901c565540e004167b330d445617d7c2803657b405ef589d160868e6a33635
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp39-cp39-manylinux_2_34_aarch64.whl
| Download URL | slangpy-0.43.1-cp39-cp39-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 90.0 MB |
| Tags | CPython 3.9 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
f34649acbd5387a859a4308653285b99c81dce1e4411a0dffc45865c380e363a
|
|
BLAKE2b-256 checksum How to use checksums |
1063a2fa376e42ddff5060802075ca7ef4a7042579e3cc744df88ea9605657dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / slangpy-0.43.1-cp39-cp39-macosx_26_0_arm64.whl
| Download URL | slangpy-0.43.1-cp39-cp39-macosx_26_0_arm64.whl |
|---|---|
| Size | 42.3 MB |
| Tags | CPython 3.9 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a4e486ce74abe2ecaa73250b6fea2518183a7bc733e7f0838f9f7afd497e1474
|
|
BLAKE2b-256 checksum How to use checksums |
e589fc7d3adefd7c43e714be881da9c2e1a809aa7744ba54e3e62ee39bfad519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for slangpy 0.43.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.