Exiftool protocol and stream endpoint plugin to be used with twisted
Project description
Exiftool protocol and stream endpoint plugin to be used with twisted.
Usage
from twisted.internet import defer, endpoints, protocol, reactor from twisted_exiftool import ExiftoolProtocol @defer.inlineCallbacks def test(): # Construct an exiftool endpoint. If the tool is installed in a custom # location, specify the path to the binary as the first argument. E.g. # 'exiftool:/path/to/exiftool' ep = endpoints.clientFromString(reactor, 'exiftool') # Instantiate the protocol by connecting to the endpoint f = protocol.Factory.forProtocol(ExiftoolProtocol) p = yield ep.connect(f) # Run commands and retrieve results. metadata = yield p.execute('-j', '/usr/share/pixmaps/gtkvim.png') print metadata # Disconnect yield p.loseConnection() reactor.stop() reactor.callWhenRunning(test) reactor.run()
License
The software is subject to the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TwistedExiftool-0.1.0.tar.gz
(3.9 kB
view details)
File details
Details for the file TwistedExiftool-0.1.0.tar.gz
.
File metadata
- Download URL: TwistedExiftool-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6b177398901be919d635ef2a605e97685d4fa73eeffc68b0a884c6c062a049 |
|
MD5 | 82ac82e32e95982021360d2b307a5089 |
|
BLAKE2b-256 | 8341a5fe6c2636cd27cbccde5120be9ed36e392f5b359ab37cfd0f51727ae872 |