selwin / python-user-agents

A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
MIT License
1.43k stars 196 forks source link

method __str__() from UserAgent now using methods custom get_device, get_os and get_browser #94

Closed rodrigondec closed 3 years ago

rodrigondec commented 4 years ago

Is better to calculate and provide a method to calculate the string values for device, os and browser instead of doing it directly on __str__ method.

This way the users may use those methods to get each data directly. Instead of having to make a user_agent.__str__().split('/') to get each value.

rodrigondec commented 4 years ago

@selwin

selwin commented 3 years ago

Thanks!

rodrigondec commented 3 years ago

@selwin When will be released a new version with this change?

Waiting to modify my use of this lib :grimacing:

selwin commented 3 years ago

This weekend :)

On 22 Aug 2020, at 09.34, Rodrigo Castro notifications@github.com wrote:

 @selwin When will be released a new version with this change?

Waiting to modify my use of this lib 😬

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

selwin commented 3 years ago

2.2.0 is up on PyPI. https://pypi.org/project/user-agents/