pyexiftool | Python library to communicate with an instance of Phil
kandi X-RAY | pyexiftool Summary
kandi X-RAY | pyexiftool Summary
a Python library to communicate with an instance of Phil Harvey's excellent ExifTool command-line application.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get metadata for a given file
- Execute a command
- Execute a JSON query
- Return a function to encode filename
pyexiftool Key Features
pyexiftool Examples and Code Snippets
Community Discussions
Trending Discussions on pyexiftool
QUESTION
I am running the following code to output a list of image and video files on a shared drive along with the creation date. However, I just cannot seem to get the execute_json
method working properly. The documentation for the project is not extensive.
ANSWER
Answered 2020-Apr-26 at 18:27I think you may be misunderstanding the documentation. If we look at the docs for the execute_json
method, it says:
Execute the given batch of parameters and parse the JSON output.
This method is similar to :py:meth:
execute()
. It automatically adds the parameter-j
to request JSON output fromexiftool
and parses the output. The return value is a list of dictionaries, mapping tag names to the corresponding values.
This clearly states that the exiftool
module parses the output, which is to say it reads the JSON data and returns a list of Python data structures.
Similarly, the documentation for get_tags_batch
says:
The format of the return value is the same as for :py:meth:
execute_json()
.
So when you do this...
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyexiftool
You can use pyexiftool like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page