mobi.devices

Mobile Device detection library and WSGI middlewares
Download

mobi.devices Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Antonin Amand at Infrae
  • Publisher web site:
  • http://mobi.infrae.com/

mobi.devices Tags


mobi.devices Description

Mobile Device detection library and WSGI middlewares mobi.devices is a set of classes that detect mobile user agents. It uses the WURFL database as well as data from the MIT mobile project.It provides WSGI middleware that can tag a request with information about the device performing the request.For best performance, please install pytc. It is not a package requirement since it is not available on all platforms.Paster example configuration:# This part describes your application# use = ...# The entry point to use the classifieruse = egg:mobi.devices#classifier# cache the classification on a client side cookie (default: true)cookie_cache = true# Configure caching (see beaker documentation)cache.type = ext:memcachedcache.url = 127.0.0.1:11211cache.lock_dir = /tmp/mobicache# Data directory *required*. make sure directory is writable# by the user that run the webservervar = /var/mobi/db# Path to wurfl file. by default it uses the one shipped with# this package. however you should use the latest one.wurfl_file = /var/mobi/wurfl.xml.gzuse = egg:mobi.devices#router# Redirect mobile devices that connect to infrae.com hostname# to m.infrae.cominfrae.com = http://m.infrae.com/# This part configures the actual WSGI stackpipeline = mobidevicedetection mobirouter yourapp# This is the configuration for the paster web server.# It must have the same name as the pipeline.use = egg:Paste#httphost = 0.0.0.0port = 8080threadpool_workers = 7If you are using Apache with rewrite rules that modify the path and you want the router to route on the original path, please add the following rule before any rewrite ruleRewriteRule ^(.*)$ - RequestHeader set X_ORIGINAL_PATH %{ORIGINAL_PATH}eSee documentation at http://mobi.infrae.com/. Requirements: · Python What's New in This Release: · Add more configuration options (Bruno Binet)


mobi.devices Related Software