Skip to content

Commit ea9d9bb

Browse files
PubNub SDK v5.3.1 release.
1 parent 6ecbb07 commit ea9d9bb

File tree

6 files changed

+39
-23
lines changed

6 files changed

+39
-23
lines changed

.pubnub.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: python
2-
version: 5.3.0
2+
version: 5.3.1
33
schema: 1
44
scm: github.com/pubnub/python
55
sdks:
@@ -169,11 +169,17 @@ sdks:
169169
license-url: https://github.com/aio-libs/aiohttp/blob/master/LICENSE.txt
170170
is-required: Required
171171
changelog:
172+
- version: v5.3.1
173+
date: 2021-09-09
174+
changes:
175+
-
176+
text: "Grant result object __str__ message unified."
177+
type: feature
172178
- version: v5.3.0
173179
date: 2021-09-08
174180
changes:
175181
-
176-
text: "Extend grantToken method to enable control of Objects API permission. Enhance granularity of permission control to enable permissions per UUID."
182+
text: "Extend grant_token method to enable control of Objects API permission. Enhance granularity of permission control to enable permissions per UUID."
177183
type: feature
178184
- version: v5.2.1
179185
date: 2021-09-06
@@ -185,13 +191,13 @@ changelog:
185191
date: 2021-08-31
186192
changes:
187193
-
188-
text: "Furthermore PAMv3 tokens can now be used within other PubNub features."
194+
text: "PAMv3 support for Objects_v2 added (beta). Furthermore PAMv3 tokens can now be used within other PubNub features."
189195
type: feature
190196
- version: v5.1.4
191197
date: 2021-06-29
192198
changes:
193199
-
194-
text: "Additionally, example code for the FastAPI integration was added."
200+
text: "SDK metadata was added. Additionally, example code for the FastAPI integration was added."
195201
type: feature
196202
- version: v5.1.3
197203
date: 2021-04-26
@@ -227,7 +233,7 @@ changelog:
227233
date: 2021-01-21
228234
changes:
229235
-
230-
text: "Apart from bringing the whole SDK up to date, support for Tornado and Twisted was removed and dependiecies were simplified."
236+
text: "Support for Python 2.7 was removed, support for the contemporary versions of Python was added. Apart from bringing the whole SDK up to date, support for Tornado and Twisted was removed and dependencies were simplified."
231237
type: improvement
232238
- version: v4.8.1
233239
date: 2021-01-18

