kickpython 0.1.1__tar.gz → 0.1.3__tar.gz

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.
Files changed (25) hide show
  1. {kickpython-0.1.1/kickpython.egg-info → kickpython-0.1.3}/PKG-INFO +1 -21
  2. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython/api.py +7 -0
  3. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython/examples/listen_all_channels.py +1 -1
  4. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython/examples/oauth.py +1 -1
  5. {kickpython-0.1.1 → kickpython-0.1.3/kickpython.egg-info}/PKG-INFO +1 -21
  6. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython.egg-info/SOURCES.txt +0 -1
  7. {kickpython-0.1.1 → kickpython-0.1.3}/pyproject.toml +1 -4
  8. {kickpython-0.1.1 → kickpython-0.1.3}/setup.py +1 -1
  9. kickpython-0.1.1/kickpython.egg-info/requires.txt +0 -5
  10. {kickpython-0.1.1 → kickpython-0.1.3}/.gitignore +0 -0
  11. {kickpython-0.1.1 → kickpython-0.1.3}/LICENSE +0 -0
  12. {kickpython-0.1.1 → kickpython-0.1.3}/MANIFEST.in +0 -0
  13. {kickpython-0.1.1 → kickpython-0.1.3}/README.md +0 -0
  14. {kickpython-0.1.1 → kickpython-0.1.3}/docs/README.md +0 -0
  15. {kickpython-0.1.1 → kickpython-0.1.3}/docs/auth.md +0 -0
  16. {kickpython-0.1.1 → kickpython-0.1.3}/docs/channels.md +0 -0
  17. {kickpython-0.1.1 → kickpython-0.1.3}/docs/chat.md +0 -0
  18. {kickpython-0.1.1 → kickpython-0.1.3}/docs/configuration.md +0 -0
  19. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython/__init__.py +0 -0
  20. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython/py.typed +0 -0
  21. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython.egg-info/dependency_links.txt +0 -0
  22. {kickpython-0.1.1 → kickpython-0.1.3}/kickpython.egg-info/top_level.txt +0 -0
  23. {kickpython-0.1.1 → kickpython-0.1.3}/requirements-dev.txt +0 -0
  24. {kickpython-0.1.1 → kickpython-0.1.3}/requirements.txt +0 -0
  25. {kickpython-0.1.1 → kickpython-0.1.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kickpython
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Python wrapper for Kick.com API
5
5
  Home-page: https://github.com/berkay-digital/kickpython
6
6
  Author: berkay.digital
@@ -10,31 +10,11 @@ Project-URL: Homepage, https://github.com/berkay-digital/kickpython
10
10
  Project-URL: Documentation, https://github.com/berkay-digital/kickpython/tree/main/docs
11
11
  Project-URL: Repository, https://github.com/berkay-digital/kickpython.git
12
12
  Project-URL: Issues, https://github.com/berkay-digital/kickpython/issues
13
- Keywords: kick.com,api,wrapper,streaming,chat
14
- Classifier: Development Status :: 3 - Alpha
15
- Classifier: Intended Audience :: Developers
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Operating System :: OS Independent
18
- Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.6
20
- Classifier: Programming Language :: Python :: 3.7
21
- Classifier: Programming Language :: Python :: 3.8
22
- Classifier: Programming Language :: Python :: 3.9
23
- Classifier: Programming Language :: Python :: 3.10
24
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
13
  Requires-Python: >=3.6
26
14
  Description-Content-Type: text/markdown
27
15
  License-File: LICENSE
28
- Requires-Dist: aiohttp>=3.11.13
29
- Requires-Dist: websockets>=15.0
30
- Requires-Dist: asyncio>=3.4.3
31
- Requires-Dist: curl_cffi
32
- Requires-Dist: python-dotenv>=1.0.1
33
16
  Dynamic: author
34
- Dynamic: classifier
35
17
  Dynamic: home-page
36
- Dynamic: keywords
37
- Dynamic: requires-dist
38
18
  Dynamic: requires-python
39
19
 
40
20
  # KickPython - Python API Wrapper
@@ -264,6 +264,8 @@ class KickAPI:
264
264
  # Get channel_id if not provided
265
265
  if not channel_id:
266
266
  channel_id = await self.get_broadcaster_id(token_data["access_token"])
267
+ token_data["channel_id"] = channel_id
268
+
267
269
  if not channel_id:
268
270
  logger.error("Could not determine broadcaster ID from token")
269
271
  return None
@@ -276,6 +278,11 @@ class KickAPI:
276
278
  token_data["expires_in"],
277
279
  token_data["scope"]
278
280
  )
