Python bindings for chdkptp via an embedded, thread-safe Lua runtime (thanks to Stefan Behnel's lupa).
- C compiler
- Lua 5.2, with headers
- libusb, with headers
- lupa, installed with the --no-luajit flag
Note
Currently chdkptp.py only works when the lupa package is linked to Lua. However, by default the package links to LuaJIT, so make sure that you install it with the --no-luajit flag. It is best to do this via pip, before you install chdkptp.py:
$ pip install lupa --install-option='--no-luajit'
.. autoclass:: chdkptp.ChdkDevice :members:
.. automodule:: chdkptp :members:
.. automodule:: chdkptp.device :members: Message
.. automodule:: chdkptp.lua :members:
.. automodule:: chdkptp.util :members:
- 0.1.3 (2015/04/25)
- Bugfix in error handling code
- Bugfix: Uploading files under a different name works now
- API Change: ChdkDevice.delete_files now takes a variable number of arguments
- 0.1.2 (2015/01/29)
- Minor documentation updates
- 0.1.1 (2015/01/28)
- Improved user-friendliness of lua_execute
- Fix bug in download_file where the content would not be returned if no local file was supplied as an argument
- Return Python list in list_files instead of a Lua table