Releases: sylikc/pyexiftool
Releases · sylikc/pyexiftool
v0.5.6
Released to PyPI
- New Feature:
ExifTool.set_json_loads()
used to override built-injson.loads()
call inExifTool.execute_json()
, so that users can use their JSON library of choice, or pass additional parameters to the call - Changed:
ujson
is no longer automatically used when available. Callset_json_loads(ujson.loads)
to enable manually. - Docs: Updated FAQ set_json_loads with use case of
ExifTool.set_json_loads()
. The FAQ documents in detail the issue reported at #76 which necessitated the new feature.
v0.5.5
v0.5.4
Released to PyPI
- New Feature: added
raw_bytes
parameter toExifTool.execute()
to return bytes only with no decoding conversion. - Changed:
ExifTool.execute()
now accepts both[str,bytes]
. When givenstr
, it will encode according to theExifTool.encoding
property.- Technical change: Popen() no longer uses an -encoding parameter, therefore working with the socket is back to bytes when interfacing with the exiftool subprocess. This should be invisible to most users as the default behavior will still be the same.
- Changed:
ExifToolHelper.execute()
now acceptsAny
type, and will do astr()
on any non-str parameter. - Tests: Created associated test with a custom makernotes example to write and read back bytes.
- Docs: Updated documentation with comprehensive samples, and a better FAQ section for common problems.
v0.5.3
Released to PyPI
- Quite a few docstring changes
ExifToolHelper's get_tags()
andset_tags()
checks tag names to prevent inadvertent write behavior. See Documentation on Exceptions to get an idea how the change makes using PyExifTool safer!- Renamed a few of the errors to make sure the errors are explicit
ProcessStateError
->ExifToolProcessStateError
- new
ExifToolExecuteException
for all execute() related errors which returnsstdout, stderr, returncode, cmd
of offending commandOutputEmpty
->ExifToolOutputEmptyError
OutputNotJSON
->ExifToolJSONInvalidError
ExifToolHelper()
has some static helper methods which can be used when extending the class (ExifToolAlpha.set_keywords_batch()
demonstrates a sample usage).- setup.py tweaked to make it Beta rather than Alpha
ExifToolAlpha.get_tag()
updated to make it more robust.- Fixed ujson compatibility
- Cleaned up and refactored testing.
v0.5.2
Released to PyPI
- Docstrings have been completely updated. Documentation has been extensively overhauled and is now current to the latest version. View it at https://sylikc.github.io/pyexiftool/
ExifToolHelper()
getsset_tags()
method.ExifToolHelper()
willcheck_execute
status code by default and raiseExifToolExecuteError
on a non-zero exit status. This should give feedback as to whether the underlying exiftool process encountered an error or succeeded.