==============================================
Author: The Udger.com Team (info@udger.com)
- Tested with more the 50.000 unique user agents.
- Up to date data provided by https://udger.com/
- Support for Python 3
Forked from:
---------
Based on the code by Jure Ham (jure.ham@zemanta.com),
https://github.com/hamaxx/uasparser2
Previously, a python version of https://github.com/kaittodesk/uasparser2
by Hicro Kee (http://hicrokee.com) email: hicrokee AT gmail DOT com
and modified by Michal Molhanec http://molhanec.net
Usage:
------
$ git clone https://github.com/udger/udger-python
$ cd udger-python/
# python setup.py install
$ python
>>> from pprint import pprint
>>> from udger import Udger
>>> udger = Udger(access_key='YOUR-ACCESS-KEY')
>>> result = udger.parse(
... 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9'
... )
>>> pprint(result)
{'device_icon': u'https://udger.com/pub/img/device/desktop.png',
'device_name': u'Personal computer',
'device_udger_url': u'https://udger.com/resources/ua-list/device-detail?device=Personal%20computer',
'os_company': u'Apple Computer, Inc.',
'os_company_url': u'http://www.apple.com/',
'os_family': u'OS X',
'os_icon': u'https://udger.com/pub/img/os/macosx.png',
'os_name': u'OS X 10.11 El Capitan',
'os_url': u'https://en.wikipedia.org/wiki/OS_X_El_Capitan',
'type': u'Browser',
'ua_company': u'Apple Inc.',
'ua_company_url': u'http://www.apple.com/',
'ua_family': u'Safari',
'ua_icon': u'https://udger.com/pub/img/ua/safari.png',
'ua_name': u'Safari 9.0.2',
'ua_udger_url': u'https://udger.com/resources/ua-list/browser-detail?browser=Safari',
'ua_url': u'https://en.wikipedia.org/wiki/Safari_%28web_browser%29'}
>>> result = udger.parse('Some Thing')
>>> pprint(result)
{'device_icon': u'https://udger.com/pub/img/device/desktop.png',
'device_name': u'Personal computer',
'device_udger_url': u'https://udger.com/resources/ua-list/device-detail?device=Personal%20computer',
'os_company': None,
'os_company_url': None,
'os_family': None,
'os_icon': 'https://udger.com/pub/img/os/unknown.png',
'os_name': None,
'os_url': None,
'type': None,
'ua_company': None,
'ua_company_url': None,
'ua_family': None,
'ua_icon': 'https://udger.com/pub/img/ua/unknown.png',
'ua_name': None,
'ua_udger_url': None,
'ua_url': None}
Metadata
Release files for udger 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| udger-0.2.tar.gz | 6.3 kB | Without provenance | Details for udger-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| udger-0.2-py2-none-any.whl | Python 2 | none | any | Details for udger-0.2-py2-none-any.whl |
Total release size: 14.5 kB
Release files / udger-0.2.tar.gz
| Download URL | udger-0.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a639ec3a5d14d3ce5a6322fafd4118abc20659a6afff0e48c207f43f55b8daf7
|
|
BLAKE2b-256 checksum How to use checksums |
ff0569b7c55e78d6303ac290987eb33567a96f244bdab48eaeee3e0209fc396b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / udger-0.2-py2-none-any.whl
| Download URL | udger-0.2-py2-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
5cc2268208a1e0aab635735047109f8ae8708d4f58a4501f02300cfbf6b63075
|
|
BLAKE2b-256 checksum How to use checksums |
4810beacf27a457dfe2e07bdfe8645f6dfe4be51335de5cefa93c82f25ac1dee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for udger 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.