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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/p/y/py2FaceR-0.1.1/src/py2facer/commands/base.py   py2FaceR(Download)
 
from py2facer.lib import picasa, image
from py2facer.lib.flickr import FlickrImageManager, FlickrContactManager, \
    FlickrAPIManager, DbProxy
from py2facer.lib.utils import InvalidConfig
        with open(contacts_xml, 'r') as contacts_file:
            gcontacts.parse_xml(contacts_file)
        db_proxy = DbProxy(db_url=self.cmd_config['db_url'])
        fcm = FlickrContactManager(db_proxy=db_proxy)
        fapi = FlickrAPIManager()
        self.LOGGER.info('Parsing facial data from Picasa.')
        iniparser.add_people_to_image(images)
        db_proxy = DbProxy(db_url=self.cmd_config['db_url'])
        api_mgr = FlickrAPIManager()
        img_mgr = FlickrImageManager(db_proxy=db_proxy, flickr_proxy=api_mgr)

src/p/y/py2FaceR-0.1.1/src/py2facer/tests/flickr.py   py2FaceR(Download)
import unittest
from py2facer.lib import image, picasa
from py2facer.lib.flickr import FlickrContactManager, FlickrContact, DbProxy,\
    FlickrImageManager, FlickrImage
from py2facer.lib.utils import InvalidState
    def setUp(self):
        tests.delOldDb()
        self.flickr_api_mgr = FlickrApiMgrStub()
        self.picasa_contacts = picasa.ContactParser()
        self.db_proxy = DbProxy(db_url=tests.TESTDBURL % tests.DB_COUNTER)
        tests.delOldDb()
        self.flickr_api_mgr = FlickrApiMgrStub()
        self.db_proxy = DbProxy(db_url=tests.TESTDBURL % tests.DB_COUNTER)
        self.photomgr = FlickrImageManager(db_proxy=self.db_proxy)