Skip to main content

shaderdef

Transform Python code into GLSL shaders.

See demo.py for a quick example of how to use the library.

This module does not currently provide any sort of shader execution (although that would be a fun addition). It just outputs GLSL code.

License

GNU GPLv3+

Documentation

https://shaderdef.readthedocs.io

Implementation

The builtin ast module is used to parse Python functions and transform them into GLSL code.

An alternative implementation that actually evaluated the functions and kept track of the assignment tree was dropped because regular Python control structures can’t be used.

Metadata

Release files for shaderdef 0.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shaderdef 0.8.3
File Size Uploaded Provenance Actions
shaderdef-0.8.3.tar.gz 13.8 kB Without provenance Details for shaderdef-0.8.3.tar.gz

Release files / shaderdef-0.8.3.tar.gz

Download URL shaderdef-0.8.3.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
641fc0eeceec4dff413fd77ff5ac9d151c7a0a2b75e26dacdec7b17f6b26b0fd
BLAKE2b-256 checksum
How to use checksums
36c89e751ad2f85232c06c177c8bea80cfc6f9feb277585a7bb555bbccb375b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for shaderdef 0.8.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page