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 httpagentparser

How to install httpagentparser

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install httpagentparser
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2.2
1.3.2Never BuiltWhy not?
1.2.2 Available View build log
1.1.3 Available View build log
1.0.5 Available View build log
1.0.0 Available View build log
0.9.9 Available View build log
0.9.8 Available View build log
0.9.7 Available View build log
0.9.6 Available View build log
0.9.3 Available View build log
0.9.2 Available View build log
0.9.0 Available View build log
0.8.6 Available View build log
0.8.5 Failed View build log
0.8.3 Available View build log
0.8.2 Available View build log
Windows (64-bit)
1.2.2
1.3.2Never BuiltWhy not?
1.2.2 Available View build log
1.1.3 Available View build log
1.0.5 Available View build log
1.0.0 Available View build log
0.9.9 Available View build log
0.9.8 Available View build log
0.9.7 Available View build log
0.9.6 Available View build log
0.9.3 Available View build log
0.9.2 Available View build log
0.9.0 Available View build log
0.8.6 Available View build log
0.8.5 Failed View build log
0.8.3 Available View build log
0.8.2 Available View build log
Mac OS X (10.5+)
1.2.2
1.3.2Never BuiltWhy not?
1.2.2 Available View build log
1.1.3 Available View build log
1.0.5 Available View build log
1.0.0 Available View build log
0.9.9 Available View build log
0.9.8 Available View build log
0.9.7 Available View build log
0.9.6 Available View build log
0.9.3 Available View build log
0.9.2 Available View build log
0.9.0 Available View build log
0.8.6 Available View build log
0.8.5 Failed View build log
0.8.3 Available View build log
0.8.2 Available View build log
1.1.3
1.3.2Never BuiltWhy not?
1.1.3 Available View build log
Linux (32-bit)
1.2.2
1.3.2Never BuiltWhy not?
1.2.2 Available View build log
1.1.3 Available View build log
1.1.0 Available View build log
1.0.5 Available View build log
1.0.0 Available View build log
0.9.9 Available View build log
0.9.8 Available View build log
0.9.7 Available View build log
0.9.6 Available View build log
0.9.3 Available View build log
0.9.2 Available View build log
0.9.0 Available View build log
0.8.6 Available View build log
0.8.5 Failed View build log
0.8.3 Available View build log
0.8.2 Available View build log
1.1.3
1.3.2Never BuiltWhy not?
1.1.3 Available View build log
Linux (64-bit)
1.3.2 Available View build log
1.3.0 Available View build log
1.2.2 Available View build log
1.1.3 Available View build log
1.1.0 Available View build log
1.0.5 Available View build log
1.0.0 Available View build log
0.9.9 Available View build log
0.9.8 Available View build log
0.9.7 Available View build log
0.9.6 Available View build log
0.9.3 Available View build log
0.9.2 Available View build log
0.9.0 Available View build log
0.8.6 Available View build log
0.8.5 Failed View build log
0.8.3 Available View build log
0.8.2 Available View build log
1.1.3
1.3.2Never BuiltWhy not?
1.1.3 Available View build log
1.3.2 Available View build log
1.3.0 Available View build log
1.2.2 Available View build log
 
License
http://www.opensource.org/licenses/mit-license.php
Imports
Lastest release
version 1.3.2 on Sep 20th, 2013

Features

  • Works on Python 2.5+ and Python 3
  • Fast
  • Detects OS and Browser. Does not aim to be a full featured agent parser
  • Will not turn into django-httpagentparser ;)

Usage

System Message: ERROR/3 (<string>, line 12)

Unknown directive type "code-block".

.. code-block:: python

    >>> import httpagentparser
    >>> s = "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) \
            Chrome/5.0.307.11 Safari/532.9"
    >>> print httpagentparser.simple_detect(s)
    ('Linux', 'Chrome 5.0.307.11')
    >>> print httpagentparser.detect(s)
    {'os': {'name': 'Linux'},
     'browser': {'version': '5.0.307.11', 'name': 'Chrome'}}

    >>> s = "Mozilla/5.0 (Linux; U; Android 2.3.5; en-in; HTC_DesireS_S510e Build/GRJ90) \
            AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
    >>> print httpagentparser.simple_detect(s)
    ('Android Linux 2.3.5', 'Safari 4.0')
    >>> print httpagentparser.detect(s)
    {'dist': {'version': '2.3.5', 'name': 'Android'},
    'os': {'name': 'Linux'},
    'browser': {'version': '4.0', 'name': 'Safari'}}

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:8

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.