1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

Add Python bindings

The bindings are implemented via python-cffi and cover all
current functionality of the library. They do not provide
a 1-to-1 mapping of the functionality, but a more "Pythonic"
API instead.

When new functionality is added to the libcpuid library
in the future, the changes must be manually added to the
bindings in order to appear in the Python interface.
However, if only a C enum is extended, the changes will
be automatically reflected in the Python interface.
This commit is contained in:
Pavol Žáčik 2024-07-23 17:52:51 +02:00 committed by The Tumultuous Unicorn Of Darkness
commit 40e2d5fcb6
14 changed files with 1133 additions and 0 deletions

12
python/pyproject.toml Normal file
View file

@ -0,0 +1,12 @@
[build-system]
requires = ["setuptools", "cffi"]
build-backend = "setuptools.build_meta"
[project]
name = "libcpuid"
version = "0.1.0"
readme = "README.md"
dependencies = ["cffi"]
license = {text = "BSD-3-Clause"}
authors = [{name = "Pavol Žáčik", email = "zacikpa@gmail.com"}]
description = "Python bindings for the libcpuid C library"