Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Aug 22, 2020

Conversation

rodrigondec
Copy link
Contributor

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.

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
Copy link
Contributor Author

@selwin

@selwin selwin merged commit 155c23d into selwin:master Aug 22, 2020
@selwin
Copy link
Owner

selwin commented Aug 22, 2020

Thanks!

@rodrigondec
Copy link
Contributor Author

rodrigondec commented Aug 22, 2020

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

Waiting to modify my use of this lib 😬

@selwin
Copy link
Owner

selwin commented Aug 22, 2020 via email

@selwin
Copy link
Owner

selwin commented Aug 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants