Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install uamd

How to install uamd

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install uamd
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1rc4 Available View build log
0.1rc3 Available View build log
Windows (64-bit)
0.1rc4 Available View build log
0.1rc3 Available View build log
Mac OS X (10.5+)
0.1rc4 Available View build log
0.1rc3 Available View build log
Linux (32-bit)
0.1rc4 Available View build log
0.1rc3 Available View build log
Linux (64-bit)
0.1rc4 Available View build log
0.1rc3 Available View build log
 
Author
License
BSD
Depended by
Lastest release
version 0.1rc4 on Jan 4th, 2012

uamd (User Agent Mobile Detect) is for detecting japanese mobile phone from HTTP_USER_AGENT and return device information include UID from HTTP Header and spoof check by CIDR of each carrier

Install

sudo pip install uamd

or:

sudo pip install git+git://github.com/lambdalisue/uamd.git#egg=uamd

Required (Automatically installed)

  • IPy
  • BeautifulSoup

How to use

>>> META = {
>>>     'HTTP_USER_AGENT': u"J-PHONE/2.0/J-SH02",
>>>     'HTTP_X_JPHONE_UID': u"XXXXXXX",
>>>     'REMOTE_ADDR': u"123.108.237.0",                        # Valid IP for Softbank (2011/03/22)
>>> }
>>> deice = uamd.detect(META)
>>> device.name
u'J-SH02'
>>> device.type
u'J-Phone'
>>> device.uid
u'XXXXXXX'
>>> device.spoof
False

Subscribe to package updates

Last updated Jan 4th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.