Ryzenth 1.8.5__py3-none-any.whl → 1.8.6__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.
- Ryzenth/__version__.py +1 -1
- Ryzenth/_asynchisded.py +2 -2
- Ryzenth/_synchisded.py +2 -2
- Ryzenth/ryzenth_client.py +9 -1
- Ryzenth/types/__init__.py +4 -2
- {ryzenth-1.8.5.dist-info → ryzenth-1.8.6.dist-info}/METADATA +4 -4
- ryzenth-1.8.6.dist-info/RECORD +11 -0
- ryzenth-1.8.5.dist-info/RECORD +0 -11
- {ryzenth-1.8.5.dist-info → ryzenth-1.8.6.dist-info}/WHEEL +0 -0
- {ryzenth-1.8.5.dist-info → ryzenth-1.8.6.dist-info}/licenses/LICENSE +0 -0
- {ryzenth-1.8.5.dist-info → ryzenth-1.8.6.dist-info}/top_level.txt +0 -0
Ryzenth/__version__.py
CHANGED
Ryzenth/_asynchisded.py
CHANGED
@@ -22,7 +22,7 @@ import logging
|
|
22
22
|
import httpx
|
23
23
|
from box import Box
|
24
24
|
|
25
|
-
from Ryzenth.types import QueryParameter
|
25
|
+
from Ryzenth.types import DownloaderBy, QueryParameter
|
26
26
|
|
27
27
|
LOGS = logging.getLogger("[Ryzenth] async")
|
28
28
|
|
@@ -52,7 +52,7 @@ class RyzenthXAsync:
|
|
52
52
|
async def send_downloader(
|
53
53
|
self,
|
54
54
|
switch_name: str = None,
|
55
|
-
params:
|
55
|
+
params: DownloaderBy = None,
|
56
56
|
list_key=False,
|
57
57
|
dot_access=False
|
58
58
|
):
|
Ryzenth/_synchisded.py
CHANGED
@@ -22,7 +22,7 @@ import logging
|
|
22
22
|
import httpx
|
23
23
|
from box import Box
|
24
24
|
|
25
|
-
from Ryzenth.types import QueryParameter
|
25
|
+
from Ryzenth.types import DownloaderBy, QueryParameter
|
26
26
|
|
27
27
|
LOGS = logging.getLogger("[Ryzenth] sync")
|
28
28
|
|
@@ -56,7 +56,7 @@ class RyzenthXSync:
|
|
56
56
|
def send_downloader(
|
57
57
|
self,
|
58
58
|
switch_name: str = None,
|
59
|
-
params:
|
59
|
+
params: DownloaderBy = None,
|
60
60
|
list_key=False,
|
61
61
|
dot_access=False
|
62
62
|
):
|
Ryzenth/ryzenth_client.py
CHANGED
@@ -24,9 +24,17 @@ from Ryzenth._synchisded import RyzenthXSync
|
|
24
24
|
|
25
25
|
|
26
26
|
class ApiKeyFrom:
|
27
|
-
def __init__(self, api_key: str = None):
|
27
|
+
def __init__(self, api_key: str = None, is_free_from_ryzenth=False):
|
28
|
+
if api_key is Ellipsis:
|
29
|
+
is_free_from_ryzenth = True
|
30
|
+
api_key = None
|
31
|
+
|
28
32
|
if not api_key:
|
29
33
|
api_key = os.environ.get("RYZENTH_API_KEY")
|
34
|
+
|
35
|
+
if not api_key:
|
36
|
+
api_key = "akeno_UKQEQMt991kh2Ehh7JqJYKapx8CCyeC" if is_free_from_ryzenth else None
|
37
|
+
|
30
38
|
self.api_key = api_key
|
31
39
|
self.aio = RyzenthXAsync(api_key)
|
32
40
|
self._sync = RyzenthXSync(api_key)
|
Ryzenth/types/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: Ryzenth
|
3
|
-
Version: 1.8.
|
3
|
+
Version: 1.8.6
|
4
4
|
Summary: Ryzenth Python Wrapper For Perfomance
|
5
5
|
Author: TeamKillerX
|
6
6
|
License: MIT
|
@@ -86,7 +86,7 @@ pip install ryzenth[fast]
|
|
86
86
|
from Ryzenth import ApiKeyFrom
|
87
87
|
from Ryzenth.types import QueryParameter
|
88
88
|
|
89
|
-
ryz = ApiKeyFrom(
|
89
|
+
ryz = ApiKeyFrom(..., is_free_from_ryzenth=True)
|
90
90
|
|
91
91
|
await ryz.aio.send_message(
|
92
92
|
"hybrid",
|
@@ -102,7 +102,7 @@ await ryz.aio.send_message(
|
|
102
102
|
from Ryzenth import ApiKeyFrom
|
103
103
|
from Ryzenth.types import QueryParameter
|
104
104
|
|
105
|
-
ryz = ApiKeyFrom(
|
105
|
+
ryz = ApiKeyFrom(..., is_free_from_ryzenth=True)
|
106
106
|
ryz._sync.send_message(
|
107
107
|
"hybrid",
|
108
108
|
QueryParameter(
|
@@ -112,7 +112,7 @@ ryz._sync.send_message(
|
|
112
112
|
```
|
113
113
|
|
114
114
|
## Environment Variable Support
|
115
|
-
- Available API key v2 via [`@
|
115
|
+
- Available API key v2 via [`@RyzenthKeyBot`](https://t.me/RyzenthKeyBot)
|
116
116
|
|
117
117
|
You can skip passing the API key directly by setting it via environment:
|
118
118
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Ryzenth/__init__.py,sha256=Xkdo2DrOr9eOGlRdLUC9blzsuHHGIC9WrzGs1j83d3I,944
|
2
|
+
Ryzenth/__version__.py,sha256=_6wO1xA9F2oKC3CWMcHVuw6hDO0q5ldjO5IZQBEbXcs,118
|
3
|
+
Ryzenth/_asynchisded.py,sha256=4EKYIiyd7-WV2EALZf8AoZhybpywZSBbSZq0sNmo5cs,5034
|
4
|
+
Ryzenth/_synchisded.py,sha256=RtfqFF43AMt9_0hqhWvT3MzwQwpCJ6Qw38K3flilCD8,4857
|
5
|
+
Ryzenth/ryzenth_client.py,sha256=Y-I1ug8Hf2eF74oDY4eICOTP_nuLXdsDSkyZhpdqZy4,1475
|
6
|
+
Ryzenth/types/__init__.py,sha256=imnQqDE2egYlFm2_4DRjleLLkFTRthcdZChRBVJvjoc,983
|
7
|
+
ryzenth-1.8.6.dist-info/licenses/LICENSE,sha256=C73aiGSgoCAVNzvAHs-TROaf5vV8yCj9nqpGrmfNHHo,1068
|
8
|
+
ryzenth-1.8.6.dist-info/METADATA,sha256=zB1_iHjlMyiyqT1DrLlhZN8Tw6Kqm_VR1aDiS5hWLdY,4181
|
9
|
+
ryzenth-1.8.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
10
|
+
ryzenth-1.8.6.dist-info/top_level.txt,sha256=0vIhjOjoQuCxLeZO0of8VCx2jsri-bLHV28nh8wWDnc,8
|
11
|
+
ryzenth-1.8.6.dist-info/RECORD,,
|
ryzenth-1.8.5.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
Ryzenth/__init__.py,sha256=Xkdo2DrOr9eOGlRdLUC9blzsuHHGIC9WrzGs1j83d3I,944
|
2
|
-
Ryzenth/__version__.py,sha256=ODPSox1NrHL0AAM5MIJe7C0__Hxs6rf5MyMl4lHEn5A,118
|
3
|
-
Ryzenth/_asynchisded.py,sha256=6h5qh9vGr9MECtf6YgXW__Hr87Rig2C9mDuqPX5JIQ4,5022
|
4
|
-
Ryzenth/_synchisded.py,sha256=hJK-M3ovoH2i1SA-hSI7_veVzk_QD_OstLlBYRbUW7Q,4845
|
5
|
-
Ryzenth/ryzenth_client.py,sha256=fN_0BcK0ao6-CTpe5bRCT9jQD7Krr_Q8-Xlf-aFqdZY,1225
|
6
|
-
Ryzenth/types/__init__.py,sha256=Uq5xqwfI5f-QwEnDRycQFJ5_yJbwzZwsM4cqgo_Wpbw,985
|
7
|
-
ryzenth-1.8.5.dist-info/licenses/LICENSE,sha256=C73aiGSgoCAVNzvAHs-TROaf5vV8yCj9nqpGrmfNHHo,1068
|
8
|
-
ryzenth-1.8.5.dist-info/METADATA,sha256=_GA0RN1G6hBby4_cyzs10NTxJJgriwxcU66xlKsvotA,4143
|
9
|
-
ryzenth-1.8.5.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
10
|
-
ryzenth-1.8.5.dist-info/top_level.txt,sha256=0vIhjOjoQuCxLeZO0of8VCx2jsri-bLHV28nh8wWDnc,8
|
11
|
-
ryzenth-1.8.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|