This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
==================================
useragent
==================================

useragent is a Python library that parses HTTP User-agent strings
and tries to give you as much data as possible in a normalized form.

It uses the data provided by the ua-parser project (originally collected by
Steve Souders). It aims to be more pythonic than the python wrapper found
in the original ua-parser project.

To-wit::

#!/usr/bin/env python

import useragent
ua = useragent.detect("Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1")
print(ua)

Which would print ``ua``, a dict-like object with the following structure::
{
'device': {
'family': None,
'major_version': None,
'minor_version': None,
'patch_version': None
},
'os': {
'family': 'Mac OS X',
'major_version': '10',
'minor_version': '5',
'patch_version': None
},
'browser': {
'family': 'Firefox',
'major_version': '3',
'minor_version': '0',
'patch_version': '1'
}
}

The ``ua`` object actually has each of those keys exposed as attributes on itself, so you may find it more comfortable to navigate like so::
print(ua.browser.family)
print(ua.os.family)
print(ua.device.family)
Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
useragent-0.1.1.tar.gz (134.8 kB) Copy SHA256 Checksum SHA256 Source Oct 19, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting