Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)
WURFL Two Step Analysis algorithm based on the Java API implementation

src/p/y/pywurfl-7.2.1/doc/examples/interactive_gui.py   pywurfl(Download)
from wurfl import *
from pywurfl.exceptions import *
from pywurfl.algorithms import Tokenizer, JaroWinkler, TwoStepAnalysis
 
try:
    JAROWINKLER = False
 
tssearch = TwoStepAnalysis(devices)
jsearch = JaroWinkler(accuracy=.85)
tsearch = Tokenizer()

src/e/d/eden-HEAD/modules/s3/s3utils.py   eden(Download)
 
    try:
        from pywurfl.algorithms import TwoStepAnalysis
    except ImportError:
        current.log.warning("pywurfl python module has not been installed, browser compatibility listing will not be populated. Download pywurfl from http://pypi.python.org/pypi/pywurfl/")
        return False
    import wurfl
    device = wurfl.devices.select_ua(unicode(request.env.http_user_agent),
                                     search=TwoStepAnalysis(wurfl.devices))

src/s/s/ssf-HEAD/models/00_settings.py   ssf(Download)
 
    try:
        from pywurfl.algorithms import TwoStepAnalysis
    except ImportError:
        s3_debug("pywurfl python module has not been installed, browser compatibility listing will not be populated. Download pywurfl from http://pypi.python.org/pypi/pywurfl/")
        return False
    import wurfl
    device = wurfl.devices.select_ua(unicode(request.env.http_user_agent),
                                     search=TwoStepAnalysis(wurfl.devices))

src/d/e/device-proxy-0.3/devproxy/handlers/wurfl_handler/base.py   device-proxy(Download)
from twisted.web.template import flattenString
 
from pywurfl.algorithms import TwoStepAnalysis
 
from devproxy.handlers.base import BaseHandler
    def setup_handler(self):
        self.devices = wurfl_devices.devices
        self.algorithm = TwoStepAnalysis(self.devices)
        yield self.connect_to_memcached(**self.memcached_config)
        self.namespace = yield self.get_namespace()

src/w/s/wsgi-ua-mapper-0.0.4/ua_mapper/wsgi.py   wsgi-ua-mapper(Download)
import hashlib
import memcache
from pywurfl.algorithms import TwoStepAnalysis
 
from ua_mapper import wurfl
    def gen_output(self, user_agent, start_response):
        output = self.default
        devices = wurfl.devices
        search_algorithm = TwoStepAnalysis(devices)
        device = devices.select_ua(user_agent, search=search_algorithm)

src/d/j/django-ua-mapper-HEAD/ua_mapper/mapper.py   django-ua-mapper(Download)
from django.utils.importlib import import_module
 
from pywurfl.algorithms import TwoStepAnalysis
import redis
 
        if user_agent:
            devices = wurfl.devices
            search_algorithm = TwoStepAnalysis(devices)
            device = devices.select_ua(user_agent, search=search_algorithm)
            return self.map(user_agent, device)