This release is a pre-release and may not be stable for production use.
pyglreg: OpenGL XML API Registry Parser
glreg provides functionality to parse and extract data from OpenGL XML API Registry files. Types, enums and functions (commands) in the registry can be enumerated and inspected. This module also provides functions to resolve dependencies and filter APIs in the registry. This makes it useful for generating OpenGL headers and loaders.
Sample code
Import the module:
>>> import glreg
Load a Registry object from a file:
>>> registry = glreg.load(open('gl.xml'))
Generate a simple OpenGL ES 2 C header:
>>> for api in glreg.group_apis(registry, api='gles2', support='gles2'):
... print('#ifndef ' + api.name)
... print('#define ' + api.name)
... print(api.text)
... print('#endif')
#ifndef GL_ES_VERSION_2_0
#define GL_ES_VERSION_2_0
#include <KHR/khrplatform.h>
typedef khronos_int8_t GLbyte;...
Requirements
Python 2.7+, 3.2+
Documentation
Documentation is available at https://pyglreg.readthedocs.org/
Installation
glreg is available at PyPI. Simply run the following:
# pip install --pre glreg
Or, if you downloaded the source, run the following from the source directory:
# python setup.py install
Development
Please report bugs and feature requests to https://github.com/pyokagan/pyglreg/
License
MIT License
Metadata
Release files for glreg 0.9.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glreg-0.9.0a3.tar.gz | 9.5 kB | Without provenance | Details for glreg-0.9.0a3.tar.gz |
Release files / glreg-0.9.0a3.tar.gz
| Download URL | glreg-0.9.0a3.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e59db19680fb7c7c2155b8b517c52b3113d345a2ce4dff5103f9ccafc7452c25
|
|
BLAKE2b-256 checksum How to use checksums |
6edc41421d8b4892eeb2110be7e191634bf9b81723b1025b066ba1a888529c95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for glreg 0.9.0a3
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.