| |
- datetime.tzinfo(__builtin__.object)
-
- FixedOffset
- libpyexiv2.Image(Boost.Python.instance)
-
- Image
class FixedOffset(datetime.tzinfo) |
|
Fixed offset from a local time east from UTC.
Represent a fixed (positive or negative) offset from a local time in hours
and minutes.
Public methods:
utcoffset -- return offset of local time from UTC, in minutes east of UTC
dst -- return the daylight saving time (DST) adjustment, here always 0
tzname -- return a string representation of the offset with format '±%H%M' |
|
- Method resolution order:
- FixedOffset
- datetime.tzinfo
- __builtin__.object
Methods defined here:
- __init__(self, offsetSign='+', offsetHours=0, offsetMinutes=0)
- Constructor.
Construct a FixedOffset object from an offset sign ('+' or '-') and an
offset absolute value expressed in hours and minutes.
No check on the validity of those values is performed, it is the
responsibility of the caller to pass correct values to the constructor.
Keyword arguments:
offsetSign -- the sign of the offset ('+' or '-')
offsetHours -- the absolute number of hours of the offset
offsetMinutes -- the absolute number of minutes of the offset
- dst(self, dt)
- Return the daylight saving time (DST) adjustment.
Return the daylight saving time (DST) adjustment.
In this implementation, it is always nil, and the method return
datetime.timedelta(0).
Keyword arguments:
dt -- the datetime.time object representing the local time
- tzname(self, dt)
- Return a string representation of the offset.
Return a string representation of the offset with format '±%H:%M'.
Keyword arguments:
dt -- the datetime.time object representing the local time
- utcoffset(self, dt)
- Return offset of local time from UTC, in minutes east of UTC.
Return offset of local time from UTC, in minutes east of UTC.
If local time is west of UTC, this should be negative.
The value returned is a datetime.timedelta object specifying a whole
number of minutes in the range -1439 to 1439 inclusive.
Keyword arguments:
dt -- the datetime.time object representing the local time
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from datetime.tzinfo:
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __reduce__(...)
- -> (cls, state)
- fromutc(...)
- datetime in UTC -> datetime in local time.
Data and other attributes inherited from datetime.tzinfo:
- __new__ = <built-in method __new__ of type object at 0xb794ed80>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
|
class Image(libpyexiv2.Image) |
|
Provide convenient methods for the manipulation of EXIF and IPTC metadata.
Provide convenient methods for the manipulation of EXIF and IPTC metadata
embedded in image files such as JPEG and TIFF files, using Python's built-in
types and modules such as datetime.
Public methods:
getExifTagValue -- get the value associated to a key in EXIF metadata
setExifTagValue -- set the value associated to a key in EXIF metadata
getIptcTagValue -- get the value associated to a key in IPTC metadata
setIptcTagValue -- set the value associated to a key in IPTC metadata |
|
- Method resolution order:
- Image
- libpyexiv2.Image
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __delitem__(self, key)
- Implementation of the del operator for deletion on Image objects.
Delete the value associated to a key in EXIF/IPTC metadata.
If key references a repeatable tag (IPTC only), all the associated
values will be deleted.
Keyword arguments:
key -- the [EXIF|IPTC] key of the requested metadata tag
- __getitem__(self, key)
- Read access implementation of the [] operator on Image objects.
Get the value associated to a key in EXIF/IPTC metadata.
The value is cached in an internal dictionary for later accesses.
Whenever possible, the value is typed using Python's built-in types or
modules such as datetime when the value is composed of a date and a time
(e.g. the EXIF tag 'Exif.Photo.DateTimeOriginal') or date when the value
represents a date (e.g. the IPTC tag 'Iptc.Application2.DateCreated').
If key references a repeatable tag (IPTC only), a list of several values
is returned. If not, or if it has only one repetition, the list simply
has one element.
Keyword arguments:
key -- the [EXIF|IPTC] key of the requested metadata tag
- __init__(self, filename)
- __setitem__(self, key, value)
- Write access implementation of the [] operator on Image objects.
Set the value associated to a key in EXIF/IPTC metadata.
The value is cached in an internal dictionary for later accesses.
The new value passed should be typed using Python's built-in types or
modules such as datetime when the value contains a date and a time
(e.g. the EXIF tag 'Exif.Photo.DateTimeOriginal' or the IPTC tags
'Iptc.Application2.DateCreated' and 'Iptc.Application2.TimeCreated'),
the method takes care of converting it before setting the internal tag
value.
If key references a repeatable tag (IPTC only), value can be a list of
values (the new values will overwrite the old ones, and an empty list of
values will unset the tag).
Keyword arguments:
key -- the [EXIF|IPTC] key of the requested metadata tag
value -- the new value for the requested metadata tag
- cacheAllExifTags(self)
- Cache the EXIF tag values for faster subsequent access.
Read the values of all the EXIF tags in the image and cache them in an
internal dictionary so as to speed up subsequent accesses.
- cacheAllIptcTags(self)
- Cache the IPTC tag values for faster subsequent access.
Read the values of all the IPTC tags in the image and cache them in an
internal dictionary so as to speed up subsequent accesses.
Methods inherited from libpyexiv2.Image:
- deleteThumbnail(...)
- dumpThumbnailToFile(...)
- exifKeys(...)
- getThumbnailData(...)
- iptcKeys(...)
- readMetadata(...)
- setThumbnailData(...)
- setThumbnailFromJpegFile(...)
- writeMetadata(...)
Data and other attributes inherited from libpyexiv2.Image:
- __instance_size__ = 84
Data descriptors inherited from Boost.Python.instance:
- __dict__
- __weakref__
Data and other attributes inherited from Boost.Python.instance:
- __new__ = <built-in method __new__ of Boost.Python.class object at 0xb7cb7a80>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
| |