kickpython 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kickpython/api.py +3 -2
- {kickpython-0.1.3.dist-info → kickpython-0.1.4.dist-info}/METADATA +1 -1
- {kickpython-0.1.3.dist-info → kickpython-0.1.4.dist-info}/RECORD +6 -6
- {kickpython-0.1.3.dist-info → kickpython-0.1.4.dist-info}/LICENSE +0 -0
- {kickpython-0.1.3.dist-info → kickpython-0.1.4.dist-info}/WHEEL +0 -0
- {kickpython-0.1.3.dist-info → kickpython-0.1.4.dist-info}/top_level.txt +0 -0
kickpython/api.py
CHANGED
|
@@ -21,7 +21,8 @@ class KickAPI:
|
|
|
21
21
|
base_url="https://api.kick.com/public/v1",
|
|
22
22
|
oauth_base_url="https://id.kick.com",
|
|
23
23
|
db_path="kick_tokens.db",
|
|
24
|
-
proxy=None, proxy_auth=None,
|
|
24
|
+
proxy=None, proxy_auth=None,
|
|
25
|
+
token_refresh_interval=3600, **kwargs):
|
|
25
26
|
self.base_url = base_url
|
|
26
27
|
self.oauth_base_url = oauth_base_url
|
|
27
28
|
self.client_id = client_id
|
|
@@ -35,7 +36,7 @@ class KickAPI:
|
|
|
35
36
|
self.message_handlers = []
|
|
36
37
|
self.session = None
|
|
37
38
|
self.refresh_task = None
|
|
38
|
-
self._refresh_interval =
|
|
39
|
+
self._refresh_interval = token_refresh_interval # Refresh tokens every hour
|
|
39
40
|
self._should_refresh = False
|
|
40
41
|
|
|
41
42
|
# Initialize database if needed
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
kickpython/__init__.py,sha256=kBeAyCTyN4fTvXXNk0gPGYMnpEl4KEsqVKy5Fd17D_0,153
|
|
2
|
-
kickpython/api.py,sha256=
|
|
2
|
+
kickpython/api.py,sha256=sL1kjvShw07xbkpN42_5A8Q7MpwzGJnX3QFetNrjQ7w,31238
|
|
3
3
|
kickpython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
kickpython/examples/listen_all_channels.py,sha256=QhdqJopIKG-8sIpaRBYa8m7j1WH2Mk7e3hydBhrs9vw,3399
|
|
5
5
|
kickpython/examples/oauth.py,sha256=KkdWvXRRG-LlRb-vtZUVA3BbvVFCsSg02sRED8c4qqU,6615
|
|
6
|
-
kickpython-0.1.
|
|
7
|
-
kickpython-0.1.
|
|
8
|
-
kickpython-0.1.
|
|
9
|
-
kickpython-0.1.
|
|
10
|
-
kickpython-0.1.
|
|
6
|
+
kickpython-0.1.4.dist-info/LICENSE,sha256=Eq9Igq8OyVjZRODIgyVcVjG4TBJUELQCpG-ULLNTw9Q,1070
|
|
7
|
+
kickpython-0.1.4.dist-info/METADATA,sha256=jBwViYBQPVdDad4UU0Jcod841O_XayfK3eqJBpIhWvk,4752
|
|
8
|
+
kickpython-0.1.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
9
|
+
kickpython-0.1.4.dist-info/top_level.txt,sha256=mDDQz6hz_Z8Vc4djAyfeKkoZK5UgBJbQJfGVP9_Jh-w,11
|
|
10
|
+
kickpython-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|