281
+ try:
282
+ channel_name = await self.fetch_channel_username(channel_id)
283
+ await self.get_chatroom_id(channel_name)
284
+ except Exception as e:
285
+ logger.error(f"Failed to fetch channel info: {e}")
279
286
 
280
287
  return token_data
281
288
 
@@ -1,6 +1,6 @@
1
1
  import asyncio
2
2
  import sqlite3
3
- from kickphyton import KickAPI
3
+ from kickpython import KickAPI
4
4
  import logging
5
5
  import os
6
6
  from dotenv import load_dotenv
@@ -4,7 +4,7 @@ import sys
4
4
  import logging
5
5
  import sqlite3
6
6
  import time
7
- from kickphyton import KickAPI
7
+ from kickpython import KickAPI
8
8
  from flask import Flask, request, redirect, session
9
9
 
10
10
  logging.basicConfig(level=logging.INFO)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kickpython
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Python wrapper for Kick.com API
5
5
  Home-page: https://github.com/berkay-digital/kickpython
6
6
  Author: berkay.digital
@@ -10,31 +10,11 @@ Project-URL: Homepage, https://github.com/berkay-digital/kickpython
10
10
  Project-URL: Documentation, https://github.com/berkay-digital/kickpython/tree/main/docs
11
11
  Project-URL: Repository, https://github.com/berkay-digital/kickpython.git
12
12
  Project-URL: Issues, https://github.com/berkay-digital/kickpython/issues
13
- Keywords: kick.com,api,wrapper,streaming,chat
14
- Classifier: Development Status :: 3 - Alpha
15
- Classifier: Intended Audience :: Developers
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Operating System :: OS Independent
18
- Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.6
20
- Classifier: Programming Language :: Python :: 3.7
21
- Classifier: Programming Language :: Python :: 3.8
22
- Classifier: Programming Language :: Python :: 3.9
23
- Classifier: Programming Language :: Python :: 3.10
24
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
13
  Requires-Python: >=3.6
26
14
  Description-Content-Type: text/markdown
27
15
  License-File: LICENSE
28
- Requires-Dist: aiohttp>=3.11.13
29
- Requires-Dist: websockets>=15.0
30
- Requires-Dist: asyncio>=3.4.3
31
- Requires-Dist: curl_cffi
32
- Requires-Dist: python-dotenv>=1.0.1
33
16
  Dynamic: author
34
- Dynamic: classifier
35
17
  Dynamic: home-page
36
- Dynamic: keywords
37
- Dynamic: requires-dist
38
18
  Dynamic: requires-python
39
19
 
40
20
  # KickPython - Python API Wrapper
@@ -17,7 +17,6 @@ kickpython/py.typed
17
17
  kickpython.egg-info/PKG-INFO
18
18
  kickpython.egg-info/SOURCES.txt
19
19
  kickpython.egg-info/dependency_links.txt
20
- kickpython.egg-info/requires.txt
21
20
  kickpython.egg-info/top_level.txt
22
21
  kickpython/examples/listen_all_channels.py
23
22
  kickpython/examples/oauth.py
@@ -11,10 +11,7 @@ authors = [
11
11
  requires-python = ">=3.6"
12
12
  readme = "README.md"
13
13
  license = {text = "MIT"}
14
- dynamic = ["version", "dependencies", "keywords", "classifiers"]
15
-
16
- [tool.setuptools_scm]
17
- write_to = "kickpython/_version.py"
14
+ dynamic = ["version"]
18
15
 
19
16
  [project.urls]
20
17
  Homepage = "https://github.com/berkay-digital/kickpython"
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="kickpython",
8
- version="0.1.1",
8
+ version="0.1.3",
9
9
  description="Python wrapper for Kick.com API",
10
10
  long_description=long_description,
11
11
  long_description_content_type="text/markdown",
@@ -1,5 +0,0 @@
1
- aiohttp>=3.11.13
2
- websockets>=15.0
3
- asyncio>=3.4.3
4
- curl_cffi
5
- python-dotenv>=1.0.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes