Skip to main content

A Picture Transfer Protocol module supporting CHDK extensions

Project description

A Python module that implements the Picture Transfer Protocol, including support for CHDK extensions.


  1. Make sure that
    • a C compiler is installed
    • the C header files of libusb and Python itself are installed. Under Ubuntu and Debian, these are the packages libusb-dev and python-dev.
    • Install libtool and automake.
    • To run tests, you need Python’s testtols package. (python-testtools in Ubuntu and Debian.)
  2. Install the right version of libptp

python-chdk-ptp requires yet another special libptp version:

Unpack the libptp source code into the subdirectory ‘libptp’ of the main python-chdsk-ptp source code directory and run

cd libptp configure –with-pic make
  1. Build and install python-ptp-chdk

Run (in the main source code directory) build install


See examples and tests. (Note that some examples require the Python Imaging Library.)


This project would be completely pointless without the amazing work done by the CHDK developers anaylzing and extending the firmware of Canon compact cameras. Parts of the source code is borrowed from and

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyptpchdk, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyptpchdk-0.2.linux-x86_64.tar.gz (148.7 kB) File type Dumb Binary Python version 2.7 Upload date Hashes View
Filename, size pyptpchdk-0.2.tar.gz (85.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page