Skip to main content

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

Installation

  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: https://launchpad.net/python-ptp-chdk/trunk/0.1/+download/libptp-chdk-patches-0.1.tar.gz

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

cd libptp autogen.sh configure –with-pic make

  1. Build and install python-ptp-chdk

Run (in the main source code directory)

setup.py build setup.py install

Usage

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

Credits

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 http://subversion.assembla.com/svn/chdkde/trunk/ and http://subversion.assembla.com/svn/chdkptp/

Release files for pyptpchdk 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyptpchdk 0.2.1
File Size Uploaded
pyptpchdk-0.2.1.tar.gz 84.6 kB Details

Release files / pyptpchdk-0.2.1.tar.gz

Download URL pyptpchdk-0.2.1.tar.gz
Size 84.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b6c48e2e454ad64d8bdff84b5d5a1673066d4fbb3608d66d737e57db12268d92
BLAKE2b-256 checksum
How to use checksums
c6b1a01e14a42cc695eb49b6e17c5889585e70526e9029fc115bad017d975871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page