kickpython 0.1.3__py3-none-any.whl → 0.1.5__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 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, **kwargs):
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 = 3600 # Refresh tokens every hour
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
@@ -769,6 +770,7 @@ class KickAPI:
769
770
  for (channel_id,) in channels:
770
771
  try:
771
772
  await self.refresh_token(channel_id)
773
+ logger.info(f"Refreshed token for channel {channel_id}")
772
774
  except Exception as e:
773
775
  logger.error(f"Failed to refresh token for channel {channel_id}: {e}")
774
776
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kickpython
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Python wrapper for Kick.com API
5
5
  Home-page: https://github.com/berkay-digital/kickpython
6
6
  Author: berkay.digital
@@ -1,10 +1,10 @@
1
1
  kickpython/__init__.py,sha256=kBeAyCTyN4fTvXXNk0gPGYMnpEl4KEsqVKy5Fd17D_0,153
2
- kickpython/api.py,sha256=SMH1lnR52CU5ywFJtnqdIT4ckhEl22RbynCd2xklkT0,31173
2
+ kickpython/api.py,sha256=JGTGC-GkDlSHhM9Z91vqtORFM47YrFeXeootJbie-qM,31319
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.3.dist-info/LICENSE,sha256=Eq9Igq8OyVjZRODIgyVcVjG4TBJUELQCpG-ULLNTw9Q,1070
7
- kickpython-0.1.3.dist-info/METADATA,sha256=ZAZGFnZTE1CnVAzqX98VXtwDwYWIKu7fI_9H6ztCxn0,4752
8
- kickpython-0.1.3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
9
- kickpython-0.1.3.dist-info/top_level.txt,sha256=mDDQz6hz_Z8Vc4djAyfeKkoZK5UgBJbQJfGVP9_Jh-w,11
10
- kickpython-0.1.3.dist-info/RECORD,,
6
+ kickpython-0.1.5.dist-info/LICENSE,sha256=Eq9Igq8OyVjZRODIgyVcVjG4TBJUELQCpG-ULLNTw9Q,1070
7
+ kickpython-0.1.5.dist-info/METADATA,sha256=JJ13ER7PLXqnAUy0ZMpnQHtovyl1bh-YrCM24U-ZW14,4752
8
+ kickpython-0.1.5.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
9
+ kickpython-0.1.5.dist-info/top_level.txt,sha256=mDDQz6hz_Z8Vc4djAyfeKkoZK5UgBJbQJfGVP9_Jh-w,11
10
+ kickpython-0.1.5.dist-info/RECORD,,