Ryzenth 2.0.0__tar.gz → 2.0.1__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 (33) hide show
  1. {ryzenth-2.0.0 → ryzenth-2.0.1}/PKG-INFO +1 -1
  2. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/__version__.py +1 -1
  3. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/_asynchisded.py +2 -2
  4. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/_shared.py +3 -1
  5. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/_synchisded.py +2 -2
  6. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/tests/test_send_downloader.py +12 -1
  7. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/types/__init__.py +3 -0
  8. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth.egg-info/PKG-INFO +1 -1
  9. {ryzenth-2.0.0 → ryzenth-2.0.1}/LICENSE +0 -0
  10. {ryzenth-2.0.0 → ryzenth-2.0.1}/README.md +0 -0
  11. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/__init__.py +0 -0
  12. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/_client.py +0 -0
  13. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/_errors.py +0 -0
  14. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/__init__.py +0 -0
  15. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_decorators.py +0 -0
  16. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_federation.py +0 -0
  17. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_fonts.py +0 -0
  18. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_images.py +0 -0
  19. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_moderator.py +0 -0
  20. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_openai.py +0 -0
  21. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_ryzenth.py +0 -0
  22. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/helper/_thinking.py +0 -0
  23. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/pyoraddons/__init__.py +0 -0
  24. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/tests/__init__.py +0 -0
  25. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/tests/test_deepseek.py +0 -0
  26. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/tests/test_moderator.py +0 -0
  27. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth/tests/test_send.py +0 -0
  28. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth.egg-info/SOURCES.txt +0 -0
  29. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth.egg-info/dependency_links.txt +0 -0
  30. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth.egg-info/requires.txt +0 -0
  31. {ryzenth-2.0.0 → ryzenth-2.0.1}/Ryzenth.egg-info/top_level.txt +0 -0
  32. {ryzenth-2.0.0 → ryzenth-2.0.1}/setup.cfg +0 -0
  33. {ryzenth-2.0.0 → ryzenth-2.0.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Ryzenth
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Ryzenth Python Wrapper For Perfomance
5
5
  Author: TeamKillerX
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- __version__ = "2.0.0"
1
+ __version__ = "2.0.1"
2
2
  __author__ = "TeamKillerX"
3
3
  __title__ = "Ryzenth"
4
4
  __description__ = "Ryzenth Python API Wrapper"
@@ -34,7 +34,7 @@ from .helper import (
34
34
  WhatAsync,
35
35
  WhisperAsync,
36
36
  )
37
- from .types import DownloaderBy, QueryParameter
37
+ from .types import DownloaderBy, QueryParameter, Username
38
38
 
39
39
 
40
40
  class RyzenthXAsync:
@@ -66,7 +66,7 @@ class RyzenthXAsync:
66
66
  self,
67
67
  switch_name: str,
68
68
  *,
69
- params: Union[DownloaderBy, QueryParameter] = None,
69
+ params: Union[DownloaderBy, QueryParameter, Username] = None,
70
70
  on_render=False,
71
71
  dot_access=False
72
72
  ):
@@ -13,7 +13,9 @@ BASE_DICT_RENDER = {
13
13
  "yt-search": "yt-search-dl", #query #render
14
14
  "google-search": "google-search-dl", #query #render
15
15
  "pinterest-search": "pinterest-search-dl", #query #render
16
- "tiktok-search": "tiktok-search-dl" #query #render
16
+ "tiktok-search": "tiktok-search-dl", #query #render
17
+ "yt-username": "yt-username", #username #render
18
+ "tiktok-username": "tiktok-username" #username #render
17
19
  }
18
20
 
19
21
  BASE_DICT_OFFICIAL = {
@@ -34,7 +34,7 @@ from .helper import (
34
34
  WhatSync,
35
35
  WhisperSync,
36
36
  )
37
- from .types import DownloaderBy, QueryParameter
37
+ from .types import DownloaderBy, QueryParameter, Username
38
38
 
39
39
 
40
40
  class RyzenthXSync:
@@ -66,7 +66,7 @@ class RyzenthXSync:
66
66
  self,
67
67
  switch_name: str,
68
68
  *,
69
- params: Union[DownloaderBy, QueryParameter] = None,
69
+ params: Union[DownloaderBy, QueryParameter, Username] = None,
70
70
  on_render=False,
71
71
  dot_access=False
72
72
  ):
@@ -1,5 +1,5 @@
1
1
  from Ryzenth._synchisded import RyzenthXSync
2
- from Ryzenth.types import QueryParameter
2
+ from Ryzenth.types import QueryParameter, Username
3
3
 
4
4
 
5
5
  def test_send_downloader():
@@ -12,3 +12,14 @@ def test_send_downloader():
12
12
  on_render=True
13
13
  )
14
14
  assert result is not None
15
+
16
+ def test_yt_username():
17
+ ryz = RyzenthXSync("test", base_url="https://x-api-js.onrender.com/api")
18
+ result = ryz.send_downloader(
19
+ switch_name="yt-username",
20
+ params=Username(
21
+ username="AnimeNgoding"
22
+ ),
23
+ on_render=True
24
+ )
25
+ assert result is not None
@@ -29,6 +29,9 @@ class QueryParameter(BaseModel):
29
29
  class DownloaderBy(BaseModel):
30
30
  url: str
31
31
 
32
+ class Username(BaseModel):
33
+ username: str
34
+
32
35
  class OpenaiWhisper(BaseModel):
33
36
  url: str
34
37
  language: Optional[str] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Ryzenth
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Ryzenth Python Wrapper For Perfomance
5
5
  Author: TeamKillerX
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes