hidapi-py
hidapi-py provides Python bindings for the HIDAPI library, enabling interaction with HID-class USB devices.
Usage
You can use the hidapi_py module in your Python scripts (listing all connected DualSense controllers):
from hidapi_py import get_all_device_infos
print(hidapi_py.__version__)
print(hidapi_py.__hid_version__)
SONY_VENDOR_ID: int = 0x054C
DS_PRODUCT_ID: int = 0x0CE6
devices = get_all_device_infos(SONY_VENDOR_ID, DS_PRODUCT_ID)
print(devices)
Features
- Access HID device information such as vendor ID, product ID, and serial number.
- Communicate with HID devices using Python.
Building from Source
Windows
Ensure you have the following installed:
- CMake
- Ninja
- Visual Studio Build Tools
- HID API dll from https://github.com/libusb/hidapi
Use the following commands to build the project on Windows:
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --clean-first --target hidapi-py
Mac OSx
Install the HIDAPI library using Homebrew:
brew install hidapi
To build the project on macOS for x86_64 architecture, run:
./scripts/build_macosx_x86_64.sh
Ubuntu
Install the HIDAPI library using your package manager. For example, on Ubuntu:
sudo apt-get install libhidapi-dev
Run the following commands to build the project on Linux:
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --clean-first --target hidapi-py
Contributing
Contributions are welcome! Please submit a pull request or open an issue for any bugs or feature requests.
License
This project is licensed under the terms of the LICENSE.txt file.
Metadata
Release files for hidapi-py 0.2.0
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 |
|---|---|---|---|---|
| hidapi_py-0.2.0.tar.gz | 2.4 MB | With provenance | Details for hidapi_py-0.2.0.tar.gz |
Built distributions (wheels)
Total release size: 5.3 MB
Release files / hidapi_py-0.2.0.tar.gz
| Download URL | hidapi_py-0.2.0.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdd798812bd281c665d18abe2df403664fa7b05dba0848bf44d170bee9298422
|
|
BLAKE2b-256 checksum How to use checksums |
ee682a0fd7129663d280d2fa3f40310fae049effbd601d2e3d5eccad032bfd97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp314-cp314-win_amd64.whl
| Download URL | hidapi_py-0.2.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 202.3 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7148de2cac9d7b1ae0f1b50175ccb9b6a08e5b0fd09d72c1083665a8ee6bb573
|
|
BLAKE2b-256 checksum How to use checksums |
ab7e6d76c58f7817f2cbd158e7af814d58f921f83196e0fc04f0c4fd9ae308f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp314-cp314-manylinux_2_39_x86_64.whl
| Download URL | hidapi_py-0.2.0-cp314-cp314-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 244.9 kB |
| Tags | CPython 3.14 Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
86a82b2c6a7e9ad1de59f59a63af4feac109b3c2a29b88877f60fd7a6842eeb6
|
|
BLAKE2b-256 checksum How to use checksums |
874d516a1778c7ae3dc9cfbb44b7f94c148294bd6e12653feb7726df791a6ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp314-cp314-manylinux_2_34_aarch64.whl
| Download URL | hidapi_py-0.2.0-cp314-cp314-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 202.5 kB |
| Tags | CPython 3.14 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
7f99692050988cc6275f471130c4665078e2d057312d75ad2c21eec14b334e59
|
|
BLAKE2b-256 checksum How to use checksums |
b7e9d1cdaf410f735307091090598fc530a5c01a1190c48fa3d9584babf3d86b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp314-cp314-macosx_15_0_arm64.whl
| Download URL | hidapi_py-0.2.0-cp314-cp314-macosx_15_0_arm64.whl |
|---|---|
| Size | 102.0 kB |
| Tags | CPython 3.14 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fbfec2dbf5465084e0519849bd87e73b674205461338116795cd6818f58f1d25
|
|
BLAKE2b-256 checksum How to use checksums |
fbc897715935a73ab9a50c8cbd3a461beeaf4a83e8e5e60484260038f7590c4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp313-cp313-win_amd64.whl
| Download URL | hidapi_py-0.2.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 197.3 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9a61764c562531d266e3b1099c5cb0abf02c31e63ecc8b313c76342983e95a6d
|
|
BLAKE2b-256 checksum How to use checksums |
a37903fbb6e8d06b1ae24bea6a041dd04f49e1a76c90ec5f8cd020efee97c36e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp313-cp313-manylinux_2_39_x86_64.whl
| Download URL | hidapi_py-0.2.0-cp313-cp313-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 244.8 kB |
| Tags | CPython 3.13 Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
97c792ee93ac883d83d1a468895eecdf9eb05999ad700b7dc368edbf1821a12c
|
|
BLAKE2b-256 checksum How to use checksums |
304d5347064f024481297af06163dd9ca279f4c71f8975803b19ab31e29387a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp313-cp313-manylinux_2_34_aarch64.whl
| Download URL | hidapi_py-0.2.0-cp313-cp313-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 201.7 kB |
| Tags | CPython 3.13 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
c0320cab0d8b8b290b6810c648e76727d472b78c5db42dd78b33c0fec7ff9548
|
|
BLAKE2b-256 checksum How to use checksums |
0173b8bf8c1c8d5bb45f7d3f6db2d74bdfbf15a9f59940e9ee30d4ff5528996a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp313-cp313-macosx_15_0_arm64.whl
| Download URL | hidapi_py-0.2.0-cp313-cp313-macosx_15_0_arm64.whl |
|---|---|
| Size | 101.7 kB |
| Tags | CPython 3.13 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7e2842926c8d5ff20fe029789fcda58fbe25c3c595c3235ccbf805cd9457c1a7
|
|
BLAKE2b-256 checksum How to use checksums |
e981640a814d8a08e0b43a1679cea896c80024b9e0152398fe8a2028d7eb76ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp312-cp312-win_amd64.whl
| Download URL | hidapi_py-0.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 197.3 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
492e91aa34a67a99f37d959e462879f47a2d9a6110cf1bccd8d4e3f2c981e2f8
|
|
BLAKE2b-256 checksum How to use checksums |
59c7ab9e1eb45be6131bb8b8f1c2cdd1e008677cc2cc3991be415dedeaafe9ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp312-cp312-manylinux_2_39_x86_64.whl
| Download URL | hidapi_py-0.2.0-cp312-cp312-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 244.8 kB |
| Tags | CPython 3.12 Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
23094466e1f39a3da5fe6bf2bd92a586e7aa0979cb19d6ab94dcffa4fa4f24d4
|
|
BLAKE2b-256 checksum How to use checksums |
308e916ba897045e5991833575ac07df8939746f2c8f9143d51ed39f8a65b905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp312-cp312-manylinux_2_34_aarch64.whl
| Download URL | hidapi_py-0.2.0-cp312-cp312-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 201.7 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
1e967ab59fc173d7f65e21bbe34d27bf90da1488791152daa9a5f02d95cb0b6b
|
|
BLAKE2b-256 checksum How to use checksums |
57c70b42f9b912858f5de434da8549e622623ef26043137070628e523b39bfe9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp312-cp312-macosx_15_0_arm64.whl
| Download URL | hidapi_py-0.2.0-cp312-cp312-macosx_15_0_arm64.whl |
|---|---|
| Size | 101.7 kB |
| Tags | CPython 3.12 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7ea00ca7a2e6a5147a58ca82465f499f279827391580a70c66256ae835a18912
|
|
BLAKE2b-256 checksum How to use checksums |
abe5997ed1a9025a3662bc4c8ff3cb78497c4ffce97031071b8e57c510c18dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp311-cp311-win_amd64.whl
| Download URL | hidapi_py-0.2.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 195.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
15defe3d088eb74ae3ba47d80534603420ae0f91853ec6895aafee012c9c6002
|
|
BLAKE2b-256 checksum How to use checksums |
260b94f717ab8e717d86cd1a18a4e11f863977b4b4ef87bcb2f5ac31470aa9de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp311-cp311-manylinux_2_39_x86_64.whl
| Download URL | hidapi_py-0.2.0-cp311-cp311-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 244.1 kB |
| Tags | CPython 3.11 Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
559359d47fcb04dd00e2effb6c1e83eba53413326d3a4bc96d4a8a8f14b2b60f
|
|
BLAKE2b-256 checksum How to use checksums |
d74aebb3e13a2b6ffac28a25591910b1e8edd1e5cf62f80e3b53c801e055fd95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp311-cp311-manylinux_2_34_aarch64.whl
| Download URL | hidapi_py-0.2.0-cp311-cp311-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 202.1 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
26b8c52404395f52c6f8f4d99aa9ac063fb34a49e425c5d306041cf717f56766
|
|
BLAKE2b-256 checksum How to use checksums |
a27b8d4ebb2e1c0b8d5eec2d900594d12aac8dab35fadef4e6b28196c0835b71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hidapi_py-0.2.0-cp311-cp311-macosx_15_0_arm64.whl
| Download URL | hidapi_py-0.2.0-cp311-cp311-macosx_15_0_arm64.whl |
|---|---|
| Size | 101.6 kB |
| Tags | CPython 3.11 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d37b4870e3825e57e9a8d3935e73cae39ca115f406dadb62393c0e01cf22d358
|
|
BLAKE2b-256 checksum How to use checksums |
d3a1ef88742f78d4fd73b5b749ed4f3cc08945bad9767f4cb84c8a70e1ea7a48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logSecurity for hidapi-py 0.2.0
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.
Full provenance
All 17 files in this release have been uploaded with provenance metadata.
Attestation for hidapi_py-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logA 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.