Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
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.
.. _OpenGL XML API Registry: https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml
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;...
Documentation is available at https://pyglreg.readthedocs.org/
glreg is available at PyPI
_. Simply run the following::
# pip install --pre glreg
.. _PyPI: https://pypi.python.org/pypi/glreg/
Or, if you downloaded the source, run the following from the source directory::
# python setup.py install
Please report bugs and feature requests to https://github.com/pyokagan/pyglreg/
MIT License
FAQs
OpenGL XML API registry parser
We found that glreg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.