PyDfuUtil - Pure python fork of dfu-util wrappers to libusb
Project description
PyDfuUtil - Pure python fork of dfu-util wrappers to libusb
Table of contents
Introduction
- PyDFUUtil provides for easy access to the devices that supports DFU interface over host machine's Universal Serial Bus (USB) system for Python 3.
- PyDFUUtil is an open realisation of original dfu-util and thin wrapper over libusb (uses PyUsb library as a backend).
[!WARNING] The current status of the project is BETA version. Use it for your own risk
[!TIP] Searching for contributors for testing the library
Requirements and platform support
- Since PyDFUUtil uses the libusb library it has similar dependencies for using libusb
- It uses python construct library for simple unpacking C-structs.
- PyDFUUtil primarily tested on Linux and Windows, but also can work on each platform where PyUsb and construct libraries are available, including MacOS
Installing
PyDFUUtil is generally installed through pip
# the latest official release
python -m pip install pydfuutil
# install a specific version (e.g. 0.0.1b1)
python -m pip install pydfuutil==0.0.1b1
Todos
Modules to implement:
- main
- dfu_load.PROGRESS_BAR -> rich.Progress
Done:
- dfu
- dfu_file
- dfu_load
- portable
- quirks
- suffix
- usb_dfu
- lmdfu
- dfuse_mem
- dfuse
Getting help
- To report a bug or propose a new feature, use our issue tracker. But please search the database before opening a new issue.
About
Dfu-util - Device Firmware Upgrade Utilities
Dfu-util is the host side implementation of the DFU 1.0 and DFU 1.1 specification of the USB forum.
DFU is intended to download and upload firmware to devices connected over USB. It ranges from small devices like micro-controller boards up to mobile phones. With dfu-util you are able to download firmware to your device or upload firmware from it.
dfu-util has been tested with Openmoko Neo1973 and Freerunner and many other devices.
RISK NOTICE
[!IMPORTANT] THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
Footnotes
- On systems that still default to Python 2, replace python with python3
- Project is in develop, it fulls of not implemented statements that's not according to original dfu-util!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pydfuutil-0.0.2b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e5d8fca606dfe6100b3ed0683cf9c2a8e8e57a87e5c8bbd718145c4903ff758 |
|
MD5 | 0ba89ea96a20002815f2fd9c0cd8474c |
|
BLAKE2b-256 | 1f8228a035d1e0943c6faf550428137cd716fec9d07bb1163278d40d6d15cd4a |