File: README

package info (click to toggle)
libiptcdata 1.0.4-6
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,088 kB
  • ctags: 767
  • sloc: sh: 9,668; ansic: 4,111; xml: 2,791; makefile: 123; python: 62; sed: 16
file content (32 lines) | stat: -rw-r--r-- 1,116 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Python wrapper for libiptcdata
 - Ian Wienand <ianw@ieee.org>

OVERVIEW
========

The iptcdata module is a wrapper around libiptcdata designed for
updating IPTC information in JPEG files.  It can be enabled by passing
--enable-python to configure.  It will produce a module called
iptcdata.

An iptcdata.Data object holds a list of iptcdata.DataSet objects.
Values can be added and modified, but are only written back when the
Data object's save() function is called.  There are a handful of
functions to query record numbers, etc.

FILES
=====

 * pyiptcdatamod.c : module implementation
 * pyiptcdata.c    : iptcdata.Data object implementation
 * pyiptcdataset.c : iptcdata.DataSet object implementation 
 * examples/*.py   : some example/test programs using the library

NOTES
=====

Each DataSet object holds a reference to the Data object; only once
they are cleared will the Data object go away.  To handle the case
where references are held to a closed Data object, each object has a
state describing it's current validity.  Operations on objects in an
invalid state should raise an exception saying as much.