Metadata-Version: 2.3
Name: user-agent-parser
Version: 0.1.6
Summary: Python 3 library to parse User-Agent strings and detect browser, OS and device details
License: MIT
Keywords: user agent,user-agent parser,ua parser,browser detection,device detection,python,http,analytics
Author: Purushot14
Author-email: prakash.purushoth@gmail.com
Requires-Python: >=3.8
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Project-URL: Homepage, https://github.com/Purushot14/user-agent-parser
Project-URL: Repository, https://github.com/Purushot14/user-agent-parser
Description-Content-Type: text/markdown

[![PyPI](https://img.shields.io/pypi/v/user-agent-parser.svg)](https://pypi.org/project/user-agent-parser/)
[![Downloads](https://pepy.tech/badge/user-agent-parser/month)](https://pepy.tech/project/user-agent-parser)
[![Python Versions](https://img.shields.io/pypi/pyversions/user-agent-parser.svg)](https://pypi.org/project/user-agent-parser/)
[![License](https://img.shields.io/github/license/Purushot14/user-agent-parser.svg)](https://github.com/Purushot14/user-agent-parser/blob/main/LICENSE)
[![Codecov](https://codecov.io/github/Purushot14/user-agent-parser/branch/main/graph/badge.svg)](https://codecov.io/gh/Purushot14/user-agent-parser)
[![CI](https://github.com/Purushot14/user-agent-parser/actions/workflows/main.yml/badge.svg)](https://github.com/Purushot14/user-agent-parser/actions/workflows/ci.yml)
[![Wheel](https://img.shields.io/pypi/wheel/user-agent-parser.svg)](https://pypi.org/project/user-agent-parser/#files)
[![Implementation](https://img.shields.io/pypi/implementation/user-agent-parser.svg)](https://pypi.org/project/user-agent-parser/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Linter: ruff](https://img.shields.io/badge/linter-ruff-5D8FCC.svg?logo=ruff&logoColor=white)](https://docs.astral.sh/ruff/)
[![Docs](https://img.shields.io/badge/docs-gh--pages-blue.svg)](https://purushot14.github.io/user-agent-parser/)
[![Open Issues](https://img.shields.io/github/issues/Purushot14/user-agent-parser.svg)](https://github.com/Purushot14/user-agent-parser/issues)

> **⭐ If you find this project useful, please star it on GitHub!**

# Python User Agent Parser

`user_agent_parser` is a Python 3 library that provides an easy way to identify/detect devices from user agent string
* User agent is a mobile or computer
* User agent Browser name and versions
* User agent Device name

`user_agent_parser` hosted on [PyPI](http://pypi.python.org/pypi/user-agent-parser/) and can be installed as such:


    pip install install user-agent-parser

Alternatively, you can also get the latest source code from [Github](https://github.com/Purushot14/user-agent-parser) and install it manually.

```python 
from user_agent_parser import Parser
iphone_ua_str = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/92.0.4515.90 Mobile/15E148 Safari/604.1"
parser = Parser(iphone_ua_str)

 # Calling parser
 browser, browser_version, os, os_version, device_type, device_name, device_host = parser()
 # or you can call directly properties
 parser.device_name
```
Running Tests

_____________

    python -m unittest discover


Changelog
__________

### Version 0.1.1

* Doc added

### Version 0.1

* Initial release
