Skip to content

Commit 5ee04a3

Browse files
committed
Updated changelog
1 parent 807f931 commit 5ee04a3

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

README.md

+26-22
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Python User Agents
33

44
`user_agents` is a Python library that provides an easy way to identify/detect devices like mobile phones, tablets and their capabilities by parsing (browser/HTTP) user agent strings. The goal is to reliably detect whether:
55

6-
- User agent is a mobile, tablet or PC based device
7-
- User agent has touch capabilities (has touch screen)
6+
* User agent is a mobile, tablet or PC based device
7+
* User agent has touch capabilities (has touch screen)
88

99
`user_agents` relies on the excellent [ua-parser](https://github.com/ua-parser/uap-python) to do the actual parsing of the raw user agent string.
1010

@@ -57,11 +57,11 @@ str(user_agent) # returns "iPhone / iOS 5.1 / Mobile Safari 5.1"
5757

5858
Currently these attributes are supported:
5959

60-
- `is_mobile`: whether user agent is identified as a mobile phone (iPhone, Android phones, Blackberry, Windows Phone devices etc)
61-
- `is_tablet`: whether user agent is identified as a tablet device (iPad, Kindle Fire, Nexus 7 etc)
62-
- `is_pc`: whether user agent is identified to be running a traditional "desktop" OS (Windows, OS X, Linux)
63-
- `is_touch_capable`: whether user agent has touch capabilities
64-
- `is_bot`: whether user agent is a search engine crawler/spider
60+
* `is_mobile`: whether user agent is identified as a mobile phone (iPhone, Android phones, Blackberry, Windows Phone devices etc)
61+
* `is_tablet`: whether user agent is identified as a tablet device (iPad, Kindle Fire, Nexus 7 etc)
62+
* `is_pc`: whether user agent is identified to be running a traditional "desktop" OS (Windows, OS X, Linux)
63+
* `is_touch_capable`: whether user agent has touch capabilities
64+
* `is_bot`: whether user agent is a search engine crawler/spider
6565

6666
For example:
6767

@@ -126,50 +126,54 @@ Running Tests
126126

127127
Changelog
128128
---------
129+
### Version 2.2.0 (2020-08-23)
130+
* `ua-parser` >= 0.10.0 is required. Thanks @jnozsc!
131+
* Added `get_device()`, `get_os()` and `get_browser()` instance methods
132+
to `UserAgent`. Thanks @rodrigondec!
129133

130134
### Version 2.1 (2020-02-08)
131135

132-
- `python-user-agents` now require `ua-parser>=0.9.0`. Thanks @jnozsc!
133-
- Properly detect Chrome Mobile browser families. Thanks @jnozsc!
136+
* `python-user-agents` now require `ua-parser>=0.9.0`. Thanks @jnozsc!
137+
* Properly detect Chrome Mobile browser families. Thanks @jnozsc!
134138

135139
### Version 2.0 (2019-04-07)
136140

137-
- `python-user-agents` now require `ua-parser>=0.8.0`. Thanks @IMDagger!
141+
* `python-user-agents` now require `ua-parser>=0.8.0`. Thanks @IMDagger!
138142

139143
### Version 1.1
140144

141-
- Fixes packaging issue
145+
* Fixes packaging issue
142146

143147
### Version 1.0
144148

145-
- Adds compatibility with `ua-parser` 0.4.0
146-
- Access to more device information in `user_agent.device.brand` and `user_agent.device.model`
149+
* Adds compatibility with `ua-parser` 0.4.0
150+
* Access to more device information in `user_agent.device.brand` and `user_agent.device.model`
147151

148152
### Version 0.3.2
149153

150-
- Better mobile detection
151-
- Better PC detection
154+
* Better mobile detection
155+
* Better PC detection
152156

153157
### Version 0.3.1
154158

155-
- user\_agent.is\_mobile returns True when mobile spider is detected
159+
* user\_agent.is\_mobile returns True when mobile spider is detected
156160

157161
### Version 0.3.0
158162

159-
- Added **str**/**unicode** methods for convenience of pretty string
163+
* Added **str**/**unicode** methods for convenience of pretty string
160164

161165
### Version 0.2.0
162166

163-
- Fixed errors when running against newer versions if ua-parser
164-
- Support for Python 3
167+
* Fixed errors when running against newer versions if ua-parser
168+
* Support for Python 3
165169

166170
### Version 0.1.1
167171

168-
- Added `is_bot` property
169-
- Symbian OS devices are now detected as a mobile device
172+
* Added `is_bot` property
173+
* Symbian OS devices are now detected as a mobile device
170174

171175
### Version 0.1
172176

173-
- Initial release
177+
* Initial release
174178

175179
Developed by the cool guys at [Stamps](http://stamps.co.id).

0 commit comments

Comments
 (0)