Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

src/j/a/jaam-HEAD/jaam/photos/models.py   jaam(Download)
from django.dispatch import receiver
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
import urllib2 as urllib
from cStringIO import StringIO
    exif.width_dimension = data['ExifImageWidth'] if ('ExifImageWidth' in data) else None
 
    gps_data = dict((GPSTAGS[k], v) for (k, v) in data['GPSInfo'].items() if (k in GPSTAGS)) if ('GPSInfo' in data) else {}
 
    exif.gps_latitude = parse_latitude(gps_data['GPSLatitude'], gps_data['GPSLatitudeRef']) if ('GPSLatitude' in gps_data) else None

src/c/o/collective.geo.exif-0.1/collective/geo/exif/readexif.py   collective.geo.exif(Download)
# https://gist.github.com/moshekaplan/5330395
import sys
import pytz, datetime
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS

src/d/j/Django-Photofile-0.5.0/photofile/metadata.py   Django-Photofile(Download)
import re
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
from PIL import IptcImagePlugin
 

src/s/i/sigal-0.6.0/sigal/image.py   sigal(Download)
from copy import deepcopy
from datetime import datetime
from PIL.ExifTags import TAGS, GPSTAGS
from PIL import Image as PILImage
from PIL import ImageDraw, ImageOps

src/s/i/sigal-HEAD/sigal/image.py   sigal(Download)
from copy import deepcopy
from datetime import datetime
from PIL.ExifTags import TAGS, GPSTAGS
from PIL import Image as PILImage
from PIL import ImageDraw, ImageOps