CHANGELOG.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
1+
## [v5.3.1](https://github.com/pubnub/python/releases/tag/v5.3.1)
2+
3+
[Full Changelog](https://github.com/pubnub/python/compare/v5.3.0...v5.3.1)
4+
5+
- 🌟️ Grant result object __str__ message unified.
6+
17
## [v5.3.0](https://github.com/pubnub/python/releases/tag/v5.3.0)
28

39
[Full Changelog](https://github.com/pubnub/python/compare/v5.2.1...v5.3.0)
410

5-
- 🌟️ Extend grantToken method to enable control of Objects API permission. Enhance granularity of permission control to enable permissions per UUID.
11+
- 🌟️ Extend grant_token method to enable control of Objects API permission. Enhance granularity of permission control to enable permissions per UUID.
612

713
## [v5.2.1](https://github.com/pubnub/python/releases/tag/v5.2.1)
814

915
[Full Changelog](https://github.com/pubnub/python/compare/v5.2.0...v5.2.1)
1016

11-
- 🐛 Encoding of the double quote character fixed.
17+
- 🐛 Encoding of the double quote character fixed.
1218

1319
## [v5.2.0](https://github.com/pubnub/python/releases/tag/v5.2.0)
1420

1521
[Full Changelog](https://github.com/pubnub/python/compare/v5.1.4...v5.2.0)
1622

17-
- 🌟️ Furthermore PAMv3 tokens can now be used within other PubNub features.
23+
- 🌟️ PAMv3 support for Objects_v2 added (beta).
24+
Furthermore PAMv3 tokens can now be used within other PubNub features.
1825

1926
## [v5.1.4](https://github.com/pubnub/python/releases/tag/v5.1.4)
2027

2128
[Full Changelog](https://github.com/pubnub/python/compare/v5.1.3...v5.1.4)
2229

23-
- 🌟️ Additionally, example code for the FastAPI integration was added.
30+
- 🌟️ SDK metadata was added.
31+
Additionally, example code for the FastAPI integration was added.
2432

2533
## [v5.1.3](https://github.com/pubnub/python/releases/tag/v5.1.3)
2634

2735
[Full Changelog](https://github.com/pubnub/python/compare/v5.1.2...v5.1.3)
2836

29-
- 🐛 Disabling default request headers within the Endpoind.
37+
- 🐛 Disabling default request headers within the Endpoint.
3038

3139
## [v5.1.2](https://github.com/pubnub/python/releases/tag/v5.1.2)
3240

3341
[Full Changelog](https://github.com/pubnub/python/compare/v5.1.1...v5.1.2)
3442

35-
- 🐛 Request headers required by the Grant Token functionality added.
43+
- 🐛 Request headers required by the Grant Token functionality added.
3644

3745
## [v5.1.1](https://github.com/pubnub/python/releases/tag/v5.1.1)
3846

@@ -56,7 +64,8 @@
5664

5765
[Full Changelog](https://github.com/pubnub/python/compare/v4.8.1...v5.0.0)
5866

59-
- ⭐️️ Apart from bringing the whole SDK up to date, support for Tornado and Twisted was removed and dependiecies were simplified.
67+
- ⭐️️ Support for Python 2.7 was removed, support for the contemporary versions of Python was added.
68+
Apart from bringing the whole SDK up to date, support for Tornado and Twisted was removed and dependencies were simplified.
6069

6170
## [v4.8.1](https://github.com/pubnub/python/releases/tag/v4.8.1)
6271

pubnub/models/consumer/access_manager.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ def from_json(cls, json_input):
8686
)
8787

8888

89-
class PNAccessManagerAuditResult(_PAMResult):
89+
class PNAccessManagerResult(_PAMResult):
9090
def __str__(self):
91-
return "Current permissions are valid for %d minutes: read %s, write %s, manage: %s, delete: %s" % \
92-
(self.ttl or 0, self.read_enabled, self.write_enabled, self.manage_enabled, self.delete_enabled)
91+
return "Permissions are valid for %d minutes" % self.ttl or 0
9392

9493

95-
class PNAccessManagerGrantResult(_PAMResult):
96-
def __str__(self):
97-
return "New permissions are set for %d minutes: read %s, write %s, manage: %s, delete: %s" % \
98-
(self.ttl or 0, self.read_enabled, self.write_enabled, self.manage_enabled, self.delete_enabled)
94+
class PNAccessManagerAuditResult(PNAccessManagerResult):
95+
pass
96+
97+
98+
class PNAccessManagerGrantResult(PNAccessManagerResult):
99+
pass
99100

100101

101102
class _PAMEntityData(object):

pubnub/pubnub_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
class PubNubCore:
6767
"""A base class for PubNub Python API implementations"""
68-
SDK_VERSION = "5.3.0"
68+
SDK_VERSION = "5.3.1"
6969
SDK_NAME = "PubNub-Python"
7070

7171
TIMESTAMP_DIVIDER = 1000

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='pubnub',
5-
version='5.3.0',
5+
version='5.3.1',
66
description='PubNub Real-time push service in the cloud',
77
author='PubNub',
88
author_email='[email protected]',

tests/functional/test_stringify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ def test_audit(self):
4040
result = PNAccessManagerAuditResult(None, None, None, None, None, 3600, True, False, True, False)
4141

4242
assert str(result) == \
43-
"Current permissions are valid for 3600 minutes: read True, write False, manage: True, delete: False"
43+
"Permissions are valid for 3600 minutes"
4444

4545
def test_grant(self):
4646
result = PNAccessManagerGrantResult(None, None, None, None, None, 3600, True, False, True, False)
4747

4848
assert str(result) == \
49-
"New permissions are set for 3600 minutes: read True, write False, manage: True, delete: False"
49+
"Permissions are valid for 3600 minutes"
5050

5151
def test_history(self):
5252
assert str(PNHistoryResult(None, 123, 789)) == "History result for range 123..789"

0 commit comments

Comments
 (0)